summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2004-07-22SIMPLELOCK -> mutex for the lock around deadproc list.Artur Grabowski
Also move the whole deadproc infrastructure to kern_exit, it's only used there. miod@ ok
2004-07-22Spell reserved correctly; ok from copyright holders when in licence blocks.Miod Vallat
2004-07-22Use mutex instead of SIMPLELOCK for locking the tlb shootdown queuesArtur Grabowski
and related structures. tedu@ ok
2004-07-22mutex instead of SIMPLELOCK for mp ddb.Artur Grabowski
"reads good" niklas@ "looks good" andreas@ "works" tedu@
2004-07-22fix cases when m_dup1() returned mbuf chain (instead of single mbuf).Jun-ichiro itojun Hagino
yamt@netbsd
2004-07-22remove p arg from fdplockTed Unangst
2004-07-22remove p arg from fdplockTed Unangst
2004-07-22remove an unused varDavid Gwynne
ok krw@
2004-07-22Fix access to direct mapped memory through /dev/kmem.Artur Grabowski
2004-07-21remove hppa workarounds; from jkunz@ pr3861Michael Shalayeff
2004-07-21swapped byte swapping in raw vs non-raw funcs and missed swapping in rw8; ↵Michael Shalayeff
from jkunz@ pr3861
2004-07-21Fix conversion of interrupt frame to trap frame.Mark Kettenis
ok deraadt@, niklas@
2004-07-21kqueue support for NFS, adapted from netbsd.marius eriksen
ok art@ pedro@, "get it in" deraadt@
2004-07-21In pipe_read, when the pipelock fails (most likely because we catch aArtur Grabowski
signal), don't jump to unlocked_error: and do things that we don't need to do (including messing up the internal state of the pipe). Just return. ok niklas@ miod@
2004-07-21regenMichael Shalayeff
2004-07-21spacingTheo de Raadt
2004-07-21use cdce_ prefix on crc32 function and table name to avoid conflicts,Daniel Hartmeier
suggested by mickey
2004-07-21I was wrong. The assymetry created by the proc argument to rw_enter_writeArtur Grabowski
is horrible and doesn't add anything. Remove it. XXX - the fdplock macro will need a separate cleanup. niklas@ markus@ ok
2004-07-21update the netbsd license and tagsDavid Gwynne
ok krw@
2004-07-21add crc32(), ether_crc32_[b|l]e() doesn't work here. should make it workDaniel Hartmeier
with Zaurus.
2004-07-21from netbsd, umass.c 1.103David Gwynne
Mostly stylistic change, making comments and printf()s similar between BBB and CBI. ok krw@
2004-07-21from netbsd, umass.c 1.105David Gwynne
do less work if we hit an error ok krw@
2004-07-21from netbsd, umass.c 1.112David Gwynne
Fix a printf() error. ok krw@
2004-07-21from netbsd, umass.c 1.116David Gwynne
When starting a bulk-only transfer, punt early if the device is going away. ok krw@
2004-07-21from netbsd, umass.c 1.104David Gwynne
Do the quirk initialization earlier. ok krw@
2004-07-21from netbsd, umass.c 1.101David Gwynne
On a Bulk-In data stall, make sure we copy back the data received, per the spec. This is the real problem behind FORCE_SHORT_INQUIRY. ok krw@
2004-07-21from netbsd, umass.c 1.100 1.113 1.115, umass_scsipi.c 1.11, umassvar.h 1.21David Gwynne
log message for umass 1.98, umass_scsipi.c 1.11, umassvar.h 1.21: Fix several problems with CCI handling, and enable it: * We were never calling the callback function when we got a UFI CCI(!). * We were passing a bogus residual count on non-UFI CCIs. * After a REQUEST SENSE, the UFI CCI may include the ASC/ASCQ from the sense information -- don't consider this a failure. In addition, remove a horrible hack that was causing us to drop sense information on the floor and return empty INQUIRY responses, often in the case where there is a UNIT ATTENTION pending during the INQUIRY. (Some drives send the data and then fail, some don't.) log message for umass.c 1.113: Do not return STATUS_WIRE_FAILED in response to a CBI stall. This is perfectly normal, and is used to report errors. Instead, use STATUS_CMD_FAILED, which causes us to do a REQUEST SENSE. Should address PR 22960. log message for umass.c 1.115: Do not do a CBI reset before returning STATUS_CMD_FAILED. This causes any sense information to be thrown away, and is therefore nonsensical. ok krw@
2004-07-21calibrate after opening. helps if cpu speed is changing and microtime can'tTed Unangst
be trusted. ok deraadt, several testers. solves pr3814. while here, art says use microuptime.
2004-07-21Yet another victim of inline masturbation.Artur Grabowski
Remove inline from a few functions, shrink the kernel by a few kB and make things faster. A simple compilation on amd64 spends around 5% less time in kernel. Yes, it's faster without inlines, now go buy a book about modern cpu architectures and find a chapter about the new and revolutionary thing called "cache". deraadt@ ok
2004-07-21remove a few inlines from funcs that are used more than once and make code ↵Michael Shalayeff
bigger; asked by art@
2004-07-21from freebsd, ugen.c 1.68 usbdi_util.c 1.27 usbdi_util.h 1.15David Gwynne
log message: Implement outgoing interrupt pipes. It is part of the USB 1.1 spec. The Lego Infrared Tower use it. ok deraadt@
2004-07-20ifdef DDB a few functions only used (or usable) from DDB.Artur Grabowski
2004-07-20KASSERT instead of assert. Gives smaller RAMDISKS.Artur Grabowski
2004-07-20Forgot to put this chunk in.Miod Vallat
2004-07-20Properly initialize FPU state if it hasn't been used yet.Mark Kettenis
ok deraadt@
2004-07-20add cdceDaniel Hartmeier
2004-07-20Let the boot device detection code handle secondary SCSI buses.Miod Vallat
2004-07-20Work in progress to support daughterboards. The driver now will attach aMiod Vallat
second scsi bus if a SCSI daughterboard is present, and is supposed to know about this and send scsi commands to the appropriate bus. Unfortunately probing the second bus does not report any device at the moment (though you can boot off it), but I can't see the issue at the moment. Thanks to tdeval@ for lending a few boards equipped with daughterboards for testing.
2004-07-20Driver for USB CDC Ethernet devices (USB Host-to-Host), appearing asDaniel Hartmeier
network interfaces, transporting Ethernet, supporting Sharp Zaurus and Prolific PL-2501 (external cable). Written by Craig Boston based on code from Bill Paul. ok deraadt@
2004-07-20Use sc_print_addr for error messages.Miod Vallat
2004-07-20The timeout wheels are manipulated by hardclock that's not protected withArtur Grabowski
biglock. We need to protect them with a mutex.
2004-07-20protect printf with a mutex instead of SIMPLELOCK.Artur Grabowski
2004-07-20Use mutex instead of SIMPLELOCK for protecting ddb on mp systems.Artur Grabowski
2004-07-20Use mutex where we used to protect pmap internals with SIMPLELOCK.Artur Grabowski
2004-07-20MD mutex implementation on amd64.Artur Grabowski
2004-07-20MD mutex implementation for i386.Artur Grabowski
2004-07-20Introducing mutexes - cpu-owned spinning locks with spl semantics.Artur Grabowski
This is the MI (slightly inefficient and not MP safe) implementation. deraadt@ ok Tested by many. (this and following commits)
2004-07-20regenMichael Shalayeff
2004-07-20prolific pl2501; for dhartmei@Michael Shalayeff
2004-07-20#include "npx.h"Mark Kettenis
ok deraadt@