Commit Graph

44347 Commits

Author SHA1 Message Date
pavel 11f19508fd Accept the old ABI versions of signal trampolines for 32-bit
compatibility. Unbreaks the i386 cvsup binary on amd64.

Problem reported by Blair Sadewitz and Viktor Holmlund, fix tested by
Viktor Holmlund.
2007-02-18 01:45:37 +00:00
jmcneill e9a5822887 Add example config file for Netgear WGT624 v3 wireless router. 2007-02-17 23:26:03 +00:00
jmcneill 692a0ae545 Only define COM_ARBUS_BAUD if not already defined elsewhere. 2007-02-17 23:25:26 +00:00
dsl 1547309b01 Pretend the ddb code has proclist_lock held to stop any deadlock. 2007-02-17 22:47:42 +00:00
pavel 934634a18c Change the process/lwp flags seen by userland via sysctl back to the
P_*/L_* naming convention, and rename the in-kernel flags to avoid
conflict. (P_ -> PK_, L_ -> LW_ ). Add back the (now unused) LSDEAD
constant.

Restores source compatibility with pre-newlock2 tools like ps or top.

Reviewed by Andrew Doran.
2007-02-17 22:31:36 +00:00
he 682c6059c1 Install the new rwlock.h file. 2007-02-17 21:59:07 +00:00
ad 790d873430 Put a sock in it.. 2007-02-17 19:30:33 +00:00
mhitch d417d9f5d4 From Christos: gdtoa fixes for m68k. M68k ports should build now, but
printing extended precision is a little off.
2007-02-17 17:50:52 +00:00
skrll 8a809fb11a Preserve the return pointer across the call to sched_idle_unlock in
switch_return so that we don't loop forever!

Remove some unnecessary nops while I'm here.
2007-02-17 10:37:33 +00:00
matt f7d7a7a06a Add an implementation for krwlock_t. Initialize ci_mtx_count to 1 (biased).
Fix a few buglets in the kmutex_t implementation.
2007-02-17 05:34:07 +00:00
tsutsui 5dea0b7003 Make disconnect/reselect work on news68k si(4) with DMA and
enable it by default.
2007-02-17 01:27:07 +00:00
daniel c339e55881 Add an opencrypto provider for the AES xcrypt instructions found on VIA
C5P and later cores (also known as 'ACE', which is part of the VIA PadLock
security engine). Ported from OpenBSD.

Reviewed on tech-crypto and port-i386, no objections to commiting this.
2007-02-17 00:28:23 +00:00
tsutsui 7d0e6302b9 Remove autovectored ISR priorities and use now properly defined
IPL_* values for isrlink_autovec().
2007-02-16 21:52:47 +00:00
tsutsui c98c1f9199 Use LIST_*() macro. 2007-02-16 21:46:27 +00:00
tsutsui a46d60ccc4 Disable more options to shrink kernel size. 2007-02-16 19:15:15 +00:00
ad 431bcb0874 Pacify lint. 2007-02-16 15:42:02 +00:00
ad 2d62904bd2 More spllowersoftclock() fallout. 2007-02-16 14:00:17 +00:00
ad 36bb413e0d More spllowersoftclock() fallout. 2007-02-16 13:55:42 +00:00
tsutsui 990a39ff81 Remove hacks for now removed spllowersoftclock(9). 2007-02-16 13:27:00 +00:00
oster 204d46e90b Fix typo from newlock2 merge, allowing MIPS64 to build again. 2007-02-16 03:30:48 +00:00
ad 3363855a4a Remove spllowersoftclock() and CLKF_BASEPRI(), and always dispatch callouts
via a soft interrupt. In the near future, softclock will be run from process
context.
2007-02-16 02:53:43 +00:00
ad 26c2c3986f MUTEX_SET_WAITERS(): return zero if the mutex has become unheld. 2007-02-16 02:48:47 +00:00
ad 86e995e9d5 More MD changes to get vax compiling. 2007-02-16 02:17:42 +00:00
matt 53af1aa78b Partially adapt the VAX port to the newlock2 changes. These are untested
but they do at least compile.
2007-02-16 01:33:49 +00:00
ad def3fb26c7 Add MUTEX_CLEAR_WAITERS(). 2007-02-15 22:52:42 +00:00
ad 58bb4135a9 - mutex_exit(): call mutex_wakeup() if there are waiters, since we have
already released the lock when we reach the waiters check.
- mutex_enter(): denote the start and end of the critical and export
  labels. If an LWP is preempted after grabbing the interlock, the dummy
  owner value (0xff000000) will persist, but the real owner value must be
  set soon to prevent deadlock. On entry to interrupt we'll need to check
  for this and set in the correct value if the LWP was interrupted in the
  critical section.
2007-02-15 22:49:35 +00:00
ad 087fdb9080 Count the number of CPUs at boot and stash in 'ncpu'. Eventually should
have each CPU register at attach, so we can figure out the topology for
the scheduler.
2007-02-15 20:32:47 +00:00
reinoud 43061c75ae Rename the B_XXX flag to B_DEVPRIVATE flag since it was never used for
debugging and its main use is in device drivers. Its used there to signal
that the flagged buffer has a special meaning or should be handled
differently.

OK'd by Bill Sudenmund on tech-kern.
2007-02-15 18:33:26 +00:00
ad c2c74a2fbe Don't establish an interrupt handler at IPL_VM, use IPL_TTY instead. 2007-02-15 18:18:21 +00:00
ad 9abeea588a Replace some uses of lockmgr() / simplelocks. 2007-02-15 15:40:50 +00:00
ad 58c53b4195 Pacify lint/gcc. 2007-02-15 15:27:53 +00:00
ad 216d01d042 Make these compile again. 2007-02-15 15:14:57 +00:00
tsutsui 6f2a774e58 IPL_NSOFT -> SI_NQUEUES (missed in the previous. Umm) 2007-02-15 12:43:17 +00:00
tsutsui 032ce3bba4 Fix an indent in the previous. 2007-02-15 12:22:04 +00:00
martin 8f4fbc0245 Fix obvious copy&pasto in SCHED_DEBUG register usage. 2007-02-15 09:02:12 +00:00
mhitch e7d5ff9134 Kernel threads were running at splhigh on m68k systems because the status
register was inherited from proc0.  Set the new process's status register
to PSL_LOWIPL.  Raidframe reconstruction no longer causes my Amiga to lose
time.
2007-02-15 02:55:39 +00:00
mhitch 5271afeb9d Add lock stubs for m68k. Amiga builds and runs now. 2007-02-15 02:48:48 +00:00
macallan 9d17b3cb4d gah, fix botched merge in previous commit 2007-02-15 02:17:30 +00:00
macallan 63b3b74e9f add battery at pmu 2007-02-15 02:06:48 +00:00
macallan f41db58cbf not quite complete yet driver for batteries found in ohare-based PowerBooks
no APM emulation or sysmon integration yet but some stuff is exposed via
envsys
2007-02-15 01:48:40 +00:00
macallan 9c80d19d08 don't use IPL_HIGH 2007-02-15 01:45:40 +00:00
macallan 78dc3781e9 - don't use IPL_HIGH
- attach batteries when present
- some cleanup
2007-02-15 01:44:54 +00:00
ad 6511d52f7d inline -> __inline 2007-02-11 15:41:31 +00:00
macallan ba96662cde add missing defflags from previous commits 2007-02-10 19:10:24 +00:00
hannken 39aa6289a6 newlock2: curproc->p_sigctx.ps_sigmask -> curlwp->l_sigmask.
Ok: Andrew Doran <ad@netbsd.org>
2007-02-10 18:16:18 +00:00
xtraeme b42a191f38 Add pseudo-device cmos - see cmos(4)
Remove unit number in pseudo-device swwdog, by default it is 1.
2007-02-10 18:00:59 +00:00
nakayama f7be5e7f25 s/___asm/__asm/ 2007-02-10 17:34:46 +00:00
ad 5df226f2ad NSPR builds seem to choke on 'inline'. Replace it with __inline. 2007-02-10 16:19:39 +00:00
ad 2b0ac2e782 Fix a pasto (mutex_exit -> mutex_enter). 2007-02-10 16:08:16 +00:00
skrll 1472d08a88 Fix a label. 2007-02-10 13:21:52 +00:00