opnsense-src/sys/x86
John Baldwin 382ffc8786 x86: Add a NT_X86_SEGBASES register set.
This register set contains the values of the fsbase and gsbase
registers.  Note that these registers can already be controlled
individually via ptrace(2) via MD operations, so the main reason for
adding this is to include these register values in core dumps.  In
particular, this will enable looking up the value of TLS variables
from core dumps in gdb.

The value of NT_X86_SEGBASES was chosen to match the value of
NT_386_TLS on Linux.  The notes serve similar purposes, but FreeBSD
will never dump a note equivalent to NT_386_TLS (which dumps a single
segment descriptor rather than a pair of addresses) and picking a
currently-unused value in the NT_X86_* range could result in a future
conflict.

Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D34650

(cherry picked from commit 931983ee08)
2022-05-13 09:45:19 -07:00
..
acpica x86: duplicate acpi_wakeup.c per i386 and amd64 2021-09-20 03:47:21 +03:00
bios smbios: Move smbios driver out from x86 machdep code 2022-03-03 08:20:07 -06:00
conf Use envvar rather than nonstandard hint. lines 2020-09-23 19:18:53 +00:00
cpufreq x86: Remove CTLFLAG_NEEDGIANT from sysctls. 2022-01-08 20:24:04 -05:00
include x86: Add a NT_X86_SEGBASES register set. 2022-05-13 09:45:19 -07:00
iommu Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2022-02-08 15:00:55 -05:00
isa i386: Fix the nodevice apic build 2022-04-11 09:43:27 -04:00
linux linux: deduplicate DUMMY() entries 2022-02-13 22:22:11 +00:00
pci pci: add missing PCI id of Coffee Lake GPU 2021-12-19 04:42:52 +02:00
x86 Create sys/reg.h for the common code previously in machine/reg.h 2022-05-12 15:12:59 -07:00
xen x86/xen: fallback when VCPUOP_send_nmi is not available 2022-04-12 10:05:47 +02:00