<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/sys/amd64/include/sysarch.h, branch releng/11.2</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=releng%2F11.2</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=releng%2F11.2'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2012-03-19T21:57:31Z</updated>
<entry>
<title>Copy amd64 sysarch.h to x86 and merge with i386 sysarch.h. Replace</title>
<updated>2012-03-19T21:57:31Z</updated>
<author>
<name>Tijl Coosemans</name>
<email>tijl@FreeBSD.org</email>
</author>
<published>2012-03-19T21:57:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=dfb1c11345977ebae4338da7b583211f4917042a'/>
<id>urn:sha1:dfb1c11345977ebae4338da7b583211f4917042a</id>
<content type='text'>
amd64/i386/pc98 sysarch.h with stubs.
</content>
</entry>
<entry>
<title>Add support for the extended FPU states on amd64, both for native</title>
<updated>2012-01-21T17:45:27Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2012-01-21T17:45:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=8c6f8f3d5b1439847cf3b4336b23e78c81dd035b'/>
<id>urn:sha1:8c6f8f3d5b1439847cf3b4336b23e78c81dd035b</id>
<content type='text'>
64bit and 32bit ABIs.  As a side-effect, it enables AVX on capable
CPUs.

In particular:

- Query the CPU support for XSAVE, list of the supported extensions
  and the required size of FPU save area. The hw.use_xsave tunable is
  provided for disabling XSAVE, and hw.xsave_mask may be used to
  select the enabled extensions.

- Remove the FPU save area from PCB and dynamically allocate the
  (run-time sized) user save area on the top of the kernel stack,
  right above the PCB. Reorganize the thread0 PCB initialization to
  postpone it after BSP is queried for save area size.

- The dumppcb, stoppcbs and susppcbs now do not carry the FPU state as
  well. FPU state is only useful for suspend, where it is saved in
  dynamically allocated suspfpusave area.

- Use XSAVE and XRSTOR to save/restore FPU state, if supported and
  enabled.

- Define new mcontext_t flag _MC_HASFPXSTATE, indicating that
  mcontext_t has a valid pointer to out-of-struct extended FPU
  state. Signal handlers are supplied with stack-allocated fpu
  state. The sigreturn(2) and setcontext(2) syscall honour the flag,
  allowing the signal handlers to inspect and manipilate extended
  state in the interrupted context.

- The getcontext(2) never returns extended state, since there is no
  place in the fixed-sized mcontext_t to place variable-sized save
  area. And, since mcontext_t is embedded into ucontext_t, makes it
  impossible to fix in a reasonable way.  Instead of extending
  getcontext(2) syscall, provide a sysarch(2) facility to query
  extended FPU state.

- Add ptrace(2) support for getting and setting extended state; while
  there, implement missed PT_I386_{GET,SET}XMMREGS for 32bit binaries.

- Change fpu_kern KPI to not expose struct fpu_kern_ctx layout to
  consumers, making it opaque. Internally, struct fpu_kern_ctx now
  contains a space for the extended state. Convert in-kernel consumers
  of fpu_kern KPI both on i386 and amd64.

First version of the support for AVX was submitted by Tim Bird
&lt;tim.bird am sony com&gt; on behalf of Sony. This version was written
from scratch.

Tested by:	pho (previous version), Yamagi Burmeister &lt;lists yamagi org&gt;
MFC after:	1 month
</content>
</entry>
<entry>
<title>Remove redundant inclusion of &lt;sys/cdefs.h&gt;.</title>
<updated>2010-02-20T14:13:47Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2010-02-20T14:13:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=0b918ea7a93256876ffe5d6dd35aab991a9bb451'/>
<id>urn:sha1:0b918ea7a93256876ffe5d6dd35aab991a9bb451</id>
<content type='text'>
In my previous commit I should have moved the inclusion to the top,
instead of adding a second one.
</content>
</entry>
<entry>
<title>Add &lt;sys/cdefs.h&gt;.</title>
<updated>2010-02-20T13:33:50Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2010-02-20T13:33:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=d502d4503a28cfd735b9abad22dedf13e1fc97c7'/>
<id>urn:sha1:d502d4503a28cfd735b9abad22dedf13e1fc97c7</id>
<content type='text'>
This header file uses __packed, without including &lt;sys/cdefs.h&gt;. This
means it cannot be used in the way described in sysarch(3) by only
including &lt;machine/sysarch.h&gt;.
</content>
</entry>
<entry>
<title>Save and restore segment registers on amd64 when entering and leaving</title>
<updated>2009-04-01T13:09:26Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2009-04-01T13:09:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=2c66cccab7ceceb3eed086da3b2dedfc77ce72de'/>
<id>urn:sha1:2c66cccab7ceceb3eed086da3b2dedfc77ce72de</id>
<content type='text'>
the kernel on amd64. Fill and read segment registers for mcontext and
signals. Handle traps caused by restoration of the
invalidated selectors.

Implement user-mode creation and manipulation of the process-specific
LDT descriptors for amd64, see sysarch(2).

Implement support for TSS i/o port access permission bitmap for amd64.

Context-switch LDT and TSS. Do not save and restore segment registers on
the context switch, that is handled by kernel enter/leave trampolines
now. Remove segment restore code from the signal trampolines for
freebsd/amd64, freebsd/ia32 and linux/i386 for the same reason.

Implement amd64-specific compat shims for sysarch.

Linuxolator (temporary ?) switched to use gsbase for thread_area pointer.

TODO:
Currently, gdb is not adapted to show segment registers from struct reg.
Also, no machine-depended ptrace command is added to set segment
registers for debugged process.

In collaboration with:	pho
Discussed with:	peter
Reviewed by:	jhb
Linuxolator tested by:	dchagin
</content>
</entry>
<entry>
<title>Fully enumerate all i386 sysarch commands an amd64 include file.</title>
<updated>2009-04-01T12:48:17Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2009-04-01T12:48:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=59aff0f89492e70ed948031e4e41eadee2fef258'/>
<id>urn:sha1:59aff0f89492e70ed948031e4e41eadee2fef258</id>
<content type='text'>
Provides i386/freebsd API-compatible definitions for the argument
structures of the above sysarch commands. struct i386_ioperm_args
definition is ABI-compatible.

In collaboration with:	pho
Reviewed by:	jhb
</content>
</entry>
<entry>
<title>Implement 32-bit compatable fsbase/gsbase methods so that we can run</title>
<updated>2005-04-14T16:57:58Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>2005-04-14T16:57:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=fe8b8bf778689d7b155e3e39af5cb09bf4edcb49'/>
<id>urn:sha1:fe8b8bf778689d7b155e3e39af5cb09bf4edcb49</id>
<content type='text'>
(newer) unmodified static i386 binaries again.
</content>
</entry>
<entry>
<title>Remove advertising clause from University of California Regent's license,</title>
<updated>2004-04-05T21:29:41Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2004-04-05T21:29:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=29ae923f442cca68a051d4d299dae535758b44d4'/>
<id>urn:sha1:29ae923f442cca68a051d4d299dae535758b44d4</id>
<content type='text'>
per letter dated July 22, 1999.

Approved by: core
</content>
</entry>
<entry>
<title>Provide sysarch(2) prototypes in the MD sysarch.h headers.  While I'm</title>
<updated>2004-01-09T16:52:09Z</updated>
<author>
<name>Jacques Vidrine</name>
<email>nectar@FreeBSD.org</email>
</author>
<published>2004-01-09T16:52:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=e4dc8baa84ba268ae07ac65481c5085dc2a79e7f'/>
<id>urn:sha1:e4dc8baa84ba268ae07ac65481c5085dc2a79e7f</id>
<content type='text'>
at it, use the ANSI C generic pointer type for the second argument,
thus matching the documentation.

Remove the now extraneous (and now conflicting) function declarations
in various libc sources.  Remove now unnecessary casts.

Reviewed by:	bde
</content>
</entry>
<entry>
<title>Use a more robust API altogether for the amd64_get_fsbase() etc functions.</title>
<updated>2003-10-23T06:06:14Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>2003-10-23T06:06:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=63f2bb5ff17d83ea018c6c9bbc980651d6e31add'/>
<id>urn:sha1:63f2bb5ff17d83ea018c6c9bbc980651d6e31add</id>
<content type='text'>
</content>
</entry>
</feed>
