Commit Graph

166227 Commits

Author SHA1 Message Date
xtraeme 85adc21249 Some indentation for a few printfs that weren't respecting 80 chars
per line.
2008-01-25 18:56:55 +00:00
joerg ce67bf568b Fix dependencies on assym.h. 2008-01-25 18:54:26 +00:00
joerg 218115037a Simplify the calibration code a great bit by just waiting around 100ms
polling the i8254 as reference and counting the cycles with that.
Disable interrupts. This should be relatively stable even in the light
of SMIs as long as they happen in the middle of the loop. This fixes
long delays during boot.

If greater precision for the calibration is desired, a second run should
be done at a different time when the HPET or ACPI timer is present. Both
provide much faster access (less jitter) and a higher frequency.
2008-01-25 18:50:22 +00:00
ad e0f8c5ca59 vrelel: remove a bogus KASSERT. 2008-01-25 16:59:31 +00:00
hannken 5ab6217754 Spec_open(): clear sd_bdevvp if bdev_open() failed.
Ok: Andrew Doran <ad@netbsd.org>
2008-01-25 16:21:04 +00:00
riz 960857eb6d Since VOP_LEASE is gone, remove genfs_lease_check() too. Now my kernel
builds again.  :)
2008-01-25 15:34:59 +00:00
ad 38076b60ea vn_setrecurse: if no lock is exported, use v_lock. Works around issue
described in PR kern/37808. The ideal solution here is to kill vnode
lock recursion, which should not be hard once it is understood what
the two remaining callers of vn_setrecurse() are doing.
2008-01-25 14:37:33 +00:00
ad dd1ca367a6 4.99.50 - goodbye VOP_LEASE 2008-01-25 14:33:08 +00:00
ad dcc13a2839 Regen. 2008-01-25 14:32:46 +00:00
ad 1997a1e1f4 Remove VOP_LEASE. Discussed on tech-kern. 2008-01-25 14:32:11 +00:00
ad 2c1cdef339 Ignore clean vnodes in a couple more places. 2008-01-25 14:16:41 +00:00
he 0d14187892 I'm guessing that there should be no space between the hyphen and
the second word in "hand-lettered".
2008-01-25 13:40:56 +00:00
ad 0eb1c668c6 Regen. 2008-01-25 13:39:24 +00:00
ad baa4a2209f Mark the extattr syscalls MPSAFE. 2008-01-25 13:38:57 +00:00
ad 51d8643120 - Fix a couple of locking botches.
- Remove calls to VOP_LEASE().
2008-01-25 13:31:22 +00:00
skrll f6f787741b ANSIfy a couple of funcs. 2008-01-25 12:48:05 +00:00
skrll 572591cbe8 Update some comments. 2008-01-25 12:35:48 +00:00
skrll ebb5deb738 Define PT_MACHDEP_STRINGS 2008-01-25 11:59:20 +00:00
pooka 1bff00ecec Destroy extattr lock when destroying extattrs associated with the
mountpoint.  Make stopping extattrs always succesful to facilitate
always being able to free resources.
2008-01-25 10:49:32 +00:00
pooka 04177824be spec_node_init() mfs device vnode.
fixes PR kern/37867 by Steve Woodford
2008-01-25 10:30:20 +00:00
dogcow c529b62639 fallout from v_specinfo removal 2008-01-25 08:47:44 +00:00
tls 9675caff5e Some minor opencrypto fixes, one with a major performance impact for
OpenSSL:

1) Fix extremely misleading text in crypto.4 manual page so it does not
   appear to claim that a new cloned file descriptor is required for every
   session.

2) Fix severe performance problem (and fd leak!) in openssl cryptodev
   engine resulting from misunderstanding probably caused by said manual
   page text.

3) Check for session-ID wraparound in kernel cryptodev provider.  Also,
   start allocating sessions at 1, not 0 -- this will be necessary when
   we add ioctls for the creation of multiple sessions at once, so we
   can tell which if any creations failed.
2008-01-25 07:09:56 +00:00
pooka b7b052548e Nuke local copy of getcwd_common(), we compile in the real thing now. 2008-01-25 06:43:30 +00:00
pooka 22b1964406 Include vfs_getcwd.c too. It isn't used currently, but it's linked. 2008-01-25 06:42:29 +00:00
pooka 625cda7eb5 vn_write: include f_advice in VOP_WRITE 2008-01-25 06:32:20 +00:00
rafal 2e86943de9 Make this compile after Andrew's fix (remove now-unused variables) 2008-01-25 02:12:10 +00:00
jmcneill 89ea9cce51 Note uhub(4) attachment speed enhancement. 2008-01-25 01:10:39 +00:00
ad bba572530b pthread_mutex_lock_slow: remove "deliberate deadlock" code that's not
needed with 1:1. PR lib/37524.
2008-01-25 01:09:18 +00:00
jmcneill a06bac7d44 Speed up uhub attachment considerably. Rather than powering up each port
individually then waiting for it to become stable, power them up all
at once and then delay. Don't even bother delaying if we are a root hub,
as this is handled separately in the event thread. From OpenBSD.
2008-01-25 00:29:12 +00:00
xtraeme 4ecda2ed63 Fixed two warnings:
- Missing .El directive.
	- Fix .Bl width argument.

Not being wizd yet, but I try...
2008-01-25 00:05:35 +00:00
christos 2d1f1d1dae PR/37862: Wolfgang Stukenbrock: ypwhich uses only UDP and not TCP 2008-01-24 23:56:55 +00:00
ad f75e36826b Document returning parameter. Fixes PR misc/37612. 2008-01-24 23:06:10 +00:00
ad 927229e57b quotaoff: ignore clean vnodes. Fixes PR kern/37818. 2008-01-24 22:55:21 +00:00
pooka 2b1b5d29b8 Use namei() etc. from kernel sources instead of a reimplementation.
To accommodate, give the rootvnode its own vnode op vector with a
simple lookup operation.  This is used for looking up the file
system's device vnode instead of doing that directly in a homesmoked
namei().
2008-01-24 22:41:07 +00:00
jmcneill f1caab8ba5 In ioapic_reenable, don't try to remap the apic id if it is already correct. 2008-01-24 22:20:58 +00:00
ad f9a31c8cd0 spec_fsync: don't assert that 'vp' holds the block device open. If it's
not open, there shouldn't be dirty buffers so vinvalbuf() is harmless.
2008-01-24 21:05:52 +00:00
ad 6da461f692 Fix broken assertion. 2008-01-24 21:04:12 +00:00
garbled 9e09960721 Now that we have support in ofwboot to correctly guess the right kernel,
produce a CD that works on both the 7044 and the pegasos.
2008-01-24 20:08:39 +00:00
pooka daadf5acef Make work again by repairing spec_node_init() and not being afraid
to use it.
2008-01-24 20:06:46 +00:00
garbled 2849d0b8df Add padding to align the rodata section. This fixes a strange bug
where the bootloader would freak out if various printfs were enabled or
disabled.

Add code to autodetect a 64bit cpu, and attempt to load a different set
of kernels if they exist.

Bump version to 1.9
2008-01-24 19:52:53 +00:00
rmind 75f3a93931 Add schedctl(8) manual page.
/etc/rc.d/wizd start
2008-01-24 19:34:05 +00:00
ad 7b081426cb Destroy mutex when detaching. PR kern/37819. 2008-01-24 18:50:15 +00:00
ad d9231f613d Fix 'panic: dangling vnode'. 2008-01-24 18:31:52 +00:00
joerg c0e2333a0f Add regression test and benchmark for the upcoming cpu_in_cksum.
This is inspired by an older test case written by Charles Hannum.
cvs: ----------------------------------------------------------------------
2008-01-24 18:12:29 +00:00
ad 1de89e3a92 vclean: fix inverted test. 2008-01-24 17:57:14 +00:00
ad 703069c0e9 specfs changes for PR kern/37717 (raidclose() is no longer called on
shutdown). There are still problems with device access and a PR will be
filed.

- Kill checkalias(). Allow multiple vnodes to reference a single device.

- Don't play dangerous tricks with block vnodes to ensure that only one
  vnode can describe a block device. Instead, prohibit concurrent opens of
  block devices. As a bonus remove the unreliable code that prevents
  multiple file system mounts on the same device. It's no longer needed.

- Track opens by vnode and by device. Issue cdev_close() when the last open
  goes away, instead of abusing vnode::v_usecount to tell if the device is
  open.
2008-01-24 17:32:52 +00:00
hannken 0409981d90 si_mount_dtor(): destroy si_vnlock before free. 2008-01-24 17:29:56 +00:00
hannken ca2bbf9908 Fix a typo from the vmlocking2 merge: vmark() the right vnode. 2008-01-24 16:26:44 +00:00
ad ac0f434359 Make sparse dumps the default. 2008-01-24 15:31:23 +00:00
tnn 340f654f47 While here, also add HBA 2008-01-24 15:04:24 +00:00