163367 Commits

Author SHA1 Message Date
ad
a8a8de7393 When running uniprocessor, patch _kernel_lock() and _kernel_unlock() to
do nothing more than "nop; ret".
2007-11-13 18:38:58 +00:00
pooka
eb9f86bac5 don't init the device since it's not part of puffs anymore 2007-11-13 18:35:56 +00:00
ad
6a1fab7659 Fix the fsbase/gsbase stuff to work in combination with RAS.
Still not working reliably on my AMD K7 for some reason.
2007-11-13 18:20:18 +00:00
ad
acdc596fb9 Add _lwp_ctl() - sorry, I thought I had checked this in yesterday along
with makelintstub.
2007-11-13 17:38:55 +00:00
tsutsui
672990c37a Fix e2fs_itpg calculation (a rounddown bug). 2007-11-13 17:25:43 +00:00
ad
b919eb8116 Crank libpthread to 0.8. It now uses _lwp_ctl(), and it's handy to keep
0.7 hanging around for old kernels.
2007-11-13 17:22:51 +00:00
ad
66ac2ffaf2 Mutexes:
- Play scrooge again and chop more cycles off acquire/release.
- Spin while the lock holder is running on another CPU (adaptive mutexes).
- Do non-atomic release.

Threadreg:

- Add the necessary hooks to use a thread register.
- Add the code for i386, using %gs.
- Leave i386 code disabled until xen and COMPAT_NETBSD32 have the changes.
2007-11-13 17:20:08 +00:00
ad
3c776c8aa6 Bump libc minor for _lwp_ctl, libpthread constructor changes. 2007-11-13 17:13:14 +00:00
ghen
f970d5d287 Add description for EST_FREQ_USERWRITE (from i386). 2007-11-13 16:33:54 +00:00
ad
15e9cec117 For PR bin/37347:
- Override __libc_thr_init() instead of using our own constructor.
- Add pthread__getenv() and use instead of getenv(). This is used before
  we are up and running and unfortunatley getenv() takes locks.

Other changes:

- Cache the spinlock vectors in pthread__st. Internal spinlock operations
  now take 1 function call instead of 3 (i386).
- Use pthread__self() internally, not pthread_self().
- Use __attribute__ ((visibility("hidden"))) in some places.
- Kill PTHREAD_MAIN_DEBUG.
2007-11-13 15:57:10 +00:00
skrll
fd4abe684b No need for reg.h here. 2007-11-13 15:53:17 +00:00
ad
71ac015ebf stack_protector.c has moved. 2007-11-13 15:34:51 +00:00
ad
46f5cd4fb9 - Make it pass lint.
- Add RCSID.
2007-11-13 15:33:55 +00:00
ad
ec4d182d4a - stack_protector.c doesn't really belong under sys/. Add a new directory
for misc support routines and put it there.
- Add a libc constructor. Use this to initialize threading and the
  stack protector stuff. libpthread cannot be initialized safely using
  its own constructor because libc and libpthread are deeply intertwined.
  PR bin/37347
2007-11-13 15:21:19 +00:00
jmmv
ac0bd149f2 Fix typo that prevented MKDEBUG builds to work. Found by drochner@. 2007-11-13 13:57:53 +00:00
tsutsui
98bd33ec69 Use more proper aligned format in a debug function print_bmap(). 2007-11-13 13:57:52 +00:00
tsutsui
bed6c72507 - add some more constant definitions
- add some comments
- typo and some cosmetics
2007-11-13 13:50:18 +00:00
pooka
005e676a62 Create /dev/putter and symlink /dev/puffs to it. 2007-11-13 13:14:25 +00:00
pooka
116e75936f puffs -> putter 2007-11-13 13:13:10 +00:00
pooka
4e9d847cff Don't specialcase minor device, treat all minors the same. 2007-11-13 13:11:51 +00:00
yamt
b290d1aea3 don't include <sys/namei.h> unnecessarily. 2007-11-13 11:39:41 +00:00
skrll
1587bff9f0 Explicitly include <uvm/uvm_object.h> 2007-11-13 11:38:35 +00:00
yamt
4170b65f86 nfs_lookup: fix indent. 2007-11-13 11:37:08 +00:00
skrll
1acb610fdd Don't use structure copy in __cpu_simple_lock_init. Set the array elements
to __SIMPLELOCK_RAW_UNLOCKED instead.
2007-11-13 11:37:06 +00:00
he
4869f8a215 Need to point to sys/ for includes to pick up <sys/lwpctl.h> for
the lint stubs.
2007-11-13 10:22:15 +00:00
he
3b9b3c5341 We now need <sys/lwpctl.h> included in order to lint LintSysNormal.c. 2007-11-13 09:07:33 +00:00
yamt
7bc2fdc746 g/c unused uvm_anon_pool. 2007-11-13 08:48:28 +00:00
skrll
6e57c35ead Remove an include that's not required. 2007-11-13 08:41:50 +00:00
yamt
a05590a3d6 lwp_ctl_alloc: fix a mutex_enter/exit mismatch. 2007-11-13 08:38:06 +00:00
cube
205642797e Remove some whitespace. 2007-11-13 05:31:01 +00:00
ad
9202b10ca9 Cosmetic change. 2007-11-13 01:21:32 +00:00
ad
e0450a2090 Add _lwp_ctl() system call: provides a bidirectional, per-LWP communication
area between processes and the kernel.
2007-11-13 00:22:12 +00:00
agc
7f7c78c76b Rename include/util.h to include/iscsiutil.h to avoid a nameclash
with /usr/include/util.h.
2007-11-12 23:25:40 +00:00
ad
d93f08b7ba 4.99.36: struct proc/lwp changed. 2007-11-12 23:13:30 +00:00
ad
2312f6a01a Regen. 2007-11-12 23:12:57 +00:00
ad
b668a9a05f Add _lwp_ctl() system call: provides a bidirectional, per-LWP communication
area between processes and the kernel.
2007-11-12 23:11:58 +00:00
dsl
300078900a regen 2007-11-12 22:23:29 +00:00
dsl
9bb5de8a76 syscall() needs to be 'NOARGS INDIR'.
Actually I wonder if this code could use the standard syscall table ?
2007-11-12 22:23:01 +00:00
bouyer
fe62d31b91 Note ahcisata(4) ATAPI support. 2007-11-12 21:26:35 +00:00
bouyer
637a7b4433 Add ATAPI support to ahcisata(4). lightly tested with a DVD burner, by
mounting a CD and reading from it, and blanking a DVD-RW using cdrecord.
2007-11-12 21:25:14 +00:00
jmmv
416efab2e1 Fix release build that was broken due to the lack of a clean target.
Noted by ad@.  I didn't see this myself because I always build with
UPDATE set, so no cleaning is done.
2007-11-12 20:13:21 +00:00
joerg
2053e6a730 Merge refactoring from jmcneill-pm. 2007-11-12 20:10:32 +00:00
joerg
ade410e9d5 Merge bunch of AGP changes from jmcneill-pm. 2007-11-12 20:00:14 +00:00
joerg
4f26bc754d Merge pci_disable_retry function from jmcneill-pm as it is found in
various drivers.
2007-11-12 19:54:36 +00:00
joerg
09f732085f From jmcneill-pm: don't probe for I2C device. It has limited usefulness
and hangs a number of machines.
2007-11-12 19:42:44 +00:00
joerg
0bed2981dc Add Intel 82965PM bridge from jmcneill-pm. 2007-11-12 19:40:49 +00:00
joerg
ba3c8f07bd Regen. 2007-11-12 19:32:53 +00:00
joerg
4373bb107c Merge a PCI IDs of Intel 82G33 and 82965PM from jmcneill-pm. 2007-11-12 19:32:32 +00:00
plunky
2bafcfdd48 improve visibility of [dis]connected messages 2007-11-12 19:19:32 +00:00
plunky
176a9c6143 include <sys/device.h> for device_t 2007-11-12 19:08:29 +00:00