summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
...
* Build openfirmio on sparc64.tmm2002-10-181-0/+1
|
* Add a pseudo device which allows to access the OpenFirmware device treetmm2002-10-182-0/+389
| | | | | via ioctl()s. This was ported from NetBSD and adapted a bit to better match our OpenFirmware support code.
* Add an #ifdef _KERNEL to make it possible to include this file fromtmm2002-10-181-5/+7
| | | | userland (to get the typedefs).
* typo.nyan2002-10-181-4/+4
| | | | | Submitted by: SAWADA Hodaka <hoda@tail.gr.jp> MFC after: 1 day
* Backout my previous "brain cramp" commit.pirzyk2002-10-181-11/+9
| | | | | | Requested by: Most developers Apologies to: Most developers, with special note to <ken@kdm.org> Collabroation in the future with: Kenneth D. Merry <ken@kdm.org>
* Cover the ELF headers with the text segment so that they get loadedmarcel2002-10-181-1/+1
| | | | | | into memory. This brings us in line with the other architectures and more easily allows us to do machine dependent processing on the ELF file (such as scanning for unwind information).
* Have lockinit() initialize the debugging fields of a lockmckusick2002-10-181-0/+9
| | | | | | when DEBUG_LOCKS is defined. Sponsored by: DARPA & NAI Labs.
* When the number of dirty buffers rises too high, the buf_daemon runsmckusick2002-10-181-3/+17
| | | | | | | | | | | | | | to help clean up. After selecting a potential buffer to write, this patch has it acquire a lock on the vnode that owns the buffer before trying to write it. The vnode lock is necessary to avoid a race with some other process holding the vnode locked and trying to flush its dirty buffers. In particular, if the vnode in question is a snapshot file, then the race can lead to a deadlock. To avoid slowing down the buf_daemon, it does a non-blocking lock request when trying to lock the vnode. If it fails to get the lock it skips over the buffer and continues down its queue looking for buffers to flush. Sponsored by: DARPA & NAI Labs.
* With the revised single-lock method used in snapshots, themckusick2002-10-181-1/+0
| | | | | | BA_NOWAIT flag is no longer needed. Sponsored by: DARPA & NAI Labs.
* Separate fiels reported by disk_err() with spaces, so that output doesn'tsobomax2002-10-171-7/+7
| | | | | | look cryptic. MFC after: 1 week
* Changed the scsi mode command to use 10 bytes scsi commands insteadpirzyk2002-10-171-9/+11
| | | | | | | of the 6 byte ones. This helps with using a IDE cdrom behind a USB interface. PR: kern/43885
* Replace the conventional usage of strncpy() by using strlcpy().robert2002-10-172-13/+5
|
* - Use strlcpy() rather than strncpy() to copy NUL terminatedrobert2002-10-171-6/+6
| | | | | strings. - Pass the correct buffer size to getcredhostname().
* Be consistent and return the NUL at the end of kern.geom.conf{xml,dot}.phk2002-10-171-2/+2
| | | | Spotted by: sam
* Instead of (sizeof(source_buffer) - 1) bytes, copy at mostrobert2002-10-171-1/+1
| | | | | | (sizeof(destination_buffer) - 1) bytes into the destination buffer. This was not harmful because they currently both provide space for (MAXCOMLEN + 1) bytes.
* Use strlcpy() instead of strncpy() to copy NUL terminated stringsrobert2002-10-1711-28/+27
| | | | for safety and consistency.
* NUL terminate sysctl kern.disksphk2002-10-171-1/+1
|
* Add the !define(COMPILING_LINT)pirzyk2002-10-172-2/+2
| | | | | | pass the pointy hat... Requested by: Juli Mallett <jmallett@FreeBSD.org>
* When entering the firmware mappings into the kernel tlb, clear all 'soft'tmm2002-10-171-1/+4
| | | | | | | | bits that might be set in the firmware tte data field, and set the soft flag TD_EXEC to mark the page executable. Failing to do the latter would cause fatal instruction faults in the prom in certain situations. Reviewed by: jake
* Allocate major 177 for the OpenFirmware control device, which I havetmm2002-10-171-0/+1
| | | | ported from NetBSD and plan to commit soon.
* Quirk for HP 315 USB Digital Cameranjl2002-10-171-0/+8
| | | | | | | Submitted by: Keith White <kwhite@uottawa.ca> PR: kern/41010 MFC after: 1 week
* last arg of in6?_gif_output() is not used any more.ume2002-10-175-8/+6
| | | | | Obtained from: KAME MFC after: 3 weeks
* - drop too short IPv6 frameume2002-10-171-10/+15
| | | | | | | - NULL != 0 Obtained from: KAME MFC after: 3 weeks
* s/gifp/ifp/ume2002-10-171-11/+11
| | | | | Obtained from: KAME MFC after: 3 weeks
* fix kldload error return when a module is rejected because it's staticallysam2002-10-171-4/+12
| | | | | | linked in the kernel. When this condition is detected deep in the linker internals the EEXIST error code that's returned is stomped on and instead an ENOEXEC code is returned. This makes apps like sysinstall bitch.
* Fix compile with options SC_NO_SUSPEND_VTYSWITCH.jhb2002-10-171-0/+2
|
* - Allocate only enough space for a temporary buffer to holdrobert2002-10-171-5/+6
| | | | | | the path including the terminating NUL character from `struct sockaddr_un' rather than SOCK_MAXADDRLEN bytes. - Use strlcpy() instead of strncpy() to copy strings.
* my(4) requires miibus, so that move it into proper section and also add asobomax2002-10-171-1/+2
| | | | verbose description into comment area.
* Switch from the bs driver to the ct driver.nyan2002-10-171-3/+3
|
* 1. Fix a comment. Locking _is_ needed (but not done).iwasaki2002-10-175-60/+40
| | | | | | | | | | | | | | | | | | | | | | | | | 2. Update a comment. We now restore much more than RTC updates and interrupts. 3. Order change. Stop interrupts by writing to RTC_STATUSB, restore rate bits for the interrupts by writing to RTC_STATUSA, then enable interrupts again. This seems to be done perfectly backwards in startrtclock(). Otherwise, the idea for this change was obtained from startrtclock(). 4. Don't stop the clock (RTCB_HALT). We only program some control bits and don't want to stop the clock. 5. (Not really related.) Add caveats to the comment about timer_restore(). The update is non-atomic since locking is not done. On locking: 6. rtcin() and writertc() are locked() adequately by splhigh() in RELENG_4, but this locking is null in -current. 7. Doing things in the correct order in (3) combined with (6) is probably enough locking for rtcrestore() in RELENG_4. In -current, the writertc()'s race with rtcintr() unless the BIOS disables RTC interrupts. Submitted by: bde (including commit message) MFC after: 1 week
* Fixed the quoting of the value of SC_CUT_SEPCHARS. The double quotesbde2002-10-172-23/+23
| | | | | | | | | | | | | | | | | | | needed to be quoted (to get a C string literal), not the value itself. Fixed the value of SC_CUT_SEPCHARS. Setting this value would have had no effect even if it were used, since the value was the same as the default. The above bugs had no effect except to set bad examples, since test coverage of SC_CUT_SEPCHARS is broken by enabling a negative option. Removed (unquoted) double quotes for all options. They were all bogus since they had no effect except to make non-strings look like strings. Most of the non-strings were expressions. The value of INIT_PATH is a non-string since it is stringified later (unlike SC_CUT_SEPCHARS). Fixed parenthesization errors inside bogus quotes (parenthesize values if they have more than one token in them but don't parenthesize single tokens).
* Merged from sys/isa/syscons_isa.c revision 1.19.nyan2002-10-172-0/+8
|
* Merged from sys/dev/syscons/syscons.c revision 1.390.nyan2002-10-171-1/+2
|
* Add new syscons option SC_NO_SUSPEND_VTYSWITCH.iwasaki2002-10-177-0/+10
| | | | This disables vty switch during suspend/resume.
* put an #error directive when SMP and CPU_DISABLE_CMPXCHG are setpirzyk2002-10-172-0/+6
| | | | | | | together. Requested by: Lars Eggart <larse@isi.edu> Enlighted how to do it by: John Baldwin <jhb@freebsd.org>
* Make kqueue(2) work for virtual terminals.kbyanc2002-10-171-1/+2
| | | | | PR: 40486 Submitted by: Jilles Tjoelker <jilles+fbsd-bugs@stack.nl>
* Suppress the uninitialized variable warning on ia64 introduced bymarcel2002-10-171-0/+4
| | | | | the previous commit by initializing i and j. These initializations will normally be eliminated by the compiler.
* de-__P().alfred2002-10-162-4/+4
|
* de-__P()alfred2002-10-161-3/+3
|
* use encapcheck.ume2002-10-162-30/+0
| | | | | Obtained from: KAME MFC after: 3 weeks
* Fix a fairly subtle bug in mbuf_init() where the reference counterbmilekic2002-10-161-1/+1
| | | | | | | | contiguous space was being allocated from the clust_map instead of the mbuf_map as the comments indicated. This resulted in some address space wastage in mbuf_map. Submitted by: Rohit Jalan <rohjal@yahoo.co.in>
* - after gif_set_tunnel(), psrc/pdst may be null. set IFF_RUNNING accordingly.ume2002-10-166-190/+356
| | | | | | | | | | | | | | - set IFF_UP on SIOCSIFADDR. be consistent with others. - set if_addrlen explicitly (just in case) - multi destination mode is long gone. - missing break statement - add gif_set_tunnel(), so that we can set tunnel address from within the kernel at ease. - encap_attach/detach dynamically on ioctls - move encap_attach() to dedicated function in in*_gif.c Obtained from: KAME MFC after: 3 weeks
* Fix oops in my last commit, I was calculating a new length but then notdillon2002-10-161-1/+1
| | | | | | using it. (The code is already correct in -stable). Found by: silby
* Whitespace.jhb2002-10-161-2/+2
|
* Use the global pcib devclass instead of our own static copy.jhb2002-10-162-4/+0
|
* Add "pci108e,8000" (psycho) and "pci108e,a000" (US-IIi sabre) to the list oftmm2002-10-161-37/+54
| | | | | | | | | | recognized compat properties. This should make the psycho driver attach properly on SPARCengine Ultra AX machines. Switch to a table-driven logic to recognize the ID's, since their number is now large enough to justify this. These changes are analogous to those made in NetBSD r.1.35, but implemented a bit differently.
* Catch up to changes in acpivar.h to add support for using ACPI onjhb2002-10-168-12/+23
| | | | | | 4-stable systems. Sponsored by: The Weather Channel
* struct timecounter is defined in sys/time.h on 4-stable.jhb2002-10-161-0/+4
| | | | Sponsored by: The Weather Channel
* - Include lock headers on current in this header instead of puttingjhb2002-10-161-3/+18
| | | | | | | #if's in all the other ACPI source files. - Use splhigh() for the ACPI subsystem lock on 4-stable. Sponsored by: The Weather Channel
* - In AcpiOsGetThreadId(), allow for curproc to be NULL on 4-stable systems.jhb2002-10-161-4/+14
| | | | | | | | In that case use proc0's pid to return the thread ID. - For 4-stable, use the generic swi taskqueue for ACPI events rather than implementing our own. Sponsored by: The Weather Channel
OpenPOWER on IntegriCloud