<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/amd64/include/ptrace.h, branch stable/13</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=stable%2F13</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=stable%2F13'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2023-08-23T17:43:22Z</updated>
<entry>
<title>sys: Remove $FreeBSD$: one-line .c comment pattern</title>
<updated>2023-08-23T17:43:22Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:31:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4fbf14e22d7b83de7080a8e491ba14a5785a0ff4'/>
<id>urn:sha1:4fbf14e22d7b83de7080a8e491ba14a5785a0ff4</id>
<content type='text'>
Remove /^/[*/]\s*\$FreeBSD\$.*\n/

Similar commit in current:
(cherry picked from commit 71625ec9ad2a)
</content>
</entry>
<entry>
<title>Copy amd64 ptrace.h to x86 and merge with i386 ptrace.h. Replace</title>
<updated>2012-03-04T20:24:28Z</updated>
<author>
<name>Tijl Coosemans</name>
<email>tijl@FreeBSD.org</email>
</author>
<published>2012-03-04T20:24:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d8a023328da89d47e148983842c73e3cd89c506e'/>
<id>urn:sha1:d8a023328da89d47e148983842c73e3cd89c506e</id>
<content type='text'>
amd64/i386/pc98 ptrace.h with stubs.

For amd64 PT_GETXSTATE and PT_SETXSTATE have been redefined to match the
i386 values. The old values are still supported but should no longer be
used.

Reviewed by:	kib
</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/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>Begin all license/copyright comments with /*-</title>
<updated>2005-01-05T20:17:21Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2005-01-05T20:17:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=46280ae71938465be665fb19cf8f7d1ca48a379a'/>
<id>urn:sha1:46280ae71938465be665fb19cf8f7d1ca48a379a</id>
<content type='text'>
</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/commit/?id=29ae923f442cca68a051d4d299dae535758b44d4'/>
<id>urn:sha1:29ae923f442cca68a051d4d299dae535758b44d4</id>
<content type='text'>
per letter dated July 22, 1999.

Approved by: core
</content>
</entry>
<entry>
<title>Move the definition of PT_[GS]ET{,DB,FP}REGS from the MD ptrace.h to the</title>
<updated>2002-03-16T00:25:53Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2002-03-16T00:25:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a2e0658045625ad772d6de1578fc13c05f5758bb'/>
<id>urn:sha1:a2e0658045625ad772d6de1578fc13c05f5758bb</id>
<content type='text'>
MI ptrace.h, since all platforms define them.  Keep the MD ptrace.h around
for FIX_SSTEP (which is currently only needed on Alpha).
</content>
</entry>
<entry>
<title>Zap 'ptrace(PT_READ_U, ...)' and 'ptrace(PT_WRITE_U, ...)' since they</title>
<updated>2001-08-08T05:25:15Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>2001-08-08T05:25:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2aca0c28d39b914923402cc81a4d6b4213b3df2d'/>
<id>urn:sha1:2aca0c28d39b914923402cc81a4d6b4213b3df2d</id>
<content type='text'>
are a really nasty interface that should have been killed long ago
when 'ptrace(PT_[SG]ETREGS' etc came along.  The entity that they
operate on (struct user) will not be around much longer since it
is part-per-process and part-per-thread in a post-KSE world.

gdb does not actually use this except for the obscure 'info udot'
command which does a hexdump of as much of the child's 'struct user'
as it can get.  It carries its own #defines so it doesn't break
compiles.
</content>
</entry>
<entry>
<title>Change #ifdef KERNEL to #ifdef _KERNEL in the public headers.  "KERNEL"</title>
<updated>1999-12-29T04:46:21Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1999-12-29T04:46:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=664a31e4967a61ec61870f45adc2f1400617993e'/>
<id>urn:sha1:664a31e4967a61ec61870f45adc2f1400617993e</id>
<content type='text'>
is an application space macro and the applications are supposed to be free
to use it as they please (but cannot).  This is consistant with the other
BSD's who made this change quite some time ago.  More commits to come.
</content>
</entry>
<entry>
<title>$Id$ -&gt; $FreeBSD$</title>
<updated>1999-08-28T01:08:13Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1999-08-28T01:08:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c3aac50f284c6cca5b4f2eb46aaa13812cb8b630'/>
<id>urn:sha1:c3aac50f284c6cca5b4f2eb46aaa13812cb8b630</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Implement support for hardware debug registers on the i386.</title>
<updated>1999-07-09T04:16:00Z</updated>
<author>
<name>Jonathan Lemon</name>
<email>jlemon@FreeBSD.org</email>
</author>
<published>1999-07-09T04:16:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ab001a72bef18732f5c48efedcc6d2285aa8fc81'/>
<id>urn:sha1:ab001a72bef18732f5c48efedcc6d2285aa8fc81</id>
<content type='text'>
Submitted by:	Brian Dean &lt;brdean@unx.sas.com&gt;
</content>
</entry>
</feed>
