Commit Graph

162407 Commits

Author SHA1 Message Date
ad 0b82374265 Merge from vmlocking: add more calls to DELAY(). 2007-10-09 16:53:00 +00:00
pooka 4a4ec123bd g/c vntouser_req(), it's not used anymore 2007-10-09 15:49:34 +00:00
ad 2823fb7428 Defer wakeup() to a soft interrupt, since lptintr() can be called above
IPL_SCHED.
2007-10-09 12:45:27 +00:00
ad a6aa4ab63d splstatclock -> splhigh 2007-10-09 12:23:51 +00:00
xtraeme 2e75cc0f7b - Do not allow a 'critical-{max,min}' property in battery
sensors (those that contain the 'want-percentage' object on its
  dictionary), the 'critical-capacity' prop must be used instead.

- When setting a 'critical-{max,min}' property check if the value is
  higher than the 'max-value' or lower than the 'min-value' on its
  dictionary, raise an error if it's true.
2007-10-09 08:00:46 +00:00
sjg 3a5409e4eb Fix an off-by-one error in handing mal-formed modifiers.
The issue seems to have been present for some time, only showed up
when running unit-tests on SunOS.
Make sure we get an error message, but otherwise behave as before.
2007-10-09 05:55:03 +00:00
rmind 662df2e4ad - Style, consistency;
- Replace most panic() checks with KASSERT();
- msgrcv1: Improve readability;
- Remove #ifdef ENOMSG;

No function changes of the interface are intented.
2007-10-09 03:27:37 +00:00
xtraeme eed1cc9bc8 Fix a typo that prevented a 'critical-capacity' property to
be added.
2007-10-09 02:29:37 +00:00
mrg 862626dd09 two new hacks:
- include <stdbool.h> so bool is available _KERNEL for sys/condvar.h
- include <sys/mutex.h> before defining _KERNEL so it won't try to
  include <machine/intr.h> which isn't available to userland.

fixes builds on sparc64.
2007-10-09 01:23:20 +00:00
ad 3465d8db6f Add defs for hppa. From he@. 2007-10-09 00:59:52 +00:00
ad 32c802b054 Add "mqueue" to DTYPE_NAMES. 2007-10-08 23:20:38 +00:00
ad 0e7216ebf1 brelse() now takes two args. 2007-10-08 21:42:33 +00:00
ad 9c5739f1c6 brelse() now takes two arguments. 2007-10-08 21:41:12 +00:00
ad fe44973fe3 Give brelse() a second argument so that it matches the kernel.
fsck_lfs now compiles again.
2007-10-08 21:39:49 +00:00
tls 0a012aa1c5 Fix accidental USE_SSP -> USE_FORT: now USE_SSP works as intended for
kernel builds.  Thanks to xtraeme for pointing this out.
2007-10-08 21:25:35 +00:00
sjg e73405e272 Use .MAKE.MAKEFILES to track all the makefiles that have been read
so they can be used in dependency rules.
2007-10-08 20:26:36 +00:00
ad c97e9c4ea7 brelse() stragglers. 2007-10-08 20:12:05 +00:00
ad 36a1712707 Merge run time accounting changes from the vmlocking branch. These make
the LWP "start time" per-thread instead of per-CPU.
2007-10-08 20:06:17 +00:00
ad 0ee29bef4d Missed brelse() change. 2007-10-08 19:22:04 +00:00
ad 0a0689eebd Merge from vmlocking: fix LWP reference counting problems. 2007-10-08 18:11:11 +00:00
ad 16598eeedf Merge from vmlocking: don't hold scheduler locks across copyout(). 2007-10-08 18:09:37 +00:00
ad 62fdbc4b9a LOCK_ASSERT -> KASSERT 2007-10-08 18:07:24 +00:00
ad 9f56dfa520 Merge brelse() changes from the vmlocking branch. 2007-10-08 18:02:53 +00:00
ad 5c3b2b3f2d Merge ffs locking & brelse changes from the vmlocking branch. 2007-10-08 18:01:27 +00:00
ad 6eb1b4f21a Include sys/cpu.h for archs that don't have CPU_INFO_ITERATOR. Spotted
by dsieger@.
2007-10-08 17:26:40 +00:00
ad fbf4a82ac2 Merge from vmlocking: cosmetic change. 2007-10-08 17:02:51 +00:00
ad 59904ecbd2 Merge from vmlocking: fix dodgy use of VOP_ISLOCKED(). 2007-10-08 17:01:43 +00:00
ad d50d28b794 Merge from vmlocking: in cdev_tty() check d_tty != NULL. 2007-10-08 16:54:09 +00:00
ad 1d7050e5e2 Merge from vmlocking: fix many timing problems on mips. 2007-10-08 16:52:49 +00:00
ad be0770a433 Merge from vmlocking: use mutexes and the softint API. 2007-10-08 16:50:45 +00:00
ad 2af68666da Merge disk init changes from the vmlocking branch. These seperate init /
destroy of 'struct disk' from attach / detach.
2007-10-08 16:41:05 +00:00
ad 46ed8f7d77 Use the softint API. 2007-10-08 16:18:02 +00:00
skrll c6deb42c81 Provide PTHREAD__ASM_RASOPS for alpha.
The gcc generated lock try RAS is broken as the store needs to be the last
instruction.
2007-10-08 16:04:43 +00:00
ad 342d5fc94f Add stubs that provide new soft interrupt API from the vmlocking branch.
For now these just pass through to the current softintr code.

(The naming is different to allow softint/softintr to co-exist for a while.
I'm hoping that should make it easier to transition.)
2007-10-08 15:51:02 +00:00
ad 402de3c455 Pull in sys/simplelock.h to fix build on sparc. 2007-10-08 15:45:54 +00:00
ad b6e1f76ba0 Fix merge error. 2007-10-08 15:13:12 +00:00
ad 451aacda90 Merge file descriptor locking, cwdi locking and cross-call changes
from the vmlocking branch.
2007-10-08 15:12:05 +00:00
martin cd2cd2dd63 Do another setjmp right before entering the command loop, we do not want
to execute the on-enter commands again on errors.
2007-10-08 15:06:26 +00:00
ad 82f39f6568 Fix merge error. 2007-10-08 14:14:55 +00:00
ad 15b0a1106e Merge from vmlocking: don't add a refrerence to a dying LWP. 2007-10-08 14:08:26 +00:00
ad 76e37ddd89 Merge from vmlocking: splstatclock is gone. 2007-10-08 14:07:23 +00:00
ad 0b87fda284 Merge from vmlocking: relax an assertion if panicstr != NULL. 2007-10-08 14:07:08 +00:00
ad 4de14a3313 Pad the hashlocks to 32-byte boundaries. 2007-10-08 14:06:15 +00:00
uwe a34b3f871d In handwritten asm use -fPIC code instead of -fpic, our libc has grown
large enough for GOT to be larger than 8k.

While here kill redundant PIC ifdefs in setjmp.S - sparc "call"
instruction is piccy by itself.

Tested by martin@
2007-10-08 13:06:00 +00:00
christos 3833b1d829 call sysconf, before add paths. From Kurt Schreiner 2007-10-08 12:51:21 +00:00
hannken 3c258e6a15 Bump date. 2007-10-08 10:32:38 +00:00
hannken c775e7cb24 fscow_run(): Check for NULL mount and don't run the cow handler in this case. 2007-10-08 09:09:47 +00:00
martin d69eb5cf2d Minor cosmetics 2007-10-08 00:21:47 +00:00
christos 33631b9b4a call xfree instead of free so that we don't bring in libc's free. 2007-10-08 00:15:05 +00:00
jnemeth dfe9b7a3bb expand details about removed components 2007-10-07 23:46:16 +00:00