Commit Graph

167311 Commits

Author SHA1 Message Date
matt
6c90a57c76 Rethink softint cleanup. instead of post softint, do it before so we always
know it was done right.  This fixes KSP invalid panics.
2008-02-22 03:18:40 +00:00
matt
80798140ed Switch NetBSD/vax to the CAS model of mutexes. Fix the locking primitives
in lock_stubs.S so they actually function correctly.
2008-02-22 03:16:01 +00:00
matt
a0283d03d4 Add back some includes which were inadvertantly removed. 2008-02-22 03:14:22 +00:00
oster
06f0c8e418 Make outputs.master and inputs.dac show up in mixerctl output for the ALC888. Patch from, and much thanks to, jmcneill @. 2008-02-22 02:59:31 +00:00
drochner
569b8a258b clean up the error bit clear code:
-use an aligned pci config space address as everyone else -- I'm sorry
 about that because I like gson's way a lot -- it keeps the address
 offset due to alignment visually close to the data shift --, but since
 aligned addresses are used everywhere else in definitions, this
 causes confusion
-the mask applied to the data didn't make much sense, a look at the
 FreeBSD code where this code originates from suggests that there
 was just a mistake -- one trailing zero missing --
 anyway, the datasheet tells that the error bits are all write-one-
 to-clear, so just write back the value and we are done
2008-02-21 22:26:35 +00:00
drochner
efa71badb8 -fix the delay logics in "set powerstate" for the cases that D2 or D3
are switched to (was harmless because we don't do D2 yet and also
 don't (hmm - shouldn't) access devices in D3 (which would only make
 sense if we'd support D3hot)
-zero the io/mem/master enable bits before entering D3
 (The special handling of PCI_CLASS_DISPLAY devices is questionable
  here -- we can't care about the console if we are seriously follow
  the spec, and upstream bridges aren't considered anyway.)
-add exact references to the PCI PM spec
2008-02-21 22:02:22 +00:00
drochner
e4b37a874e put back the old shutdown handlers to flush the disk cache,
the pmf API can't deal with all the different suspend/resume/reboot
cases well yet, so better keep suspend/resume and reboot/halt/poweroff
clearly seperated
2008-02-21 21:52:06 +00:00
mjf
1ca9f54774 Terminate mjf-devfs branch because of some CVS tagging error I must
have made somewhere. All new work will be on mjf-devfs2.

Long live mjf-devfs2!
2008-02-21 20:35:50 +00:00
uwe
8022c855dd Rasops and wsfont are now in MI conf/files so remove them from here. 2008-02-21 19:52:00 +00:00
garbled
7dac6a6965 Note 7046-B50 support and new asm routines on powerpc. 2008-02-21 17:39:22 +00:00
garbled
f908c50890 Make use of ppc tuned assembler. 2008-02-21 17:37:00 +00:00
garbled
2ba84f0f9e Add tuned powerpc assembler written by IBM and released under a 3-clause
BSD Lisc as part of the perflib project.
http://sourceforge.net/projects/ppcperflib/

Tested the new functions with microbenchmarks on a number of different
CPU types, and  found that most cpus either benefited greatly, or were
unaffected.  Primarily G4 CPU's were unaffected, and all others showed
speedups.  My 7044 (POWER3) went from a 70.6 to a 73.2 (thats good) in
bytebench with a complete release built with these.  Also passed
regression tests.
2008-02-21 17:35:47 +00:00
skrll
60a9c724c0 Note nick-net80211-sync branch. 2008-02-21 17:23:24 +00:00
ad
c64692e9f4 Use a hash of locks, instead of one per vm_page. 2008-02-21 17:12:58 +00:00
ad
bc9a63754d #define __HAVE_ATOMIC_AS_MEMBAR, indicating that:
- atomic_cas_ni() does an implicit membar_exit()
- all other atomic operations do an implicit membar_sync()

While this might seem kind of arbitrary it's the basis for some important
optimizations.
2008-02-21 16:31:13 +00:00
tsutsui
a683a1b3c2 u_int32_t -> uint32_t, remove __P(), ANSIfy. 2008-02-21 14:32:31 +00:00
tsutsui
a62d10165d Use __arraycount(). 2008-02-21 14:30:41 +00:00
ad
110d5cc274 Make MFS MP-safe. Needed because of the funny tricks it plays. 2008-02-21 14:10:57 +00:00
martin
e96ec76164 rasops is global now 2008-02-21 13:44:17 +00:00
keiichi
5a3480171e added keiichi-mipv6 branch for developing Mobile IPv6/NEMO BS functions
on NetBSD.
2008-02-21 11:09:39 +00:00
sekiya
209f5cf4d0 Increase MSGBUFSIZE so that we don't truncate dmesg before syslog
starts.
2008-02-21 09:32:12 +00:00
spz
5fefda665c add missing dot and tab 2008-02-21 09:30:07 +00:00
rafal
976dbbc142 Make this work on a new TrippLite USB->Serial Converter Model U209-000-R.
At least rev 3.00 of the device needs the HX hack(s).
2008-02-21 04:38:43 +00:00
matt
4e3cca57c1 More softint fixes. We need to restore the softint lwp's pcb to it's initial
state since it may have been blocked or interrupted by another softint.
2008-02-21 03:52:47 +00:00
joerg
199b0f6721 Fix logic error: memset arguments needs the whole size.
XXX nuke macro logic and just use sizeof.
2008-02-21 02:50:11 +00:00
uwe
cff5aa6f0d Fix help string for "w" - it is "write" not "watch". 2008-02-21 02:07:45 +00:00
uwe
a9092771b1 Use __arraycount. 2008-02-21 01:49:07 +00:00
joerg
36e75d7a01 Ensure that the keyboard is enabled before polling it.
This allows pressing a key to reboot the machine.
2008-02-21 01:42:20 +00:00
uwe
6f94a37806 Revert previous, it's too noisy and misleading (e.g. single stepping
in ddb is not "fatal").  Need to redo it, but not now.
2008-02-21 01:27:42 +00:00
drochner
d22ab0209e Don't call pmf_system_shutdown() from doshutdownhooks() -- it does way
too much in the RB_HALT case, making the "press a key to reboot" prompt
a bad joke. doshutdownhooks() should do shutdownhooks, not more.
Since it is md code which decides about halt/poweroff etc,
pmf_system_shutdown() should be called from there if appropriate.
2008-02-20 23:30:13 +00:00
joerg
4e2cb1955b Remove an unused assignment and convert the remaining for (; cond; )
into while.
2008-02-20 23:16:05 +00:00
drochner
6bc03e0cc0 On system suspend, first get rid of the X server because it doesn't
respect the kernel device tree. (It is arguably ugly to special-case
wscons here, but as long as there is only one driver to be dealt with
it is not worth to introduce another set of hooks.)
Resume the X server at the end of resume, if everything went well.
Acquire the big KERNEL_LOCK before the device tree is walked on
suspend, until after the walk on resume. This is needed to avoid
device accesses by secondary CPUs, and it effectively keeps user
programs from interfering with the suspend process. This might be
revisited when all drivers are using private locks for MP-safeness
(but FreeBSD still does the same afaics).
It should be unnecessary now to switch secondary CPUs offline in
the powerd suspend script.
2008-02-20 22:52:55 +00:00
joerg
0c8d1e69b7 Shrink by using "SysV" or ANSI C memset to init hash table. 2008-02-20 22:46:52 +00:00
drochner
0c3c5106cb -Don't detach/attach the X server in the pmf suspend/resume functions
which are called somewhere in the middle of system suspend. Since the
 X server accesses hardware directly it is outside our control whether
 the devices it accesses are already/still suspended or not, so the only
 way is to detach it before any device suspends and re-attach after
 everything is awake again.
-For that, export a function ("wsdisplay_handlex" for now) which is
 to be called from central suspend/resume code.
-The right way to handle the (normally impossible) case that the X
 server is not detached on suspend is to return an error which should
 abort the suspend process. pmf doesn't yet handle errors of device
 suspend handlers, so as a temporary measure try to suspend anyway,
 to get at least a text console.
-Improve error handling of X server attach/detach and maintain a flag
 which tracks whether the X server is really active.
2008-02-20 22:33:18 +00:00
njoly
ac6668f329 Regen for mlock/munlock syscalls 2008-02-20 21:51:39 +00:00
njoly
e578f6862b Add mlock/munlock syscalls 2008-02-20 21:49:56 +00:00
drochner
bb33f35f20 Since files.wscons et al. are included by ~all ports anyway, include
them in the mi "files" file, and remove include statements from md files.
These shouldn't pull in additional kernel code when not in use, so it
shouldn't do any harm except a risk of namespace collisions which
should be easy to fix.
2008-02-20 21:43:33 +00:00
ad
0a71f5fe72 +cpus 2008-02-20 21:01:23 +00:00
ad
9c235d70b6 - Replace 'xps' with 'procs' and 'lwps'.
- Needs a bit more work.
2008-02-20 20:56:35 +00:00
ad
d2133b5aec stats is gone 2008-02-20 20:43:40 +00:00
ad
fb60c04396 This is useless! 2008-02-20 20:36:29 +00:00
phx
46125cb32d A few bug fixes, approved by garbled:
1. The 'S' operand field has to be swapped with the 'A' operand in the
   output, as long as it is not a store-instruction. To achieve that, I
   have introduced a new operand type Op_ST for the store instructions.
2. srawi has an immediate shift count as third operand, not a register.
3. extsh has only two operands, not three.
2008-02-20 19:12:13 +00:00
matt
c27877a59b progname is const char *, not char * 2008-02-20 18:24:22 +00:00
matt
05ec472001 constify a few arrays 2008-02-20 18:23:50 +00:00
matt
273fa51a4d progname is defined as const char *, not char * 2008-02-20 18:21:39 +00:00
matt
e0eafe6e38 infile is const char *, not char * 2008-02-20 18:20:21 +00:00
matt
ccfd1d4480 errbuf is [], not *. 2008-02-20 18:19:18 +00:00
matt
cd1870ce29 Make hostapd_drivers const. 2008-02-20 18:17:53 +00:00
matt
28dacb0e3a Fix a new bugs that -combine found 2008-02-20 18:16:09 +00:00
matt
421d92a428 Use the VAX_PHYS_TO_S0 macro from vax/tc_machdep.h 2008-02-20 18:15:12 +00:00