Commit Graph

163093 Commits

Author SHA1 Message Date
ad 4f48f4962d Define ipl_cookie_t, ipl_t. 2007-11-07 00:20:22 +00:00
ad efe07d555b Use the softint_* API. 2007-11-07 00:19:54 +00:00
ad c3f5a622f9 Merge from vmlocking. 2007-11-07 00:19:08 +00:00
martin ed3f875e0a gcc constant folding at compile time works around the real points of these
tests - so enforce -O0.
2007-11-07 00:08:50 +00:00
martin b7145352b8 Add another cast variant that might (and currently does) fail - pointed
out by Holger Weiss on port-sparc64.
2007-11-07 00:03:09 +00:00
dyoung 6c2f73d13c Delete dead code that I accidentally introduced before. Thanks
Arnaud Lacombe for pointing out to me Coverity CID 4562.
2007-11-06 23:50:41 +00:00
dyoung b47fb23dd2 Use sockaddr_in6_init(). 2007-11-06 23:48:24 +00:00
dyoung 2bc0ce1e9b Take a clue from udp_usrreq(): block IPL_SOFTNET in udp6_usrreq(),
both while we purge an interface, and while we call udp6_output().

XXX udp6_usrreq() needs more attention.
2007-11-06 23:47:08 +00:00
dyoung cfeb7f085e Use sockaddr_in6_init(). 2007-11-06 23:40:38 +00:00
ad 1569e06e16 Install callback.h for kmem grovellers. 2007-11-06 23:39:25 +00:00
christos b3b90d7485 Revert previous. This mess of ifdefs needs to be killed. 2007-11-06 22:08:51 +00:00
ad b7235be3f9 Regen. 2007-11-06 22:00:00 +00:00
ad abf0cf7ccd Merge from vmlocking. 2007-11-06 21:59:43 +00:00
ad afc64ea58c Use the softint_* API. 2007-11-06 21:51:07 +00:00
plunky bbbbeb6a46 use stderr for printing usage messages 2007-11-06 21:35:52 +00:00
plunky 26a4d1cf14 sort & remove unnecessary include files 2007-11-06 21:35:36 +00:00
ad dc73f9929a Merge from vmlocking. 2007-11-06 19:50:55 +00:00
martin 6c62888809 Compile a special version of the default locale into libhack - we can
not use real locales, but this at least allows single byte character
locales to work as expected (i.e. the existing translations for sysinst).
Once we get a sysinst translation that needs more, we'll have to drop this
and the castrated setlocale(), and go for a real solution.
2007-11-06 19:27:07 +00:00
martin c607cb216f Mark the characters between 0x80 and 0xff as 1 cell wide, if compiled
with ALL_80_TO_FF_SW1 defined. This is not correct in the general case,
but helps in certain restricted environments where nothing but the
default locale is available and we know what we do(tm).
2007-11-06 19:24:19 +00:00
garbled 8c63679baf Add a bunch of devices to GENERIC. Fix interrupts on the PegasosII with
a nasty little hack.  Getting closer to a working system.
2007-11-06 19:22:59 +00:00
christos 1af253e4c7 remove featuretest.h and NETBSD_SOURCE conditional ifdefs. This is not
a standard header and does not have namespace issues.
2007-11-06 19:21:18 +00:00
ad 57b6b02535 Merge from vmlocking. 2007-11-06 19:13:49 +00:00
christos 9df03145fa move the test to replace getopt higher up, before we need to include anything. 2007-11-06 19:13:16 +00:00
ad 3b271ff768 Merge from vmlocking. 2007-11-06 18:02:43 +00:00
ad f3e0393b0e Back out chaff that should not have been merged. Spotted by rmind@. 2007-11-06 17:59:02 +00:00
ad d5622dbb85 Fix merge error. Spotted by rmind@. 2007-11-06 17:57:46 +00:00
kiyohara 3caf19136d Sync to FreeBSD.
Add fwmethods.h fwmpegts.c
  fwcontrol.c Rev.1.23
  fwctl.8 Rev.1.21
  fwdv.c Rev.1.7
Support MPEG2-TS/HDV.  But not tested.
2007-11-06 17:02:15 +00:00
agc d880ffcdf0 In READ_CAPACITY, send back the size of the LUN, not the maximum LBA,
which is zero-based.

Problem reported by, and fix verified by, Greg Oster. Thanks, Greg!
2007-11-06 15:59:10 +00:00
pooka 773d31b14b yank out extra debug printf 2007-11-06 15:25:40 +00:00
kiyohara 2575726a88 The argument of *_intr_establish() is changed to fwohci_flit.
Our ieee1394 coordinates from FreeBSD implementation.
Add fwohci_pci_shutdown() and fwohci_pci_power().
Move __KERNEL_RCSID to ahead.
2007-11-06 15:24:10 +00:00
pooka a02fe51bef Open the kernel descriptor as part of mount(), not init(). Then
it doesn't matter if someone fork()s or does other tricks between
init() and mount() (and besides, now it's where it logically should be).
2007-11-06 15:09:07 +00:00
pooka 210515ea9c Fix locking issues with the anonymous pager too so that tmpfs can work. 2007-11-06 12:57:50 +00:00
dogcow 99f2863e95 on NetBSD, cardbus_intr_establish's fifth arg's is a symbol which returns
an int, not a void; change fwohci_intr accordingly.
2007-11-06 12:32:12 +00:00
dogcow 55d73ac843 callout_init has two args. 2007-11-06 12:30:42 +00:00
pooka 7331777bf0 default to rootnode mode 0777 2007-11-06 12:26:12 +00:00
pooka 78821d0076 initialize vnode interlock when creating one 2007-11-06 12:14:37 +00:00
mjf c05cd035e3 Fix typo 2007-11-06 11:41:35 +00:00
itohy 6d75b40284 - Reset the bus if a Bus Reset condition is detected to make sure
all devices on the bus are really reset.

- Block interrupts on Bus Reset, and check it periodically until the
  reset is released.  On some 32UDE devices (probably the earlier ones)
  the RST line looks unstable without the termination power and may
  suffer ~continuous Bus Reset interrupts.

- Change number of scatter/gather segments from 16 to 17, to allow
  non-page-aligned 64KB transfer on 4KB/page platforms.
2007-11-06 11:35:35 +00:00
pooka 895e09b8c5 Sprinkle some more locking, especially to the vm. Due to some
additional fixes, it's now possible to run file systems with
spinlocks actually enabled.  The genfs_putpages() locking is still
working only due to greater powers, but I'll eventually get around to
fixing it.
2007-11-06 11:35:04 +00:00
pooka ef11b00de6 Update to new puffs_mainloop() signature. Forgot to do this yesterday.
noticed by Kurt Schreiner on current-users
2007-11-06 10:57:35 +00:00
martin 4babfd8202 size_t != unsigned int - so don't pass the address of the former when a
pointer to the latter is expected.
2007-11-06 10:48:39 +00:00
martin 309213c31a Do not use %d for size_t 2007-11-06 10:44:23 +00:00
uwe 0ecea51f05 Misc cleanup: use device_* and aprint_*, group declarations, g/c some
dead code, etc.
2007-11-06 05:01:26 +00:00
uwe 84e75de6c1 Get rid of local product table, instead just match id register and
pci_devinfo().  While here, convert to device_t, aprint_*.
2007-11-06 03:23:15 +00:00
simonb 3e1f18ae93 Fix unused variable warning for the non-FPU/altivec case. 2007-11-06 02:52:53 +00:00
christos ad18d2e41e 3 month roland feedback timeout:
- Pass lint
- knf
- convert ints to size_t's
2007-11-06 02:50:48 +00:00
uwe 8531d31a58 Use device_t and device_private(). Convert attach to use aprint_*. 2007-11-06 02:29:19 +00:00
ad 8fd9a85c2a Catch up with scheduling changes in the kernel. 2007-11-06 01:46:08 +00:00
uwe 58197290f3 Use aprint_* 2007-11-06 01:46:02 +00:00
jnemeth a1cf0b5a18 note support for Intel G965 chipset 2007-11-06 01:45:08 +00:00