freebsd-dev/sys/i386
Attilio Rao 05dfa22fe9 Actual code shows several problems in ia32 LDT handling:
- When a LDT entry changes, the old one is freed while it is still
  referenced by gdt and ldtr.  This can lead to disruptive behaviours in
  particular on SMP machines.
- When a LDT entry changes, it is assumed that the only one entity sharing
  the same LDT are threads in the same proc.  It doesn't take in account
  edge cases where two processes share the same VM (rfork'ed ones, for
  example).

This patch addresses these two problems and addictionally it fixes the
usage of refcount switching back it to the old manually-grown refcount
(since in this case would be faster).

Diagnosed by: tegge
Tested by: pho (a former version)
Reviewed by: kib
Approved by: jeff (mentor)
Approved by: re
2007-07-07 16:59:01 +00:00
..
acpica Update the suspend/resume user API while maintaining backwards compat. 2007-06-21 22:50:37 +00:00
bios Tweak the probe/attach order of devices on the x86 nexus devices. 2007-03-20 20:21:44 +00:00
compile
conf Temporary disconnect i4bing, i4bisppp and i4bipr from the build for 2007-07-04 00:18:39 +00:00
cpufreq Use bus_dma to get a page in the first 4 GB. Since the physical address 2007-06-17 07:18:23 +00:00
i386 Actual code shows several problems in ia32 LDT handling: 2007-07-07 16:59:01 +00:00
ibcs2 Remove pad argument from ftruncate wrapper. Oops. 2007-07-05 05:32:44 +00:00
include I4B header files were repo-copied from sys/i386/include/ to 2007-07-06 07:23:39 +00:00
isa Prototype (but functional) Linux-ish /dev/nvram interface to the extra 2007-06-15 22:58:14 +00:00
linux Don't add the 'pad' argument to the mmap/truncate/etc syscalls. 2007-07-04 23:06:43 +00:00
pci Revamp the MSI/MSI-X code a bit to achieve two main goals: 2007-05-02 17:50:36 +00:00
svr4 Use svr4_si_{addr,code,errno,signo,trap} in preference to si_{...}. 2005-10-19 14:59:54 +00:00
xbox - Define data of struct gfb_font a const as it's only used to supply font 2007-06-16 21:31:53 +00:00
Makefile Update entries for building tags. 2007-05-13 18:21:54 +00:00