summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Push WARNS back up to 6, but define NO_WERROR; I want the warts out in thedes2004-07-061-1/+2
| | | | open where people can see them and hopefully fix them.
* Introduce inline {ip,udp,tcp}_next() functions which take a pointer to andes2004-07-0612-52/+77
| | | | | | | {ip,udp,tcp} header and return a void * pointing to the payload (i.e. the first byte past the end of the header and any required padding). Use them consistently throughout libalias to a) reduce code duplication, b) improve code legibility, c) get rid of a bunch of alignment warnings.
* - trailing white-space cleanupgrehan2004-07-062-14/+20
| | | | | - add call to thread_user_enter for P_SA processes before trap processing ala all other arches
* use vfs_suser() to restrict access to the nfs mount's timeout.alfred2004-07-061-0/+3
|
* Use vfs_suser() where appropriate.alfred2004-07-061-11/+7
|
* Introduce vfs_suser(), used to test if a user should have special privsalfred2004-07-062-0/+17
| | | | for a mount.
* NFS mobility Phase VI:alfred2004-07-061-1/+50
| | | | | Export NFS mount state via sysctl. Export timeout via sysctl.
* Rewrite twowords() to access its argument through a char pointer and notdes2004-07-061-3/+10
| | | | | | a short pointer. The previous implementation seems to be in a gray zone of the C standard, and GCC generates incorrect code for it at -O2 or higher on some platforms.
* NFS mobility PHASE I, II & III (phase VI, and V pending):alfred2004-07-069-98/+271
| | | | | | | | | | | | | | | Rebind the client socket when we experience a timeout. This fixes the case where our IP changes for some reason. Signal a VFS event when NFS transitions from up to down and vice versa. Add a placeholder vfs_sysctl where we will put status reporting shortly. Also: Make down NFS mounts return EIO instead of EINTR when there is a soft timeout or force unmount in progress.
* Temporarily lower WARNS to 3 while I figure out the alignment issues ondes2004-07-061-1/+1
| | | | alpha.
* In the spirit of amd64/include/stdarg.h rev 1.6; add __va_copyobrien2004-07-061-0/+3
| | | | | | | | | | (but keep it conditional on __ISO_C_VISIBLE >= 1999. Why? Our out /usr/src/contrib assumes it, and more than a few ports have an autoconf that looks for __va_copy because it is available on glibc. It is critical that we use it on PowerPC. It generally isn't a problem for i386 and its ilk because those platforms can get away with cheating the C standard, using a plain assignment.
* Catch up with the new world order of Netgraph metas.ru2004-07-061-15/+3
| | | | | | (This one was the last, according to grep(1).) Submitted by: Gleb Smirnoff
* Temporarily disable preemption in SCHED_ULE due to reported panics andrwatson2004-07-061-0/+2
| | | | | | | | | hangs due to recent preemption changes. This change appears to remove the panic that I was running into, but at the cost of increasing ithread scheduling latency, and as such is a temporary band-aid until jhb has a chance to resolve the ule<->preemption interaction that is the source of the problem. If it doesn't fix the problem for others-- sorry!
* Use the proper type and then cast on assignment. This fixes warning whennjl2004-07-061-2/+4
| | | | building with -O2.
* Use M_ZERO instead of bzero().bms2004-07-061-2/+1
|
* Be consistent and use bzero() instead of memset().bms2004-07-061-1/+1
|
* Use M_ZERO instead of memset() (!).bms2004-07-061-2/+1
|
* Use M_ZERO instead of bzero().bms2004-07-061-2/+1
|
* Add 32-bit framebuffer support. Tested on PearPC at lo-res, too painfulgrehan2004-07-062-29/+130
| | | | to watch at hi-res.
* Replace a bzero() after malloc() with M_ZERO.bms2004-07-061-2/+1
|
* Style.bms2004-07-061-13/+15
|
* Eliminate unneeded return keywords.bms2004-07-061-34/+1
|
* Whitespace passbms2004-07-061-54/+54
|
* Style changes to pmap_extract().alc2004-07-062-10/+6
|
* Properly brucify a string by outdenting it.bms2004-07-061-2/+2
|
* - Correct pmap_extract()'s return type. It should be vm_paddr_t, notalc2004-07-052-8/+4
| | | | | vm_offset_t. - Convert pmap_extract() to the ANSI style of declaration.
* Correct pmap_extract()'s return type. It should be vm_paddr_t, notalc2004-07-054-4/+4
| | | | vm_offset_t.
* Whitespace nitbms2004-07-052-2/+2
|
* Eliminate redundant return keywords.bms2004-07-052-58/+0
|
* Whitespace pass.bms2004-07-052-80/+78
|
* style(9):bms2004-07-052-150/+150
| | | | | - Space before bracketized non-void function returns. - Space before condition for conditional blocks.
* Eliminate redundant return keywords.bms2004-07-052-96/+0
|
* Whitespace nitsbms2004-07-054-58/+58
|
* style(9) pass on prototypes.bms2004-07-052-42/+54
|
* Unconditionally set last_work_seen while in the SYNCER_RUNNING statetruckman2004-07-051-5/+4
| | | | | | | | | | | so that last_work_seen has a reasonable value at the transition to the SYNCER_SHUTTING_DOWN state, even if net_worklist_len happened to be zero at the time. Initialize last_work_seen to zero as a safety measure in case the syncer never ran in the SYNCER_RUNNING state. Tested by: phk
* - Add 'stop' command, which works just like 'destroy' command, but soundspjd2004-07-056-6/+9
| | | | | | less dangerous. - Update manual pages and extend examples. - Bump versions.
* Allocate the DMA channel shareable and only aquire it while thephk2004-07-051-15/+18
| | | | | | device is open. This allows certain old and rather special dual floppy controllers to work on both channels, as long as you only have one open at a time.
* Something funny happened on the way to the floppy driver today...phk2004-07-051-3/+11
| | | | | | | | | | | | | When two drivers share an ISA DMA channel, they both call isa_dmainit() and the second call fails if DIAGNOSTIC is on. If isa_dmainit() was already called successfully, just return silently. This only works if both drivers agree on the bounce buffer size, but since sharing DMA is usually only possible on very special hardware and then typically only for devices of the same type (which would have multiple instances of the same device driver), this is not a problem in practice.
* Drop the socket buffer lock around a call to m_copym() with M_TRYWAIT.rwatson2004-07-051-1/+4
| | | | | | A subset of locking changes to soreceive() in the queue for merging. Bumped into by: Willem Jan Withagen <wjw@withagen.nl>
* Remove now obsolete port assignments and sizes. These more properlyimp2004-07-051-77/+1
| | | | | | | | belong in the respective drivers. I've not removed ALL of them, as a few still haven't moved. I've just removed the ones that aren't used. # these can be removed from amd64, but I'm having issues getting to # sledge at the moment for a build.
* Add another ifdef...imp2004-07-051-0/+2
|
* These option roms are defined in the ISA standard, and in the ISAimp2004-07-051-2/+2
| | | | hole, so call them ISA Options rom(s).
* MFamd64/i386alc2004-07-052-0/+33
| | | | | | Add partial pmap locking. Tested by: kensmith@
* In the BPF and ethernet bridging code, don't allow callouts to executerwatson2004-07-052-2/+2
| | | | without Giant if we're not debug.mpsafenet=1.
* g_clone_bio() can fail, be ready for this.pjd2004-07-051-2/+6
| | | | Approved by: le
* Make libalias WARNS?=6-clean. This mostly involves renaming variablesdes2004-07-0515-676/+721
| | | | | | | | | named link, foo_link or link_foo to lnk, foo_lnk or lnk_foo, fixing signed / unsigned comparisons, and shoving unused function arguments under the carpet. I was hoping WARNS?=6 might reveal more serious problems, and perhaps the source of the -O2 breakage, but found no smoking gun.
* Parenthesize return values.des2004-07-056-120/+120
|
* Mechanical whitespace cleanup.des2004-07-056-126/+126
|
* Locking cleanup for rl(4).bms2004-07-051-52/+60
| | | | | | | | | | | | | - Eliminate the use of a recursive mutex. - Mark the driver INTR_MPSAFE. This work is incomplete and will be refined in a future commit. - Most notably, _locked() variants of entry points need to be introduced. - The mii upcall/downcall may still be racy. - Add a stubbed-out guard against racing rl_detach() for the time being. Tested on: UP, debug.mpsafenet && !debug.mpsafenet Reviewed by: silence on -net
* style(9) and whitespace cleanup.bms2004-07-052-390/+238
| | | | | | | | Use C99 types. Use ANSI function definitions. Sort prototypes. Split long lines correctly. Punctuate/wordsmith comments. Use device_printf()/if_printf() where possible. Reviewed by: -net (silence)
OpenPOWER on IntegriCloud