Commit Graph

162059 Commits

Author SHA1 Message Date
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
martin 2fd15d17ad db_init_commands() early 2007-09-24 00:00:52 +00:00
martin 34bb6e19fd Minor clenaup - db_cmd_loop_done is a bool nowadays, so use true/false
instead of 0/1.
Also make db_init_commands() non-static.
2007-09-23 23:55:54 +00:00
pooka a379e55c78 remove rump-block for sh3 ports 2007-09-23 23:08:04 +00:00
pooka 1c1e708cf7 include machine/cpu.h instead of sh3/cpu.h. Effectively it's the
same, but makes rump build on sh3 platforms.
2007-09-23 23:07:27 +00:00
bouyer ad1f77f70c cleanup findroot(): remove code to match BIOS disk, as the bootloader
won't pass us this kind of information anyway ...
2007-09-23 21:29:03 +00:00
agc 903cd8368b Sync with reality - add <sys/gcq.h> 2007-09-23 21:27:34 +00:00
martin 99423a9d7c Simplify the "tables are already setup" test.
Print a message on unknown commands (as we used to do before) and get rid
of the now unused macro previously used for that.
2007-09-23 19:51:20 +00:00
bouyer ed46965916 Don't attach ipmi if GETID failed. From Nicolas Joly. 2007-09-23 19:17:51 +00:00
martin ad21af77ef Fix build for archs w/o DB_MACHINE_COMMANDS.
Patch from KIYOHARA Takashi.
2007-09-23 18:59:23 +00:00
martin 66eb3cf2ac The "mach dtlb" and "mach itlb" had two ways to produce the same output
(depending on an address given or not) - simplify to always use the
locore.s version.
2007-09-23 18:55:12 +00:00
bouyer 5f0855fadb Ajust for Xen 3.1.0 public headers. From Christoph Egger in private mail. 2007-09-23 16:54:07 +00:00
bouyer de1e0997f1 Add NetBSD CVS Id. 2007-09-23 16:25:28 +00:00
bouyer a6669b974a Remove files that should not have been imported. 2007-09-23 16:24:06 +00:00
bouyer d6d56d2ae7 Merge conflics after import of Xen 3.1.0 public headers 2007-09-23 16:19:36 +00:00
bouyer 9800459946 Import Xen 3.1.0 public headers 2007-09-23 16:13:31 +00:00
yamt d71c563a36 make RANGE_TEST a function. 2007-09-23 16:05:40 +00:00
yamt 97427fb0e4 use a correct type for UIO_*. 2007-09-23 16:00:08 +00:00
bouyer 4b788a8f96 Add NetBSD RCS Id. 2007-09-23 15:57:36 +00:00
martin e2240a6d26 Add verbose help for ddb mach commands. 2007-09-23 14:01:15 +00:00
martin 0b30abee39 Improve sparc64 "mach" descriptions. 2007-09-23 13:11:32 +00:00
kiyohara 57062aa01b We call to config_hook_call() with always 'on'.
It doesn't suspend it for NULL.
2007-09-23 12:21:47 +00:00