summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* We don't need to hold Giant to create the worker kthread.phk2004-02-071-2/+0
|
* Correct an intance of mtx_pool_lock() that should have been mtx_pool_unlock().wpaul2004-02-071-1/+1
|
* Remove the use of AACQ_COMPLETE here since there is no longer a completionscottl2004-02-071-3/+0
| | | | queue.
* I guess nobody has needed to use the SVR4olator to create devicephk2004-02-071-2/+2
| | | | | | | nodes, or if they did, they're now locked away on the Kurt Gdel memorial home for the numerically confused: Don't cast a kernel pointer (from makedev(9)) to an integer (maj+minor combo).
* Do some small cleanups to comments and remove AACQ_COMPLETE definitions sincescottl2004-02-074-9/+5
| | | | the completion queue is long-gone.
* MFi386: Removed -elf and duplicate -ffreestanding.ru2004-02-074-9/+3
|
* - Removed -elf which is not a valid gcc(1) option anymore.ru2004-02-075-9/+3
| | | | - Removed -ffreestanding; it's enforced by ../Makefile.inc.
* Generate .depend file.ru2004-02-072-0/+4
|
* MFi386: Cleanups to sys/boot makefiles.nyan2004-02-079-104/+70
|
* Style: use the defined() expression explicitly.ru2004-02-071-3/+3
|
* Remove the hack of lowering AAC_MAX_FIB now that the root cause of thescottl2004-02-071-1/+1
| | | | problem was found.
* If a command has to be deferred because there are no more resources for itscottl2004-02-071-9/+11
| | | | | | | | | | | on the card, unmap it first. This allows it to be picked up properly when the queue gets kicked again. This was the root problem for the lost command (i.e. stuck in getblk/vinvalb) problem. While here, panic if commands don't map correctly instead of just silently ignoring the problem and dropping command. Also slow down the dynamic allocation of new commands. It should be safe to go back into the aac waters. Thanks to everyone who suffered through this and provided good feedback.
* swp_pager_async_iodone() no longer requires Giant. Modify bufdone()alc2004-02-072-4/+0
| | | | | | and swapgeom_done() to perform swp_pager_async_iodone() without Giant. Reviewed by: tegge
* Untangle building of AMD64 boot code.ru2004-02-077-28/+13
| | | | Tested on: amd64 (sledge)
* Add a whole bunch of new stuff to make the driver for the AMD Am1771/Am1772wpaul2004-02-076-101/+1212
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 802.11b chipset work. This chip is present on the SMC2602W version 3 NIC, which is what was used for testing. This driver creates kernel threads (12 of them!) for various purposes, and required the following routines: PsCreateSystemThread() PsTerminateSystemThread() KeInitializeEvent() KeSetEvent() KeResetEvent() KeInitializeMutex() KeReleaseMutex() KeWaitForSingleObject() KeWaitForMultipleObjects() IoGetDeviceProperty() and several more. Also, this driver abuses the fact that NDIS events and timers are actually Windows events and timers, and uses NDIS events with KeWaitForSingleObject(). The NDIS event routines have been rewritten to interface with the ntoskrnl module. Many routines with incorrect prototypes have been cleaned up. Also, this driver puts jobs on the NDIS taskqueue (via NdisScheduleWorkItem()) which block on events, and this interferes with the operation of NdisMAllocateSharedMemoryAsync(), which was also being put on the NDIS taskqueue. To avoid the deadlock, NdisMAllocateSharedMemoryAsync() is now performed in the NDIS SWI thread instead. There's still room for some cleanups here, and I really should implement KeInitializeTimer() and friends.
* Checkpoint of work in progress in cleaning up target mode. It actuallymjacob2004-02-071-16/+92
| | | | | | | seems to work well in RELENG_4. However, 5.X locking foo means that I'll have to do some quick redesign. Add ioctl handlers for ISP_GETROLE and ISP_SETROLE ioctls.
* add a count for inotifies as well as atios.mjacob2004-02-071-0/+1
| | | | MFC after: 1 week
* Reverse role defines for initiator and target mode to better match themjacob2004-02-071-4/+6
| | | | | | | | | class 3 service parameters we'd get. Steal 8 bits out of the portid u_int32_t for role information (port ids are 24 bits anyway). MFC after: 1 week
* Add case to handle ISPCTL_GET_PDB.mjacob2004-02-071-0/+9
| | | | MFC after: 1 week
* If we're defined to have a default role for target mode, make itmjacob2004-02-071-5/+4
| | | | | | just ISP_ROLE_TARGET- not both. MFC after: 1 week
* Change role defines so that they better match class 3 service parameters.mjacob2004-02-071-3/+4
| | | | | | Add ISPCTL_GET_PDB isp_control operation. MFC after: 1 week
* Reduce AAC_MAX_FIBS to work around some yet-unidentified bugs in thescottl2004-02-071-1/+1
| | | | | | | | handling of resources shortages. The driver is now so fast that it can completely fill all 512 slots on the card, but for some reason only 511 slots are being allocated. Anything that tries to go into the 512th slot gets silently lost. Both bugs need to be fixed at a later date, but this should fix the reports of hangs in getblk and vinvalb.
* - Broaden the scope of locking in aac_command_thread() again to catch somescottl2004-02-071-11/+17
| | | | | | | | | edge cases in the loop. - Try to grab a command before dequeueing the bio from the bioq. The old behaviour of requeuing deferred bios to the end of the bioq is arguably wrong. This should be fixed in the future to check the bioq head without automatically dequeueing the bio.
* Add an #ifdef _KERNEL so that this file can be used from userland.scottl2004-02-072-2/+4
|
* Allow decreasing access count even if there is no disk anymore.pjd2004-02-061-3/+11
| | | | | | This will allow closing disks that were removed while opened. Approved by: phk, scottl (mentor)
* Fix memory leak.le2004-02-061-1/+1
| | | | | | PR: kern/58634 Submitted by: le Approved by: phk
* First round of cleanups to sys/boot/ makefiles:ru2004-02-0612-249/+186
| | | | | | | | | | | | - do not use PROG for what's not a real C program, - use sys.mk transformation rules where possible, - only create the "machine" symlink on AMD64, - removed MAINTAINER lines in individual makefiles, - added the LIBSTAND defitinion to <bsd.libnames.mk>, - somewhat better contents in .depend files. Tested on: i386, amd64 Prodded by: bde
* Reduce the inline limit from 20000 to 8000 after the previous changespeter2004-02-061-1/+1
| | | | to simplify the curthread expansion some months ago.
* Remove the badsw* INVARIANTS checks. The events that this attemptspeter2004-02-061-96/+10
| | | | | | | | | to catch are already nicely caught by trapping the null pointer derefs. Remove no-longer-used noswitch/nothrow strings. They were referenced by the stub cpu_switch() etc functions before they were implemented. Try something a little different for the lock prefixes. Prompted by: bde (the first two items anyway)
* Regen.jhb2004-02-067-52/+52
|
* Sync up MP safe flags with global syscalls.master. This includes write(),jhb2004-02-061-16/+16
| | | | | | close(), getpid(), ibcs2_setuid(), getuid(), ptrace(), ibcs2_pause(), ibcs2_nice(), ibcs2_kill(), ibcs2_pgrpsys(), dup(), pipe(), ibcs2_setgid(), getgid(), umask(), and sigreturn().
* Sync up MP safe flags with global syscalls.master. This includes read(),jhb2004-02-061-29/+29
| | | | | | | | | write(), close(), getpid(), setuid(), getuid(), svr4_sys_pause(), svr4_sys_nice(), svr4_sys_kill(), svr4_sys_pgrpsys(), dup(), pipe(), setgid(), getgid(), svr4_sys_signal(), umask(), getgroups(), setgroups(), svr4_sys_sigprocmask(), svr4_sys_sigsuspend(), svr4_sys_sigaltstack(), svr4_sys_sigaction(), svr4_sys_sigpending(), mprotect(), munmap(), setegid(), seteuid(), setreuid(), setregid().
* Make all ACPI debug layers unique again. This makes debugging a morephilip2004-02-061-6/+6
| | | | | | | pleasant experience (for certain definition of 'pleasant'). Submitted by: Mark Santcroos <marks@ripe.net> Approved by: njl (mentor)
* - Convert the plimit lock to a pool mutex lock.jhb2004-02-062-15/+9
| | | | | | - Hide struct plimit from userland. Submitted by: bde (2)
* - Correct the translation of old rlimit values to properly handle the oldjhb2004-02-061-21/+28
| | | | | | | | | | | | | RLIM_INFINITY case for ogetrlimit(). - Use %jd and intmax_t to output negative time in usec in calcru(). - Rework getrusage() to make a copy of the rusage struct into a local variable while holding Giant and then do the copyout from the local variable to avoid having to have the original process rusage struct locked while doing the copyout (which would not be safe). This also includes a few style fixes from Bruce to getrusage(). Submitted by: bde (1, parts of 3) Suggested by: bde (2)
* A few more style fixes from Bruce including a few I missed last time.jhb2004-02-062-20/+13
| | | | Submitted by: bde
* MFNetBSD:sanpei2004-02-061-2/+9
| | | | | | | netbsd.org -> NetBSD.org(rev.1.109) fix typo in comment(rev.1.90) add list of ``already merged''
* Inherit BINDIR from a parent Makefile.inc.ru2004-02-068-7/+2
|
* Only include ../Makefile.inc once in loader/Makefile.ru2004-02-062-5/+2
|
* Commit simple workarounf for the "LiteOn" hang on boot problem.sos2004-02-061-0/+1
| | | | | | This allows the system to boot so I can get the world out of my mailbox and get some work done to figure out what this mess is all about.
* Turn of ath since it causes a link failure without the hal till sam'speter2004-02-061-1/+1
| | | | set up with a cross compiler and has the time to port the hal.
* Make LINT compile on amd64peter2004-02-061-2/+2
|
* Make this compile on amd64.peter2004-02-061-6/+6
| | | | "I'll cope" by: sam
* must convert protocol to sa type when preparing a DELETE messagesam2004-02-051-1/+7
| | | | | Submitted by: Roselyn Lee <rosel@verniernetworks.com> MFC after: 1 week
* Attempt to clean up the emu10k1-alsa.h stuff so that config doesn'tpeter2004-02-053-11/+27
| | | | | | delete it each time its run and have it regenerated each time by make. I used a quick hackish script rather than putting it in the files file and used the before-depend rule to avoid the depend/no-depend hacks.
* Fixed style of DPADD and LDADD assignments as per style.Makefile(5).ru2004-02-051-2/+2
|
* Added missing DPADD.ru2004-02-051-0/+1
|
* Always set a process' state to normal when it is fully constructed injhb2004-02-052-6/+9
| | | | | fork1() rather than only doing it for the RFSTOPPED case and then having to fix it up in other places later on.
* - A lot of style and whitespace fixes.jhb2004-02-052-70/+63
| | | | | | - Update a few comments regarding locking notes. Submitted by: bde (1, mostly)
* Correct a reference counting bug in shmat(2). If vm_map_find(9)nectar2004-02-051-0/+1
| | | | | | | | failed, the reference count for the virtual memory object referenced by the specified shared memory segment would have been erroneously incremented. Reported by: Joost Pol <joost@pine.nl>
OpenPOWER on IntegriCloud