opnsense-src/sys
Peter Wemm 2c25d12414 Clean up get/set_mcontext() and get/set_fpcontext(). These are operated
on data structures on the kernel stack which are guaranteed to be 16 byte
aligned by gcc, the amd64 ABI and __aligned(16).

Ensire the tss_rsp0 initial stack pointer is 16 byte aligned in case
sizeof(pcb) becomes odd at some point.  This is convenient for the
interrupt handler case because the ring crossing pushes cause the
required odd alignment before the call to the C code.

Have fast_syscall add an additional 8 bytes to ensure that the trapframe
has the correct odd alignment for the call to C code.  Note that there are
no checks to make sure that the trapframe size is appropriate for this.

This makes get/setfpcontext work properly (finally).  You get a GPF in
kernel mode if any of this is botched without the alignment fixup code
that is apparently needed on i386.
2003-09-09 19:32:09 +00:00
..
alpha Introduce a new pmap function, pmap_extract_and_hold(). This function 2003-09-08 02:45:03 +00:00
amd64 Clean up get/set_mcontext() and get/set_fpcontext(). These are operated 2003-09-09 19:32:09 +00:00
arm Style sync. 2003-08-03 07:50:19 +00:00
boot Use __FBSDID(). 2003-09-08 09:11:32 +00:00
cam Put the device cloning functions for disk-drivers under #ifndef BURN_BRIDGES. 2003-09-05 10:40:16 +00:00
coda Add support for the Coda 6.x venus<->kernel interface. This extends 2003-09-07 07:43:10 +00:00
compat Fix some broken comments. 2003-09-09 19:22:55 +00:00
conf Add LOG2_ID_PAGE_SIZE to the mix of options on ia64. 2003-09-09 18:30:20 +00:00
contrib Prefer new location of pci include files (which have only been in the 2003-08-22 15:28:22 +00:00
crypto Correctly bzero the entire context, not just the first sizeof(void *) bytes. 2003-09-08 18:32:33 +00:00
ddb Label the uarea address as such in DDB's ps output 2003-08-30 19:06:57 +00:00
dev Remove unnecessary #include of brgphyreg.h, left over from when Stuart used 2003-09-09 18:21:17 +00:00
fs Add support for the Coda 6.x venus<->kernel interface. This extends 2003-09-07 07:43:10 +00:00
geom Correct bzero length so we clear the entire key structure. 2003-09-08 18:35:26 +00:00
gnu - Clean-up comments that refer to the use of B_LOCKED. 2003-08-28 00:56:39 +00:00
i4b Use PCIR_BAR(x) instead of PCIR_MAPS. 2003-09-02 17:30:40 +00:00
i386 Add a device driver for the Broadcom BCM4401 ethernet controller, 2003-09-09 18:17:23 +00:00
ia64 Introduce IA64_ID_PAGE_{MASK|SHIFT|SIZE} and LOG2_ID_PAGE_SIZE. The 2003-09-09 05:59:09 +00:00
isa clock.c: 2003-09-07 14:23:08 +00:00
isofs/cd9660 Do not call VOP_BMAP() on our own vnodes. 2003-08-17 23:00:30 +00:00
kern In the !MNT_BYFSID case, return EINVAL from unmount(2) when the 2003-09-08 16:23:21 +00:00
libkern Lock down arc4random so it can be safely called w/o Giant. 2003-08-15 06:34:47 +00:00
modules Add a device driver for the Broadcom BCM4401 ethernet controller, 2003-09-09 18:17:23 +00:00
net Add locking. We use a single lock to guard the global vlan list and also 2003-09-05 20:58:59 +00:00
net80211 Experimental bpf capture format for 802.11 devices. The link layer 2003-09-05 22:19:32 +00:00
netatalk More checking of M_PREPEND() return values: pass through link-layer 2003-08-29 19:27:09 +00:00
netatm The number of prefixes can never be negative so use an u_int for this. 2003-07-29 13:46:43 +00:00
netgraph Add Protocol Independent Multicast protocol. 2003-08-20 22:11:58 +00:00
netinet mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
netinet6 introduced a flag bit "ND6_IFF_ACCEPT_RTADV" in the nd_ifinfo structure to 2003-08-05 14:57:11 +00:00
netipsec Locking and misc cleanups; most of which I've been running for >4 months: 2003-09-01 05:35:55 +00:00
netipx Use __FBSDID(). 2003-06-11 05:37:42 +00:00
netkey Use __FBSDID(). 2003-06-11 05:37:42 +00:00
netnatm Remove the last vestiges of ATM raw mode. This has not been useful for a 2003-08-06 14:34:38 +00:00
netncp size_t != int. Make this compile on 64 bit platforms (eg: amd64). 2003-07-24 01:59:18 +00:00
netsmb Rewrite the code that uses the try/catch paradigm implemented by 2003-08-23 21:43:33 +00:00
nfs
nfsclient Remove now unused BOOTP tags related to NFS swap device. 2003-09-05 11:12:55 +00:00
nfsserver Change idle state sleep identifier to "-" for nfsd. 2003-07-02 08:08:32 +00:00
opencrypto consolidate callback optimization check in one location by adding a flag 2003-06-30 05:09:32 +00:00
pc98 Take the support for the 8139C+/8169/8169S/8110S chips out of the 2003-09-08 02:11:25 +00:00
pccard More debug under boot verbose. 2003-08-29 23:25:00 +00:00
pci Fix path of pci #includes that I botched. 2003-09-08 04:28:20 +00:00
posix4 Use __FBSDID(). 2003-06-11 06:34:30 +00:00
powerpc Standardize idempotentcy ifdefs. Consistently use _MACHINE_VARARGS_H_ 2003-09-01 03:01:45 +00:00
rpc
security Remove extra tabs indenting MAC library calls; they were there to 2003-08-29 02:43:57 +00:00
sparc64 Introduce a new pmap function, pmap_extract_and_hold(). This function 2003-09-08 02:45:03 +00:00
sys Bump __FreeBSD_version for Coda 6.x venus<->kernel API support. 2003-09-08 11:54:59 +00:00
tools Don't check the state of the vnode interlock if the specification says 2003-06-22 21:20:06 +00:00
ufs - Several of the callers to getdirtybuf() were erroneously changed to pass 2003-09-03 04:08:15 +00:00
vm Introduce a new pmap function, pmap_extract_and_hold(). This function 2003-09-08 02:45:03 +00:00
Makefile Revert exclusion for amd64 that stopped boot/ being built. 2003-06-26 03:52:48 +00:00