Commit Graph

163083 Commits

Author SHA1 Message Date
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
uwe
88c74cddaf Convert to aprint_* 2007-11-06 01:33:00 +00:00
uwe
8b4bf162e5 Use device_t and device_private(). Use aprint_* in attach. 2007-11-06 01:00:59 +00:00
uwe
2b2a00534e Add missing aprint_naive("\n"); in rlphyattach. 2007-11-06 00:58:32 +00:00
ad
bb6c89afbf Kill another use of PZERO. 2007-11-06 00:44:46 +00:00
ad
73a3bf6536 Don't bias priority by PZERO. 2007-11-06 00:43:25 +00:00
ad
d831186d55 Merge scheduler changes from the vmlocking branch. All discussed on
tech-kern:

- Invert priority space so that zero is the lowest priority. Rearrange
  number and type of priority levels into bands. Add new bands like
  'kernel real time'.
- Ignore the priority level passed to tsleep. Compute priority for
  sleep dynamically.
- For SCHED_4BSD, make priority adjustment per-LWP, not per-process.
2007-11-06 00:42:39 +00:00
uwe
5e48e66a0e Use device_t and device_private().
While here - make ops static.
2007-11-06 00:36:30 +00:00
ad
e1fb70b70d Fix decl of lbolt. 2007-11-06 00:25:48 +00:00
xtraeme
f4046a2e1c Missed a struct device -> device_t, found by joerg. 2007-11-05 23:57:32 +00:00
xtraeme
d61d03fbde Sync with NetBSD-4.0.xml 1.35, which fixes a typo in the sparc changes
section caught by pavel@.
2007-11-05 22:58:33 +00:00