Commit Graph

101773 Commits

Author SHA1 Message Date
pooka
5e1c61c660 Don't build spcopy for rumpkern. Fixes hp700 build failure pointed
out by nick.

XXX: spcopy should be in the main kernel instead of libkern in any case
2009-09-22 09:57:16 +00:00
isaki
1eadd1cdd0 Fix $NetBSD$ tag. 2009-09-22 01:29:36 +00:00
bouyer
bd2f090e7c Allow a xbd to be detached from the domU (e.g. at shutdown). Patch tested
and adjusted by David Young, discussed on port-xen@ early august.
2009-09-21 21:59:30 +00:00
jakllsch
81f8a1dcf0 Add more-complete definitions of ICH GPIO-related registers.
While here, fix a typo in a register number.
2009-09-21 16:18:31 +00:00
pooka
79b1421a0b <sys/stdint.h> is a non-standard header, so include it only from
kernel code (where it will be included from the NetBSD kernel source
tree).  Use <stdint.h> in userland namespace, i.e. when compiling
librumpuser.
2009-09-21 15:29:36 +00:00
njoly
3ca0c64cb2 Do not call smb_rqpool_fini() on device close. Otherwise, we'll crash
trying to use destroyed pools for SMB request.
2009-09-21 14:13:35 +00:00
macallan
b81d1cca71 set is_console even if we don't have any fb_info so other console drivers
than genfb have a chance of working.
Tested with radeonfb which works fine with an RV280
TODO: figure out how to deal with more than one PCI_CLASS_DISPLAY device in
      a halfway sane manner
2009-09-21 13:23:43 +00:00
pooka
9b040bc3a9 Split config_init() into config_init() and config_init_mi() to help
platforms which want to call config_init() very early in the boot.
2009-09-21 12:14:46 +00:00
tsutsui
c8a52f80ba Split device_t/softc. Tested on AHA-1542CF. 2009-09-21 08:12:47 +00:00
pooka
eeb94c804f attach mainbus 2009-09-20 23:16:09 +00:00
pooka
dfd2ba19ba default to AB_SILENT 2009-09-20 23:02:31 +00:00
tsutsui
102f04400c - use device_t and cfdriver_t
- use device_private() and device_xname()
- use proper types or variables for device_t/softc
2009-09-20 16:18:21 +00:00
bouyer
7de71fb523 PR kern/41147: race between nfsd and local rm
Note that the race also exists between 2 nfs client, one of them doing the rm.
In ufs_ihashget(), vget() can return a vnode that has been vclean'ed because
vget() can sleep. After vget returns, check that vp is still connected with
ip, and that ip still points to the inode we want. This fix the NULL
pointer dereference in ufs_fhtovp() I've been seeing on a NFS server.

XXX I have no idea why using vput() instead of
vlockmgr(vp->v_vnlock, LK_RELEASE); vrele(vp); does not work.
2009-09-20 14:00:24 +00:00
taca
5a6dad0a4b Trying to fix build problem. Thanks to joerg's advise. 2009-09-20 10:29:30 +00:00
tsutsui
6e067fe997 u_intNN_t -> uintNN_t 2009-09-20 08:24:04 +00:00
christos
68b7139cf2 add toshide 2009-09-20 01:14:31 +00:00
christos
8e1339391c Regen 2009-09-20 01:12:49 +00:00
christos
565f31617c remove dup decl. 2009-09-20 01:12:30 +00:00
christos
81b7fefb3a PR/42100: Dave J. Barnes: Support for old toshiba PICCOLO IDE controllers. 2009-09-20 01:09:24 +00:00
pooka
f374fa4887 Parameter name in prototype, begone ye scurvy seadog! 2009-09-19 16:34:07 +00:00
jmcneill
ae17b8bef2 If vfs_mountroot fails, print a list of supported file systems. If no
file systems are supported by the kernel, print a big fat warning instead.
2009-09-19 16:20:41 +00:00
pooka
64d32972db arrr, implement softint_disestablish(). this code be needin' an enema, matey. 2009-09-19 14:18:01 +00:00
christos
c0bc5ed834 backout the changes that establish a workqueue to synchronize the addresses
for arg and gre because they cause a race condition by calling ioctl() during
interface initialization. To make this work correctly we would need to
synchronize all interface init routines.
2009-09-19 13:11:02 +00:00
tsutsui
579b9cbd30 u_intNN_t -> uintNN_t 2009-09-19 11:53:42 +00:00
pooka
8f328cc813 Set SAVENAME for rmdir and remove.
Addresses an easy part of PR kern/38188
2009-09-19 11:44:19 +00:00
skrll
2c50cb71cb Initialise index_gen_mtx before use. 2009-09-19 11:02:07 +00:00
tsutsui
fd194ac3e5 Include "ioconf.h" instead of extern struct cfdriver foo_cd decls. 2009-09-19 07:07:42 +00:00
tsutsui
13855cad09 Use common ether_crc32_le() for multicast hash. 2009-09-19 04:55:45 +00:00
tsutsui
a616b75df3 Split device_t/softc.
Tested on TME emulating SS2.

XXX: bwtwo at obmem on TME emulating sun2 didn't match and cannot test
2009-09-19 04:52:44 +00:00
tsutsui
6d160c7919 Split device_t/softc.
Tested on:
---
qec0 at sbus0 slot 3 offset 0x20000: 128K memory
be0 at qec0 slot 0 offset 0x0 level 4 (ipl 7): rev 1, address 00:80:17:xx:xx:xx
2009-09-19 04:48:18 +00:00
tsutsui
1f6e50b57e Make bwtwo(4) match prior to genfb(4).
Required by bwtwo(4) on TME emulating SS2.
2009-09-19 03:49:22 +00:00
mhitch
298c91975c Explicitly include sys/exec_aout.h. 2009-09-18 21:40:09 +00:00
pooka
159d9b46b8 vax macro magic requires Sysmap (untested).
XXX: I should add the blanket userspace pmap back for vax, its
pmap.h just has too many inlines and macros for this to ever work.
2009-09-18 18:31:53 +00:00
tsutsui
853e246fe1 Split device_t/softc. Tested on SS1+.
XXX: sparc/dev/cgthree.c in Attic had an attachment for cgthree* at obio?
XXX: and sparc/conf/files.sparc still has an entry of nonexistent (or not yet)
XXX: sparc/dev/cgthree_obio.c. Is there any sun4m machine which requires it?
2009-09-18 16:43:19 +00:00
dyoung
a29a5a7659 Belated version bump for pmf(9) changes. 2009-09-18 15:07:10 +00:00
tsutsui
6dce7b7053 Use the common ether_crc32_le() function for multicast hash. 2009-09-18 14:40:49 +00:00
tsutsui
df6a834f16 Misc KNF. 2009-09-18 14:35:11 +00:00
tsutsui
51d56bbc55 Make local functions static. 2009-09-18 14:14:06 +00:00
tsutsui
01a44458f7 Use uint8_t pointers for TX/RX buffers to avoid extra pointer casts. 2009-09-18 14:09:42 +00:00
tsutsui
d7e3eba588 Adjust attach messages. 2009-09-18 14:00:44 +00:00
tsutsui
d01ef0d1d1 Split device_t/softc. 2009-09-18 13:48:54 +00:00
tsutsui
0ab05b4a42 Make be(4) is properly initialized at the first ifconfig(8) command:
- make beinit() and bestop() match struct ifnet
- if ether_ioctl() returns ENETRESET always call init function
2009-09-18 13:45:20 +00:00
tsutsui
c349dcd7cd - wrap a long line
- ANSIfy
2009-09-18 12:59:47 +00:00
tsutsui
eb06ddcd95 hme_reset() is no longer called from bus attachments so make it static. 2009-09-18 12:40:15 +00:00
tsutsui
f3504c80ad - use device_private(), proper types and variables for device_t/softc
- remove unnecessary casts against void pointer

XXX: many inconsistent use of aprint_*(9) and printf(9)
2009-09-18 12:23:16 +00:00
jnemeth
7220a79813 Not all platforms can do PaX stuff. The list was derived in private
conversation with several developers.  The change was tested on
sparc64.

NetBSD ultra.example.ca 5.99.17 NetBSD 5.99.17 (MODULAR) #0: Tue Sep 15 19:08:02 PDT 2009  jnemeth@ultra.example.ca:/usr/local/current/objdir/sys/arch/sparc64/compile/MODULAR sparc64

NAME		CLASS	SOURCE	REFS	SIZE	REQUIRES
...
exec_elf64      misc	filesys	0	6981	coredump
...
2009-09-17 23:07:12 +00:00
dyoung
5cc26b1024 As Jonathan Kollasch points out, elansc_attach() does not actually
use gba after filling it out.  Delete it.
2009-09-17 20:21:54 +00:00
apb
bfe9cb2130 Change a few hda_error to hda_debug. Fixes "WARNING: 4 errors while
detecting hardware; check system log." when I boot.
OK jmcneill.
2009-09-17 18:48:47 +00:00
tsutsui
5dcfc285a0 Misc KNF and cosmetics, and remove unnecessary casts etc. 2009-09-17 18:14:41 +00:00
tsutsui
48ffe7c901 Use proper types or variables for device_t and softc. 2009-09-17 18:09:51 +00:00