summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2008-02-15revert to a pre-mutex state. for unknown reasons, the mutexes do not provideTed Unangst
sufficient exclusion on alpha, leading to self-locking panics.
2008-02-13Make sure we reserve enough stack space on MACHINE_STACK_GROWS_UP architecturesMark Kettenis
by aligning the stack gap. Fixes gettext port build (and probably many others). ok miod@, tedu@, tested by sthen@
2008-02-09Introduce HW_PHYSMEM64 and HW_USERMEM64 sysctls, which don't overflow onMark Kettenis
machines with more than 4GB of memory. Make sysctl(8) print values obtained using these sysctls for hw.physmem and hw.usermem. ok krw@, miod@
2008-01-28spelling in comment; ok mbalmer@ jmc@Kevin Steves
2008-01-22Fix a double VOP_UNLOCK() that was introduced into the error pathTodd C. Miller
in rev 1.141. From Christian Ehrhardt and Pedro Martelletto. OK hshoexer@ miod@
2008-01-20Revert 1.25 and do not use _Q_INVALIDATE on timeout structures; beingMiod Vallat
subtly different from CIRCLEQ, it is possible, when emptying the whole timeout chain, to end up with CIRCQ_EMPTY being false, and bad things happen. Back to the drawing board...
2008-01-16Dont use PR_LIMITFAIL with PR_WAITOK when M_WAIT is passed withThordur I. Bjornsson
the flag argument to the m_*get* functions. Since PR_LIMITFAIL can cause us to return NULL if hit the limits. ok claudio@
2008-01-06Degrade the sensor state from OK to WARNING and CRITICAL after periods ofMarc Balmer
ten minutes (same behaviour as nmea(4)). If the cable is pulled, the sensor no longer keeps the OK status forever. Tested with a PEX511 as MSTS sender.
2008-01-05Add support for the Meinberg Standard Time String format that all MeinbergMarc Balmer
radio clocks can transmit over serial ports. This is implemented as a line discipline similar to nmea(4) and provides a timedelta sensor. See http://www.meinberg.de/english/specs/timestr.htm for details on the MSTS format. ldattach(8) is extended to support the "msts" line discipline and two stopbits (which some radio clocks, e.g. the C51 use). Do a "make includes" before your next system build. Initially from Maurice Janssen based on nmea(4). "go for it" deraadt
2008-01-05regenMiod Vallat
2008-01-05Mark vadvise(2) as obsolete and remove its implementation, so instead ofMiod Vallat
returning EINVAL, you'll get ENOSYS. No serious code has used this system call in at least fifteen years. The libc stub will be removed at the next major crank time. ok henning@ deraadt@ krw@ toby@
2008-01-02Do not lose nanosleep() return value in the last copyout if nonzero; PR#5697Miod Vallat
2008-01-01Welcome to the jungle of 2008.Miod Vallat
2007-12-30Remove unused variable consintr. ok mbalmerAlexander Bluhm
2007-12-27allow for max 5000 uses/sec offset adjust, this makes it possible forOtto Moerbeek
clocks with drifts larger than 500ppm to be corrected.
2007-12-27fifofs, deadfs and specfs all have the same "trivial lookup routine thatThordur I. Bjornsson
always fails". Introduce vop_generic_lookup(), which is a trivial lookup routine that always fails and use that instead, zap the redundant copies. ok toby@, tedu@, art@
2007-12-23protect the disk statistics with a mutex.David Gwynne
ok tedu@ kettenis@
2007-12-20Remove an obsolete nfs kludge, spotted by Frank Denis (many thanks), also ↵Charles Longeau
there in NetBSD and FreeBSD trees. Tested by thib@ who found that it shaved 18min wall clock time of coping a 20G file. Been in snaps for some time "looks ok" markus@ "makes sense" blambert@ ok claudio@ thib@
2007-12-16panic on negative blkno or size; ok kettenis@ deraadt@Otto Moerbeek
2007-12-13replace calls to ltsleep with tsleepBret Lambert
remove PNORELOCK flag, as PNORELOCK is used for msleep ok art@ thib@
2007-12-13use a mutex to protect workq. incidentally, this removes the additionalTed Unangst
creation of threads which may have caused multile syswq threads to start. ok dlg
2007-12-12regenThordur I. Bjornsson
2007-12-12Garbage collect a few members of the vnodeop_desc structure,Thordur I. Bjornsson
they where used to keep "offsets" of arguments too the VOP's for use by bypass routines, these have been unused now for quite some time; Tested on sparc64/amd64 (shaves about 1k of GENERIC). ok beck@
2007-12-11Don't store arguments and environment in the space reserved for stackgap onMark Kettenis
machines where the stack grows up. Fixes systrace(1) on hppa. ok deraadt@
2007-12-11remove an overlooked simple_lock everybody likes to point out to me.Ted Unangst
2007-12-11release the pool mutex if we may sleep in the backendTed Unangst
2007-12-09big patch to simplify pool code.Ted Unangst
remove pool_cache code. it was barely used, and quite complex. it's silly to have both a "fast" and "faster" allocation interface. provide a ctor/dtor interface, and convert the few cache users to use it. no caching at this time. use mutexes to protect pools. they should be initialized with pool_setipl if the pool may be used in an interrupt context, without existing spl protection. ok art deraadt thib
2007-11-30Fix msleep.Owain Ainsworth
Since mutexes mess around with spl levels, and the sched-lock isn't a mutex, we need to make sure to fix the IPL when msleep does the locking. ok art.
2007-11-28Add msleep. This is identical to tsleep but it takes a mutex as aOwain Ainsworth
parameter. The mutex is unlocked just before sleep and relocked after unless P_NORELOCK is in flags, in which case it is left unlocked. ok art@.
2007-11-28g/c mfs_mountroot() and mfs_initminiroot(). We don't support root onTodd C. Miller
mfs. OK deraadt@
2007-11-28a few more places where getmicrotime is good enough. ok miodTed Unangst
2007-11-28When updating the timestamps on pipes, use getnanotime() instead of moreMiod Vallat
accurate but more expensive nanotime(), the loss of precision shouldn't matter. Inspired from the other *BSD which did a similar change. ok tedu@ millert@ henning@ deraadt@
2007-11-28remove the DIRECTOK flag. the caller semantics were too weird, and it's aTed Unangst
bad idea to have functions that react unpredictably.
2007-11-28syncTheo de Raadt
2007-11-28COMPAT_09 uname is only used by freebsd compat, so move it to the right placeTheo de Raadt
2007-11-27regenArtur Grabowski
2007-11-27Mark getpid as NOLOCK just for testing.Artur Grabowski
2007-11-27Add possibility to add flags to syscalls in syscalls.master to markArtur Grabowski
syscalls as NOLOCK and MPSAFE. The flags have slightly different semantics: NOLOCK - the syscall doesn't grab any locks whatsoever. MPSAFE - the syscall deals with its own locking. What this means in practice is that NOLOCK syscalls can always be done without the biglock. The MPSAFE syscalls can be done without the biglock on CPUs that don't handle interrupts that require biglock (to preserve lock ordering). deraadt@ ok
2007-11-27make the deceptively complicated leading and trailing space into functions.Ted Unangst
this reduces kernel size quite a bit. ok claudio
2007-11-27typos; ok jmc@Martynas Venckus
sys/dev/pci/pciide.c from naddy@
2007-11-27Only checksum the NMEA sentence if it as GPRMC message.Marc Balmer
suggested by otto.
2007-11-26Degrade the timedelta if the GPS reports a warning condition for more thanMarc Balmer
ten minutes (or if a serial GPS is disconnect and we get no NMEA sentences at all). ok otto
2007-11-26Move the implementation of __mp_lock (biglock) into machine dependentArtur Grabowski
code. At this moment all architectures get the copy of the old code except i386 which gets a new shiny implementation that doesn't spin at splhigh (doh!) and doesn't try to grab the biglock when releasing the biglock (double doh!). Shaves 10% of system time during kernel compile and might solve a few bugs as a bonus. Other architectures coming shortly. miod@ deraadt@ ok
2007-11-26Remove some dead code that is confusing my greps.Artur Grabowski
2007-11-25convert crypto thread to workq. add WQ_DIRECTOK flag to workq.Ted Unangst
combined, this lets us use crypto before the thread is running and therefore cryptoraid can attach nice and early. ok/testing deraadt mbalmer marco
2007-11-23Since the devices that we detach may have children we cannot rely on theMark Kettenis
"previous" device still being there, so if we detach a device, we really have to start from scratch again (like the comment on this code actually says we should). Simplifies the code as a bonus. ok dlg@, deraadt@
2007-11-19Don't overwrite a core file owned by a different user. Makes the codeTodd C. Miller
match the comment. OK deraadt@
2007-11-16er, the newline is wrong. dissapointing.Theo de Raadt
2007-11-15newline before syncing disks is way prettierTheo de Raadt
2007-11-09Make disklabel aware of NTFS.Joel Sing
ok miod@ krw@