freebsd-nq/sys
John Baldwin 9e438eb4f5 Add a new field 'md_kernnest' to the alpha machine dependent process
structure.  This field keeps track of how many levels deep we are nested
into the kernel.  The nesting level is bumped at the start of a trap,
interrupt, syscall, or exception and is decremented on return.  This is
used to detect the case when the kernel is returning back to a kernel
context in exception_return().  If we are returning to the kernel we need
to update the globaldata pointer register saved in the stack frame in case
we have switched CPU's between taking the initial interrupt that saved the
frame and returning.  If we don't do this fixup it is possible for a CPU to
use the wrong per-cpu data.  On UP systems this is not a problem, so the
code is conditional on SMP.

A count was used instead of simply checking the process status register in
the frame during exception_return() since there are critical sections at
the very start and end of a trap, exception, or interrupt from userland in
which we could trash the t7 register being used in userland.  The counter
is incremented after adn before these critical sections respectively so
that we will not overwrite the saved t7 register if we are interrupted
during one of these critical sections.
2001-04-24 21:06:53 +00:00
..
alpha Add a new field 'md_kernnest' to the alpha machine dependent process 2001-04-24 21:06:53 +00:00
amd64 Correct #includes to work with fixed sys/mount.h. 2001-04-23 09:05:15 +00:00
arm/include Correct disordering which is corresponding to bde's fix to 2001-02-17 14:51:11 +00:00
boot mdoc(7) police: fixed whatis(1) entry. 2001-04-18 12:56:15 +00:00
cam Fix the `tape drive spinning indefinately upon mt stat' problem. 2001-04-22 20:13:28 +00:00
coda fix it so it compiles again 2001-04-23 18:51:54 +00:00
compat o Change a suser() call to a suser_xxx(..., PRISON_ROOT) call in the 2001-04-24 19:08:53 +00:00
compile
conf Initial version of Avance Logic ALS4000 pcm driver. 2001-04-23 21:53:12 +00:00
contrib/dev Send the remains (such as I have located) of "block major numbers" to 2001-03-26 12:41:29 +00:00
crypto Kernel crypto need binary key material, not symbolic ascii. 2001-03-10 13:02:58 +00:00
ddb Catch up to header include changes: 2001-03-28 09:17:56 +00:00
dev Change the pfind() and zpfind() functions to lock the process that they 2001-04-24 00:51:53 +00:00
fs Change the pfind() and zpfind() functions to lock the process that they 2001-04-24 00:51:53 +00:00
geom fix a number of printf format string warnings inside DEBUG ifdefs 2001-03-29 15:05:08 +00:00
gnu Correct #includes to work with fixed sys/mount.h. 2001-04-23 09:05:15 +00:00
i4b Send the remains (such as I have located) of "block major numbers" to 2001-03-26 12:41:29 +00:00
i386 Change the pfind() and zpfind() functions to lock the process that they 2001-04-24 00:51:53 +00:00
ia64 When switching backing store during signal delivery, do the switch before 2001-04-24 15:57:16 +00:00
isa Catch up to header include changes: 2001-03-28 09:17:56 +00:00
isofs/cd9660 Correct #includes to work with fixed sys/mount.h. 2001-04-23 08:28:44 +00:00
kern Change uipc_sockaddr so that a sockaddr_un without a path is returned 2001-04-24 19:09:23 +00:00
libkern Add function prototypes and base module for kernel side iconv library. 2001-04-09 09:39:29 +00:00
miscfs Change the pfind() and zpfind() functions to lock the process that they 2001-04-24 00:51:53 +00:00
modules Revert previous delta, which was completely bogus. 2001-04-24 12:30:49 +00:00
msdosfs Correct #includes to work with fixed sys/mount.h. 2001-04-23 09:05:15 +00:00
net Dont (ab)use drv2 to know if (si_flags & SI_NAMED) (pointed out by dd) 2001-04-17 09:59:34 +00:00
netatalk Mechanical change to use <sys/queue.h> macro API instead of 2001-02-04 13:13:25 +00:00
netatm Silence some warnings 2001-03-20 10:42:49 +00:00
netgraph Don't reference a node after we dropped a reference to it 2001-04-11 22:04:47 +00:00
netinet Say goodbye to TCP_COMPAT_42 2001-04-20 11:58:56 +00:00
netinet6 Fix typo in previous commit. 2001-04-20 08:43:20 +00:00
netipx Another round of the <sys/queue.h> FOREACH transmogriffer. 2001-02-04 16:08:18 +00:00
netkey fixed possibility of panic at key_acquire(). 2001-01-14 17:25:08 +00:00
netnatm Change a couple of M_WAITOKs used in M_PREPEND() to M_TRYWAITs, which 2001-04-05 04:20:48 +00:00
netncp Move bindery authentication ncps to ncp_ncp.c file. ncp_login.c will stay 2001-03-22 10:38:16 +00:00
netns * Rename M_WAIT mbuf subsystem flag to M_TRYWAIT. 2000-12-21 21:44:31 +00:00
netsmb This file also depends on sys/types.h and sys/ioccom.h. 2001-04-13 10:50:48 +00:00
nfs Correct #includes to work with fixed sys/mount.h. 2001-04-23 09:05:15 +00:00
nfsclient Correct #includes to work with fixed sys/mount.h. 2001-04-23 09:05:15 +00:00
nfsserver Correct #includes to work with fixed sys/mount.h. 2001-04-23 09:05:15 +00:00
ntfs This patch removes the VOP_BWRITE() vector. 2001-04-17 08:56:39 +00:00
nwfs vnode_pager_freepage() is really vm_page_free() in disguise, 2001-04-19 06:18:23 +00:00
pc98 Change the pfind() and zpfind() functions to lock the process that they 2001-04-24 00:51:53 +00:00
pccard My fix to NEWCARD for getting the function type broke oldcard due to 2001-04-21 14:10:32 +00:00
pci Move setting of TI113X_PCI_CARD_CONTROL register sooner 2001-04-17 23:56:12 +00:00
posix4 Change the pfind() and zpfind() functions to lock the process that they 2001-04-24 00:51:53 +00:00
powerpc Add a new field 'md_kernnest' to the alpha machine dependent process 2001-04-24 21:06:53 +00:00
rpc Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) and 2001-03-19 12:50:13 +00:00
svr4 This patchset fixes a large number of file descriptor race conditions. 2000-11-18 21:01:04 +00:00
sys Back out previous commit. 2001-04-23 23:51:17 +00:00
tools replace calls to non-existant bail() subroutine with calls to 2001-03-23 11:48:50 +00:00
ufs Pre-dirpref versions of fsck may zero out the new superblock fields 2001-04-24 00:37:16 +00:00
vm Correct #includes to work with fixed sys/mount.h. 2001-04-23 09:05:15 +00:00
Makefile