summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* mib name was changed by fixing a spelling.ume2003-10-281-1/+1
| | | | | | net.key.prefered_oldsa -> net.key.preferred_oldsa Obtained from: KAME
* speedup stream socket recv handling by tracking the tail ofsam2003-10-289-49/+371
| | | | | | | the mbuf chain instead of walking the list for each append Submitted by: ps/jayanth Obtained from: netbsd (jason thorpe)
* - Only change the run queue in sched_prio() if the kse is non null. threadsjeff2003-10-281-10/+2
| | | | | | can be in the TD_ON_RUNQ state and not have an associated kse. - Remove the PRI_IDLE special case from sched_clock(), it was not actually necessary.
* Oops. Remove some rather noisy debug printfs that slipped in therepeter2003-10-281-9/+0
| | | | somehow.
* The previous commit removed both clause 3 and clause 4 from the UCBmarcel2003-10-272-6/+8
| | | | | | | | | | | | | | | license. Only clause 3 has been revoked. Restore the fourth clause as clause 3. Pointed out by: das@ Remove my name as a copyright holder since I don't use a BSD license compatible or comparable to the UCB license. I choose not to add a complete second license for my work for aesthetic reasons, nor to replace the UCB license on grounds of rewriting more than 90% of the source files. The rewrite can also be seen as an enhancement and since the files were practically empty, it's rather trivial to have changed 90% of the files.
* Fix pmap_unmapdev() to call pmap_kremove() instead of implementing itjhb2003-10-271-5/+2
| | | | | directly so that it more closely mirrors pmap_mapdev() which calls pmap_kenter().
* Directly call the 'boot' word instead of indirectly evaluating it.scottl2003-10-271-7/+7
| | | | Submitted by: dcs
* When we cannot allocate an external buffer (bacause we've hitharti2003-10-271-9/+5
| | | | | | | | | | | the maximum number of pages for buffers) return -1 instead of 0. This fixes a panic under conditions when many mbufs are needed. Update the head pointer of the receive buffer pool queue even when we could not supply a buffer to the chip. Otherwise the chip will not re-interrupt us for another try. A better strategy would probably be to remember this condition and to supply buffers without an interrupt as soon as buffers get available.
* Allow building the NgATM SAAL layer directly into the kernel.harti2003-10-274-2/+17
|
* - Don't set td_priority directly here, use sched_prio().jeff2003-10-271-1/+1
|
* M_DONTWAIT was passed into malloc().ume2003-10-271-2/+2
| | | | Submitted by: Ian Dowse <iedowse@maths.tcd.ie>
* - Use a better algorithm in sched_pctcpu_update()jeff2003-10-271-56/+50
| | | | | | | | | | | | | | | | | | | | | Contributed by: Thomaswuerfl@gmx.de - In sched_prio(), adjust the run queue for threads which may need to move to the current queue due to priority propagation . - In sched_switch(), fix style bug introduced when the KSE support went in. Columns are 80 chars wide, not 90. - In sched_switch(), Fix the comparison in the idle case and explicitly re-initialize the runq in the not propagated case. - Remove dead code in sched_clock(). - In sched_clock(), If we're an IDLE class td set NEEDRESCHED so that threads that have become runnable will get a chance to. - In sched_runnable(), if we're not the IDLETD, we should not consider curthread when examining the load. This mimics the 4BSD behavior of returning 0 when the only runnable thread is running. - In sched_userret(), remove the code for setting NEEDRESCHED entirely. This is not necessary and is not implemented in 4BSD. - Use the correct comparison in sched_add() when checking to see if an idle prio task has had it's priority temporarily elevated.
* const char ** needs to be passed, not char **.imp2003-10-271-1/+1
|
* Call the VESA reset BIOS vector on the resume path. This may help displaysnjl2003-10-271-0/+9
| | | | after resume. I have not found it to break anything.
* In camperiphdone(), make sure we check for fatal errors and bail outken2003-10-272-16/+17
| | | | | | | | | | | | | | | | | | | | | | instead of retrying them blindly. This should fix some of the problems people have been having with cdrom drives taking a long time to probe. This should also eliminate the need for the initial TUR in cdsize(). cam_periph.c: Don't keep retrying if the error we get back is a fatal error. This should help us detect the transition from "Logical unit not ready, cause not reportable" to "Medium not present" in the "TUR many" handler. (The TUR many handler gets triggered for Logical unit not ready, cause not reportable errors.) scsi_cd.c: Remove the initial test unit ready in cdsize(). Hopefully it isn't necessary after the above change. Submitted by: gibbs (mostly) Tested by: peter MFC After: 2 weeks
* - Complete the synchronization of accesses to the swblock hash table.alc2003-10-271-0/+3
|
* Add support for userland to access I/O port space. This is primarilymarcel2003-10-272-40/+83
| | | | | | | | | | | | | | | added for XFree86. There are 2 reasons for doing this with sysarch(): 1. The memory mapped I/O space is not at a fixed physical address. An application has to use some interface to get the base address. It gets worse if the machine has multiple memory mapped I/O spaces. 2. Access to the memory mapped I/O space needs to happen through a translation that is flagged as uncachable. There's no interface that allows a process to do uncached memory I/O, other than though /dev/mem (possibly). So, until we either disallow direct access to I/O or bus space from userland or have a better way of doing this, sysarch() has the least negative impact on existing interfaces.
* sync to 1.77imp2003-10-271-4/+4
|
* Correct CEM33imp2003-10-271-1/+1
|
* Delay if_lo module intialization until domain list has beenkan2003-10-271-1/+1
| | | | completely populated. This prevents a system crash on boot.
* Fix style problems with new options.njl2003-10-272-4/+4
| | | | Requested by: bde
* Make sn MPSAFE. This has survived a couple of make buildworlds withimp2003-10-262-123/+119
| | | | my Megahertz XJ10BT.
* Pass sc to GO_WINDOW macro.imp2003-10-266-26/+24
| | | | | | Use SET_IRQ for pccard case, rather than exapnding it inline. Requested by: mdodd
* Sync to pccarddevs 1.76imp2003-10-261-1/+4
|
* Add Olicom GoCard 28.8k versionimp2003-10-261-0/+1
|
* Sync to 1.75 of pccarddevsimp2003-10-261-2/+5
|
* Minor tweak to Olicom 2220. Also add the OC-2232 while I'm here.imp2003-10-261-1/+2
| | | | | Looks like 'special magic' is needed to access the ethernet part of that combo card, so I've not added it to ex.
* - Introduce and use a mutex synchronizing access to the swblock hash table.alc2003-10-261-4/+20
|
* re-add wrongly disappered IPV6_CHECKSUM stuff by introducingume2003-10-263-0/+83
| | | | | | ip6_raw_ctloutput(). Obtained from: KAME
* drop unused defines.ume2003-10-261-4/+0
|
* drop unused fields.ume2003-10-261-6/+1
|
* use official # for IFT_STFume2003-10-261-1/+2
| | | | | | (are there any backward compat issue? i don't think so) Obtained from: KAME
* use uint32_t instead of u_int32_t for newly introducedume2003-10-261-1/+1
| | | | struct definition.
* Revert previous change.simokawa2003-10-261-1/+1
| | | | | | | We have to put dcons_crom at first after 'optional' and dcons and firewire are necessary and not optional for dcons_crom anyway. Reported by: brooks
* add newcard support to eximp2003-10-261-2/+28
|
* Sync to pccarddevs 1.74imp2003-10-261-1/+4
|
* Add ID for olicom GOCARD Ethernet (OC2220)imp2003-10-261-0/+1
|
* - Simplify vm_object_collapse()'s collapse case, reducing the numberalc2003-10-261-14/+9
| | | | | | of lock acquires and releases performed. - Move an assertion from vm_object_collapse() to vm_object_zdtor() because it applies to all cases of object destruction.
* Style changes:imp2003-10-261-16/+16
| | | | | o kill register o minor function name tweaks.
* constify bintime_add, bintime_sub, bintime2timespec, timespec2bintime,alfred2003-10-261-6/+6
| | | | bintime2timeval and timeval2bintime.
* constify the second args to timevaladd() and timevalsub().alfred2003-10-262-4/+4
|
* Const poison string accessor functions.imp2003-10-264-10/+11
|
* - Add some of the required vm object locking, including assertions wherealc2003-10-251-4/+24
| | | | the vm object lock is required and already held.
* Minor style nits suggested by sam and mdodd:imp2003-10-254-26/+33
| | | | | | o give an argument to EP_BUSY_WAIT o use foo_locked rather than foo_body o Add locking assertions for extra safety.
* Convert to bus_space.imp2003-10-254-144/+206
| | | | | | | | | Make the pccard attachment work with NEWCARD Start locking of the driver, but only the macros are defined right now Tested on: Megahertz CC10BT/2 # (These cards are very popular on ebay these days, and run < $10 including # shipping from some sellers).
* For the SMP case, flush the TLB at the beginning of the page zero/copypeter2003-10-251-0/+13
| | | | | | | routines. Otherwise we run into trouble with speculative tlb preloads on SMP systems. This effectively defeats Jeff's revision 1.438 optimization (for his pentium4-M laptop) in the SMP case. It breaks other systems, particularly athlon-MP's.
* - Align a comment within struct vm_page.alc2003-10-251-5/+5
| | | | | - Annotate the vm_page's valid field as synchronized by the containing vm object's lock.
* Check (locked) before performing an advisory unlock following a failurerwatson2003-10-251-1/+2
| | | | | | | of vn_start_write(). Otherwise, we may inconsistently attempt to release the advisory lock. Pointed out by: teggej
* When generate a core dump, use advisory locking in an advisory way:rwatson2003-10-251-6/+6
| | | | | | | | | | | if we do acquire an advisory lock, great! We'll release it later. However, if we fail to acquire a lock, we perform the coredump anyway. This problem became particularly visible with NFS after the introduction of rpc.lockd: if the lock manager isn't running, then locking calls will fail, aborting the core dump (resulting in a zero-byte dump file). Reported by: Yogeshwar Shenoy <ynshenoy@alumni.cs.ucsb.edu>
* Allow MAC policies to block/revoke kern_alq write access to a file.rwatson2003-10-251-2/+10
| | | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Reviewed by: jeff
OpenPOWER on IntegriCloud