summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2009-01-22The variable nfs_reqq was protected by splsoftnet() only in 3 outAlexander Bluhm
of 5 cases. In the functions nfs_reconnect() and nfs_reply() put the TAILQ_FOREACH over nfs_reqq also inside splsoftnet() protection. found with pedro@, ok blambert@, pedro@, thib@
2009-01-22Add support for Moxa CP-104JU, 4xrs232Jonathan Gray
from/tested by Joerg Niendorf in pr 6053.
2009-01-22regenJonathan Gray
2009-01-22Moxa CP-104JU another puc fromJonathan Gray
Joerg Niendorf in pr 6053.
2009-01-22Call checkdisklabel() for labels built from native info. This willKenneth R Westerback
ensure 'c' always has the correct size as the rest of the kernel assumes. Thus prevent dd'ing causing a SCSI out-of-bounds error. ok miod@
2009-01-21Replace timeout_add(msecs * hz / 1000) with timeout_add_msec(msecs).Alexander Yurchenko
No functional changes. ok krw@ miod@
2009-01-21Pass the new pointer to sysctl_clockrate(), so that trying to change theMiod Vallat
value of kern.clockrate with sysctl(3) correctly sets errno on failure. PR #6040, ok tedu@
2009-01-21It turns out that Sun USB keyboards really follow the HID specification forMiod Vallat
its country code, but I had forgotten one line in the layout table. This now picks the correct layout for swedish and british (uk) sun keyboards.
2009-01-21Extend the acceleration code to handle jfb (XVR-600, XVR-1200) models, theMiod Vallat
software only code is kept in case we can't reliably figure out what kind of device we are facing. Tested on XVR-1200 by Mattieu Baptiste, and on Expert3D-Lite by me.
2009-01-20add softraidTodd T. Fries
go ahead miod@
2009-01-20Let this compile on landisk (and other configs) by wrapping the nfsThordur I. Bjornsson
debug stuff inside #ifdef NFSCLIENT. prompted by todd, miod
2009-01-20Prevent unaligned access.Mark Kettenis
ok miod@, dlg@
2009-01-20I can't figure out why flushing all user windows before writing out windowsMark Kettenis
saved in the pcb to the stack fixes the problems with user space register window corruption I see on sun4v. So I give up and commit the workaround. It isn't too evil, since this isn't in the fast path and we're likely to spill these windows anyway in the process of writing out the register windows. Curiously enough, the OpenSolaris code seems to do pretty much the same.
2009-01-20Add workaround for broken ATI southbridges; inspired by how Linux handles this.Mark Kettenis
Fixes PR 5916 & 5959. ok toby@
2009-01-20Install ACPI S3 resume trampoline code in a lowmem page. First partMike Larkin
of ACPI S3 suspend/resume support. This is for i386. Help/comments from art, toby, marco, jordan, kurt ok marco@, kurt@
2009-01-20Variables were never used, never implemented.Ariane van der Steldt
Ok miod, toby
2009-01-20Change the ``buf'' parameter of sdla_{peek,poke}_by_4()Alexander Yurchenko
from void * to u_int_8 * to avoid redundant and illegal lvalue casts. No functional changes. ok krw@
2009-01-20Don't use (type *)var as an lvalue, it's incorrect. No functional changes.Alexander Yurchenko
ok jakemsr@ krw@
2009-01-20Start reworking NFS client mbuf handling by creating an interface whichBret Lambert
requires well-formed mbuf chains to work. Existing function name is now a wrapper to this interface. Much, much more work to follow which will build on this. Truly change we can believe in. ok thib@, who would have preferred this in two commits, but I'm impatient :) testing on multiple arches (i386, arm, amd64, and sparc64 at least) by many, thanks to all who did so
2009-01-20Add a few more inline functions to read priviliged registers.Mark Kettenis
2009-01-19Introduce a macro to invalidate the attributeThordur I. Bjornsson
cache instead of setting n_attrstamp to 0 directly. Lift the macro name from NetBSD. prompted by and OK blambert@
2009-01-19The acceleration code would not work on XVR-600 and XVR-1200, so if it turnsMiod Vallat
out it doesn't work, fall back to dumb software routines until we know better. Also, do not attach to the second head of the XVR-1200 yet, the second node lacks basic frame buffer properties. Tested by Mattieu Baptiste, thanks!
2009-01-19Clear RI_CLEARMARGINS in the ri_bits == NULL ifb(4) kluge, the new windowMiod Vallat
position code may set it.
2009-01-19Add support for Novatel Wireless Ovation U727.Jonathan Gray
Tested by Seth Hanford.
2009-01-19regenJonathan Gray
2009-01-19Novatel U727Jonathan Gray
2009-01-18Define HEAP_START so that we can use space below it for ethernet buffers;Miod Vallat
this prevents if_ie buffers from possibly overwriting the stack. Crank bootloader versions.
2009-01-18Recompute file pointer position when seeking backwards, as it gets reinitializedMiod Vallat
to zero otherwise; allows the tftp bootloader to work again after the switch to the MI loadfile code.
2009-01-18If open() failed because the file does not exist, a struct sd for this fileMiod Vallat
won't be allocated. Check for this in close() so as not to free() bogus pointers.
2009-01-18Remove unused members from struct nfsd.Bret Lambert
ok thib@
2009-01-18remove function which only called nfssvc_iod(), and pass nfssvc_iod()Bret Lambert
to kthread_create() ok thib@
2009-01-18Replace #ifndef DIAGNOSTIC with #ifdef to make the additional checksAlexander Bluhm
in diagnostic kernels. The typo comes from 4.4BSD-Lite2 via NetBSD. Found with pedro@, ok pedro@, blambert@, thib@
2009-01-18add $OpenBSD$ tagThordur I. Bjornsson
2009-01-18Perform the same access enforcements for set attributesThordur I. Bjornsson
as for open/read/write etc, that is assume that the file as already been opened proper, this fixes an ancient ftruncate bug, that is if ftruncate was called on a file with no write modes, we'd return EACCES, this breaks posixy behavior. however, for e.g. truncate() we'll return EACCESS as we should. Diff from PR5880 by mickey. I had forgotten about this PR, and the fix but niklas@ ran into similar issues which prompted another review of this. OK kettenis@
2009-01-18Add nfs ddb hooks, for now only to show all the outstanding nfsreq'sThordur I. Bjornsson
and to print out struct nfsreq. "get it in so people can pound on it" blambert@ OK and information_s_ on the manpage from miod@
2009-01-18Update copyright.Alexander Yurchenko
2009-01-18Put ccb back on free list if we bail out because we can't map theKenneth R Westerback
data buffer.
2009-01-18Don't lose ccb's if there are problems allocating the structures neededKenneth R Westerback
to issue a command.
2009-01-18enable atphy/ageKevin Lo
ok kettenis@
2009-01-17gdt_compact() was removed years ago, so kill the code and commentsPhilip Guenthe
that worked around its presence ok'ed by miod@
2009-01-17If the hypervisor call that fetches randomness returns EWOULDBLOCK,Mark Kettenis
reschedule the timeout again instead of complaining.
2009-01-17Clean things up a bit, and be a bit more fussy about the proper sequence inMark Kettenis
which we should receive messages from our peer.
2009-01-17Return NO_CCB if we run out of descriptors.Mark Kettenis
Suggested by krw@
2009-01-17Add support for DS1822 to owtemp(4).Alexander Yurchenko
2009-01-17Sync vio_sendmsg() with equivalent code in vdsk(4).Mark Kettenis
2009-01-17Enable vrng(4).Mark Kettenis
2009-01-17Make this work in guest domains.Mark Kettenis
2009-01-17Use proper assignment macros for dinode manipulations instead ofAlexander Yurchenko
abusing the DIP() macro which is an rvalue and can't be used as an lvalue. No functional changes. ok tedu@ pedro@
2009-01-17Recognize environmental change machine checks on ES40, and report whatMiod Vallat
happens instead of panicing; while there, start providing more details for ev6 processor machine checks as well. This allows power supplies to be unplugged and exchanged while the system is running, without causing the kernel to crash.
2009-01-17use 24-bit precision (encoded in 32-bit words) rather thanAlexandre Ratchov
fake 32-bit precision. Allowed by recent audio(4) changes.