Commit Graph

162180 Commits

Author SHA1 Message Date
ad
604692c130 Use selinit() / seldestroy(). 2007-09-25 13:53:31 +00:00
ad
f8d23a5f1b Add selinit() / seldestroy() from the vmlocking branch. 2007-09-25 13:53:11 +00:00
tnn
aa8a5e0d63 remove extraneous "has" 2007-09-25 09:42:51 +00:00
junyoung
8fa93f7dc6 Farewell to gccism. 2007-09-25 08:22:44 +00:00
junyoung
4271bf2ec5 Massive cosmetic changes, notably:
* ANSIfy
 * De-__P
 * u_intXX_t -> uintXX_t
 * Remove "extern" from function prototypes
2007-09-25 08:19:09 +00:00
junyoung
0e2bf8ef62 Remove trailing spaces. 2007-09-25 08:16:08 +00:00
wiz
8fe4056934 Add piixpcib(4), based on the one provided by Stephan Meisinger in
PR 37021.
2007-09-25 06:27:04 +00:00
lukem
a213122ebe remove unnecessary #include 2007-09-25 04:36:30 +00:00
lukem
1db82cf8e6 revert previous thinko 2007-09-25 04:10:12 +00:00
lukem
2212f6b672 remove unnecessary #include 2007-09-25 04:09:03 +00:00
uwe
42598e2348 Shave off an instruction in __EXCEPTION_UNBLOCK. 2007-09-25 02:21:12 +00:00
uwe
25b921930f Misc comment fixes. 2007-09-25 01:55:07 +00:00
uwe
3d8a597d48 Don't expose asm macros (traditional cpp) to C code (ANSI cpp) so that
we don't have to do weird dances protecting # that indicates asm
immediate operand from being iterpreted as cpp stringification
operator.
2007-09-25 01:50:47 +00:00
lukem
e9aa053c09 Add raise_default_signal(3) -- raise the default signal handler.
Can be used by applications that have their own SIGINT (et al)
handlers and want to exit in a manner that correctly
signals to the parent that the process was terminated by a signal.
See http://www.cons.org/cracauer/sigint.html for more info.
Discussed on tech-userlevel@.
2007-09-25 01:13:54 +00:00
uwe
3ba81886ab sh_vector_interrupt - while here, shave off a few cycles and run with
exceptions disabled only the code that really needs to.
2007-09-25 00:53:04 +00:00
uwe
ca8a189dd1 Pass correct size in CFATTACH_DECL (obio_softc, not device).
I have no idea how/why it's been working all this time, but I guess
today's changes to struct device shifted delicate numerology balance
and exposed the problem that's been around since the import.
2007-09-24 22:55:13 +00:00
joerg
e70e336960 Convert bge(4) to device/softc separation. Use aprint_* instead of
printf all over the place. Only the debug macros are kept. Place the TSO
message about the hard case under debug.
2007-09-24 21:25:45 +00:00
wiz
804d4ddaaf Document aprint*_dev and aprint*_ifnet. Requested by joerg@ 2007-09-24 20:44:23 +00:00
joerg
f381694bae Extend the aprint family with _dev and _ifnet versions that take
a device_t or struct ifnet * as first argument and prefix the log
message with the corresponding device/interface name.
2007-09-24 20:01:03 +00:00
xtraeme
636631cccc sme_add_sensor_dictionary: don't forget to release the dictionary when
an error ocurrs. This is the last memleak in the code, let me know if
you find more and I'll pay you a beer.
2007-09-24 19:46:38 +00:00
plunky
04ced1f2dd new lines for new sentences 2007-09-24 19:29:01 +00:00
pooka
4d93faced9 add a few comments and g/c dead code 2007-09-24 19:15:42 +00:00
joerg
8c5de3a623 Introduce CFATTACH_DECL_NEW and CFATTACH_DECL2_NEW for drivers that
don't expect struct device as first field of softc. device_private uses
a new field of struct device to give the softc address and that field is
either set the struct device for old-style devices or a separate
allocation by config_devalloc. Both macros are intended as temporary
bandaid until all drivers are converted and will be removed later.
2007-09-24 18:47:56 +00:00
bouyer
29bd9d9414 %fs has to be initialized before mutexes are used; consinit() may end up
calling mutex_enter(). So call initgdt() ASAP, and consinit() right after
initgdt().
Fix Dom0 crash reported by Mikolaj Golub and others when using the VGA
console.
2007-09-24 18:34:01 +00:00
plunky
43ed9716b7 do not use _nocopy, this string is part of another object that
will be released shortly..
2007-09-24 18:09:17 +00:00
kiyohara
e78479483b Support apm(8). 2007-09-24 18:08:53 +00:00
pooka
a51616225d BLKSIZE is always the same as blksize these days, so get rid of it. 2007-09-24 16:50:58 +00:00
pooka
094e51ae36 Fix comment inaccurate from prehistoric times: default MINFREE is 5, not 10 2007-09-24 16:20:50 +00:00
kiyohara
685380a8a8 Add psh3pwr. 2007-09-24 16:16:42 +00:00
christos
e179d264f0 Add code to support whitespace checking/cleanup. This disabled by
default.  To enable it, set netbsd-knf-whitespace-check to 't'. See
the help message for this variable for related knobs and issues. This
was tested on emacs 21.4 and 22.1. (From Anon Ymous)
2007-09-24 15:38:11 +00:00
pooka
d418c3a3f7 remove sun2 from no-rump list 2007-09-24 14:19:36 +00:00
pooka
018bb97124 Rename __assert() to __kernassert() so that it doesn't collide
with the libc version.  They take different arguments.
2007-09-24 14:19:03 +00:00
pooka
44a18be646 nuke unused homegrown assert() definitions 2007-09-24 14:16:54 +00:00
ad
af8ed8ad89 Kill PTHREAD_SPIN_DEBUG - it's not must use with 1:1. 2007-09-24 13:56:42 +00:00
cube
9d4a2bf213 - If the chip doesn't support jumbo frames, don't use bus_dmamap_load_mbuf
which expects a properly filled mbuf chain, but bus_dmamap_load for the
  mbuf storage space instead.

- If the chip supports jumbo frames
    + keep track of which RX descriptor uses which jumbo mbuf buffer, so
      that we can rewrite the physaddr field of the descriptor later, as it
      might be partially overwritten by the hw
    + when we're out of jumbo mbufs, and if the packet is small enough,
      copy it into a cluster mbuf

Those changes make my nfe(4) stable in both cases (defining NFE_NO_JUMBO
for the first one).
2007-09-24 13:17:53 +00:00
cube
5b396aa2c0 From OpenBSD, rev 1.72:
In nfe_start() do a fast return if IFF_OACTIVE is set, in
this case we need a Tx interrupt to clean up the DMA ring
before if_start can be properly called.
2007-09-24 13:11:08 +00:00
skrll
d32ed98975 Resurrect the function pointers for lock operations and allow each
architecture to provide asm versions of the RAS operations.

We do this because relying on the compiler to get the RAS right is not
sensible. (It gets alpha wrong and hppa is suboptimal)

Provide asm RAS ops for hppa.

(A slightly different version) reviewed by Andrew Doran.
2007-09-24 12:19:39 +00:00
yamt
cb0e178012 yamt-x86pmap 2007-09-24 10:55:20 +00:00
skrll
23ac27b837 typo 2007-09-24 10:51:11 +00:00
martti
762be05011 bnx supports VLANs. 2007-09-24 08:30:50 +00:00
martin
0ceb0c0edd Cosmetic changes in ddb online help strings. 2007-09-24 08:20:16 +00:00
mrg
8a76c90ed6 add mskc/msk & skc/sk network drivers.
reported to work by Chris Ross on port-sparc64.
2007-09-24 06:14:03 +00:00
pooka
268bb1001b print 0x before hex, print proper types 2007-09-24 01:40:38 +00:00
pooka
84387d0fd3 Don't whine about wakeup() not being implemented every time it's
called.  Nobody cares unless ltsleep() is called (and it panics).
2007-09-24 01:34:27 +00:00
pooka
1d4d5500dc -DFFS_EI 2007-09-24 01:31:07 +00:00
uwe
609dd932e5 Do RAS check in sh_vector_interrupt, don't abuse ast() for that. 2007-09-24 01:17:15 +00:00
rumble
74c326b877 Simplify ptyfs_readdir at pooka's suggestion.
No functional change intended.
2007-09-24 01:00:02 +00:00
rumble
0ae0a486c7 Avoid stack allocation of large dirent structures in foo_readdir(). 2007-09-24 00:42:12 +00:00
pooka
12e401bc1a Add refuse paper to SEE ALSO 2007-09-24 00:22:25 +00:00
martin
d405af593c add DDB_VERBOSE_HELP 2007-09-24 00:12:26 +00:00