Commit Graph

167928 Commits

Author SHA1 Message Date
matt 3143c8de1f Use 0 sized softc and switch to PRIVALLOC 2008-03-15 00:24:13 +00:00
matt 5e7971cbf0 Fix device access. Use a 0 sized softc and switch to PRIVALLOC for mem_cmi. 2008-03-15 00:23:17 +00:00
matt 4e11517afe Use device_* 2008-03-15 00:21:48 +00:00
matt e344d4551d Use a 0 sized softc / switch to PRIVALLOC. 2008-03-15 00:21:30 +00:00
dyoung e86a2a1377 Cosmetic: make rtw_hw_keysupp() return a bool instead of int. In
rtw_wep_setkeys(), add a debug printf, and move the initialization
of keylen from the for-loop to the declaration.
2008-03-15 00:21:12 +00:00
matt 022989947e Comment out xmi and nmi devices. 2008-03-15 00:20:08 +00:00
jkunz 6827de95dd Use device_* accessors. 2008-03-15 00:05:50 +00:00
dyoung 293fa13f60 Extract subroutine rtw_tx_kick() from rtw_start(), and reuse it in
rtw_io_enable() to restart the transmitter after resetting it.
2008-03-14 23:59:01 +00:00
dyoung 705696f034 In vga_is_console(), use deviter_first/_next() and device_t accessors.
Ok cube@.
2008-03-14 23:17:55 +00:00
dyoung 243c883b6e Change tests for "impossible" keys to KASSERT()s. Get rid of a
temporary variable.  In rtw_key_delete(), do not invalidate the
hardware keys unless a WEP key is deleted.
2008-03-14 23:04:42 +00:00
cube 4c9a9f3e5a Fix compilation under options RND_COM and COM_DEBUG.
Reported by Kurt Schreiner on current-users@.
2008-03-14 22:47:06 +00:00
dsl 2bb9a33a0f Add a strchr() - for dosfs in particular.
The i386 asm version in src/common is rather larger than this one.
2008-03-14 22:27:32 +00:00
dsl 2694fcbd4b Add a local strcasecmp() instead of pulling the bloat from libkern. 2008-03-14 22:21:53 +00:00
cube d293cfca1a Split device_t and softc for all attachments of vga(4). 2008-03-14 22:12:08 +00:00
jkunz 2f13c500d2 Fix falout from recent VAX code rototill:
MicroVAX 4000/[3-7]00 could not get HW Ethernet address.
2008-03-14 21:35:01 +00:00
cube a6b5eb2b1d Split device_t and softc for irframe(4). 2008-03-14 21:06:04 +00:00
jkunz 3682eb424e Fix falout from recent VAX code rototill: MicroVAX 4000/1xx and 3100m9x could not get HW Ethernet address. 2008-03-14 20:49:29 +00:00
skrll b86cd2b1b2 Re-run mknative. 2008-03-14 20:22:16 +00:00
tsutsui a2a8479cbe Fix spl(9) botch in cpu_intr() on ews4800mips:
Don't enable unhandled interrupts before all interrupts are processed.
2008-03-14 16:47:08 +00:00
tsutsui 4f59bf75cb Fix spl(9) botch in cpu_intr() on arc:
Don't enable unhandled interrupts before all interrupts are processed,
and also change all interrupt handlers to return processed MIPS_INT_MASK
values, rather than masked values of them.
2008-03-14 16:43:27 +00:00
nakayama 868048cf4d SMP support for sparc64 now works, so make GENERIC.MP kernel build
by default.
2008-03-14 16:43:16 +00:00
nakayama 1316ec8115 SMP support for sparc64 now works on some models. 2008-03-14 15:57:14 +00:00
skrll a21274d611 Pull in some updates for NetBSD/sh gdb from wrstuden-fixsa.
- support siginfo trampoline detection/unwind
- modernise wrt core file regsets
- use inf-ptrace
2008-03-14 15:48:59 +00:00
nakayama 9cfa53b41a #include "opt_multiprocessor.h" 2008-03-14 15:40:22 +00:00
nakayama 8d734e3bd0 Complete per-CPU TSBs and MMU contexts changes. 2008-03-14 15:40:02 +00:00
nakayama 5374009247 Improve FPU state save/clear like x86, idea from OpenBSD. 2008-03-14 15:39:18 +00:00
nakayama 74a205f37a On SMP kernel,
- use "tick" interrupt for per-CPU statclock.
- disable "counter-timer" #1 interrupt and use it as timecounter.
2008-03-14 15:38:36 +00:00
tsutsui f5506ae261 Enable ETHERCAP_VLAN_MTU. 2008-03-14 15:38:09 +00:00
nakayama ead4e6f7b9 Improve IPI handling:
- make IPI takes two arguments.
- add IPI event counters per-CPU.
- implement IPI functions which were missing or broken.
- insert DELAY while halting primary CPU in IPI handler.
2008-03-14 15:38:00 +00:00
cube 607ead0ef4 Split device_t and softc for all com(4) devices (well, everything that
uses a com_softc backend).  Use proper types and ansify where appropriate.
2008-03-14 15:09:09 +00:00
tsutsui 12a7738525 Don't fetch DMA descriptor after BUS_DMASYNC_PREREAD op. 2008-03-14 13:42:01 +00:00
cube 816c3531d9 Split device_t and softc, catching up with changes of all other ne(4)
variants.
2008-03-14 11:51:06 +00:00
martin 2f30108619 If a cd(4) is attaching on ata instead of scsi, the controller is
the grandparent, not the parent.
2008-03-14 09:44:22 +00:00
martin df9cb44ea9 Remove a tty_lock for now - I know that this is wrong, but the whole
tty subsystem locking is not consistent and Andrew didn't have
time to come up (or guide to) the right fix.
This prevents machines with serial console on zs(4) from deadlocking on
first input.
2008-03-14 08:23:51 +00:00
mhitch b6044f13b8 Initial bio(4) support; only volume status is handled. The driver doesn't
yet know about physical drives.  Derived from the OpenBSD ciss(4) bio(4)
support.
2008-03-14 03:30:19 +00:00
ichiro f742db2180 make compile
- add xenbus_read_ull prototype into include/xenbus.h
2008-03-14 02:17:15 +00:00
bouyer 9cde455f5c Add swedge support to xbd backed, and make the virtual block device handle
sizes larger than 4TB. Tested by Jukka Marin.
Should fix kern/37370.
2008-03-13 22:19:39 +00:00
bouyer b097a67b1d Implement a C version of splx() in evtchn_do_event(). using plain splx()
here will reenable interrupts as a side effect, and we don't want it here.

It could cause some event handlers to run twice (which should be harmless),
and trap() to be called on the wrong LWP in doreti_checkast (which can
probably cause some damage).
2008-03-13 22:04:57 +00:00
skrll 06c967f126 Modernise NetBSD/alpha gdb - taken from gdb-current.
Add support for siginfo trampolines as well as sigcontext.
2008-03-13 18:18:15 +00:00
drochner 86d10efebd if "ddb_vgapost" is called but its data structures were not initialized,
print a message, suggested by joerg
(the message might be invisible if the console is in X mode)
2008-03-13 17:40:24 +00:00
taca 3a86ada98a Reflect change of PMF_FN_ARGS. 2008-03-13 16:29:48 +00:00
christos 749de7f2a4 Since _file is a short, check that the fd fits in it, otherwise bail with
EMFILE. We treat _file as an unsigned short to double our range, with a
special case for -1 (closed). Make a note of what we should do about stdio
if we ever bump libc. We could change _file in the future compatibly to an
int by putting it in the extension space but for now we don't bother.
2008-03-13 15:40:00 +00:00
pooka 546bf50253 Cache referenced rootvp in struct ukfs. Makes it possible to run
pre/postcall wrapper around the exported namei, since postcall no
longer needs to execute VFS_ROOT (which is a bad thing to do while
potentially holding on to a locked vnode, mmkay).
2008-03-13 14:24:30 +00:00
wiz 08186da791 Fix download-vulnerability-list's -c option. From Jim Bernard in PR 38231. 2008-03-13 08:38:24 +00:00
bjs c5051ae798 Don't include i810 hack if DRM_NO_AGP is defined, as it results in
an undefined symbol (agp_i810_borrow) at kernel link time.
2008-03-13 05:35:43 +00:00
drochner 3678498d59 -add a function to vga_post which can be called from DDB to get a
usable VGA console ("call ddb_vgapost")
-allow to switch from/to screens occupied by an X server if the graphics
 device is console and in polling mode (ie DDB)
This together allows to get a DDB session on a VGA console if the
system crashed while X11 was running.
As long as the protocol to tell X servers about virtual screen switches
is as primitive as it is, it is unsafe to restart an X session afterwards.
So this is basically for crash analysis.
2008-03-12 23:26:18 +00:00
pooka e8401439ac Implement all ukfs interfaces (except getdents, that's a bit more
tricky) with the help of rump system calls instead of calling namei
by themselves.  Trust me when I say it was non-trivial to get the
namei calls right.
2008-03-12 21:37:15 +00:00
dyoung edb53ad207 Use device_t and accessors. 2008-03-12 18:26:58 +00:00
dyoung 84f6ead420 Make some cosmetic changes:
Use fewer 'error = ...; break;' statements and more 'return
        ...;'

        Make the SIOCSIFFLAGS case more clear by using a switch
        statement instead of an if-else if-else chain.

        Shorten a staircase, and remove two unnecessary curly
        braces.
2008-03-12 18:22:24 +00:00
dyoung 0f6e74fc64 epic_stop: clear IFF_RUNNING before disabling. 2008-03-12 18:15:31 +00:00