summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* do not insert a dest option header (even specified by a user) thatume2003-10-311-1/+13
| | | | | | | should be placed before a routing header, unless a routing header really exists. Obtained from: KAME
* Add support for the Broadcom BCM5788 (just another entry to the PCIwpaul2003-10-312-0/+3
| | | | | | device ID list, probably a 5705 ASIC). Submitted by: Marcel Prisi <marcel@virtua.ch>
* (icmp6_rip6_input) if the received data is small enough but in anume2003-10-311-2/+46
| | | | | | | | mbuf cluster, copy the data to a separate mbuf that do not use a cluster. this change will reduce the possiblity of packet loss in the socket layer. Obtained from: KAME
* rename MLD6_* to MLD_*.ume2003-10-312-17/+18
| | | | Obtained from: KAME
* use arc4random.ume2003-10-314-9/+6
| | | | Obtained from: KAME
* initialize in6_tmpaddrtimer_ch.ume2003-10-311-0/+1
| | | | Obtained from: KAME
* nuku unused functions in6_nigroup_attach() andume2003-10-312-61/+0
| | | | | | in6_nigroup_detach(). Obtained from: KAME
* MFi386: revision 1.579.nyan2003-10-312-28/+20
|
* - Finish externing of r_idt in the f00f hack code.jhb2003-10-311-14/+10
| | | | | | - Miscellaneous style fixes in the f00f hack code and some nearby code. Submitted by: bde
* MFi386: revision 1.198.nyan2003-10-311-8/+8
|
* Merged from sys/isa/syscons_isa.c revision 1.24.nyan2003-10-312-0/+8
|
* MFi386: revision 1.578.nyan2003-10-312-16/+2
|
* Fix breakage on ia64: PAGE_SIZE on ia64 is large enough that more thanharti2003-10-311-1/+5
| | | | | | 256 raw receive buffers (96 byte each) fit into one page. This breaks the limit imposed by the usage of an uint8_t for the buffer number. Restrict the allocation size for buffers to a maximum of 8192.
* Add a new sysctl MIB to control exclusive login.simokawa2003-10-311-1/+6
|
* - Add static to local functions and data where it was missing.jeff2003-10-311-78/+222
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add an IPI based mechanism for migrating kses. This mechanism is broken down into several components. This is intended to reduce cache thrashing by eliminating most cases where one cpu touches another's run queues. - kseq_notify() appends a kse to a lockless singly linked list and conditionally sends an IPI to the target processor. Right now this is protected by sched_lock but at some point I'd like to get rid of the global lock. This is why I used something more complicated than a standard queue. - kseq_assign() processes our list of kses that have been assigned to us by other processors. This simply calls sched_add() for each item on the list after clearing the new KEF_ASSIGNED flag. This flag is used to indicate that we have been appeneded to the assigned queue but not added to the run queue yet. - In sched_add(), instead of adding a KSE to another processor's queue we use kse_notify() so that we don't touch their queue. Also in sched_add(), if KEF_ASSIGNED is already set return immediately. This can happen if a thread is removed and readded so that the priority is recorded properly. - In sched_rem() return immediately if KEF_ASSIGNED is set. All callers immediately readd simply to adjust priorites etc. - In sched_choose(), if we're running an IDLE task or the per cpu idle thread set our cpumask bit in 'kseq_idle' so that other processors may know that we are idle. Before this, make a single pass through the run queues of other processors so that we may find work more immediately if it is available. - In sched_runnable(), don't scan each processor's run queue, they will IPI us if they have work for us to do. - In sched_add(), if we're adding a thread that can be migrated and we have plenty of work to do, try to migrate the thread to an idle kseq. - Simplify the logic in sched_prio() and take the KEF_ASSIGNED flag into consideration. - No longer use kseq_choose() to steal threads, it can lose it's last argument. - Create a new function runq_steal() which operates like runq_choose() but skips threads based on some criteria. Currently it will not steal PRI_ITHD threads. In the future this will be used for CPU binding. - Create a kseq_steal() that checks each run queue with runq_steal(), use kseq_steal() in the places where we used kseq_choose() to steal with before.
* - Add 4 kse flags for use in the schedulers.jeff2003-10-311-0/+4
|
* Fix two bugs introduced with the rstack functionality and specific tomarcel2003-10-311-1/+2
| | | | | | | | | | | | | | | the rstack functionality: 1. Fix a KASSERT that tests for the address to be above the upward growable stack. Typically for rstack, the faulting address can be identical to the record end of the upward growable entry, and very likely is on ia64. The KASSERT tested for greater than, not greater equal, so whenever the register stack had to be grown the assertion fired. 2. When we grow the upward growable stack entry and adjust the unlying object, don't forget to adjust the size of the VM map. Not doing so would trigger an assert in vm_mapzdtor(). Pointy hat: marcel (for not testing with INVARIANTS).
* Tweak the calculation of minbfree in ffs_dirpref() so that onlytruckman2003-10-311-7/+7
| | | | | | | | | | | | | | | | | | | | | those cylinder groups that have at least 75% of the average free space per cylinder group for that file system are considered as candidates for the creation of a new directory. The previous formula for minbfree would set it to zero if the file system was more than 75% full, which allowed cylinder groups with no free space at all to be chosen as candidates for directory creation, which resulted in an expensive search for free blocks for each file that was subsequently created in that directory. Modify the calculation of minifree in the same way. Decrease maxcontigdirs as the file system fills to decrease the likelyhood that a cluster of directories will overflow the available space in a cylinder group. Reviewed by: mckusick Tested by: kmarx@vicor.com MFC after: 2 weeks
* While not illegal, attempt to pacify gcc -Wundef. It just so happenspeter2003-10-311-3/+3
| | | | | | | | that libtool-using packages seem to love using this flag. /usr/include/sys/cdefs.h:184:5: warning: "__STDC_VERSION__" is not defined /usr/include/sys/cdefs.h:372:5: warning: "_POSIX_C_SOURCE" is not defined /usr/include/sys/cdefs.h:378:5: warning: "_POSIX_C_SOURCE" is not defined
* - Synchronize access to the swdevt's sw_flags with sw_dev_mtx.alc2003-10-311-2/+3
| | | | - Remove several instances of GIANT_REQUIRED.
* Reject too large OHCI version number.simokawa2003-10-311-4/+5
| | | | | Invalid OHCI version indicates OHCI registers are not mapped correctly in PCI or CardBus layer.
* Add a compatibility macro for FreeBSD-4.simokawa2003-10-311-0/+1
|
* Make TUNDEBUG use if_printf instead of printf.brooks2003-10-311-24/+17
|
* Replace a couple printfs with if_printfs.brooks2003-10-311-4/+3
|
* Initialize if_softc and use it in favor of &ipr_softc[ifp->if_unit] tobrooks2003-10-311-3/+4
| | | | get the softc.
* Remove unused lp_unit member from softc.brooks2003-10-301-3/+0
|
* Remove unused FXP_UNIT() macro.brooks2003-10-301-2/+0
|
* ifp->if_name can't be null when we just assigned a static string to it.brooks2003-10-301-5/+0
|
* Overhaul routing table entry cleanup by introducing a new rtexpungesam2003-10-308-74/+134
| | | | | | | | | | | | routine that takes a locked routing table reference and removes all references to the entry in the various data structures. This eliminates instances of recursive locking and also closes races where the lock on the entry had to be dropped prior to calling rtrequest(RTM_DELETE). This also cleans up confusion where the caller held a reference to an entry that might have been reclaimed (and in some cases used that reference). Supported by: FreeBSD Foundation
* style: strcmp() does not return a bool.brooks2003-10-301-1/+1
|
* use a local variable to avoid holding a lock across a call out of viewsam2003-10-301-4/+6
| | | | Supported by: FreeBSD Foundation
* Change the pmap_invalidate_xxx() functions so they test againstpeter2003-10-301-3/+3
| | | | | pmap == kernel_pmap rather than pmap->pm_active == -1. gcc's inliner can remove more code that way. Only kernel_pmap has a pm_active of -1.
* Fixup the sorting of some of the options. DISABLE_P* are still out ofjhb2003-10-301-8/+8
| | | | order to keep all of the opt_pmap.h options together.
* Ensure that mp_ncpus is set to 1 if mp_cpu_probe() fails.jhb2003-10-301-1/+3
|
* Include "opt_pmap.h" so that the DISABLE_P* options are honored.jhb2003-10-302-0/+4
|
* Always export r_gdt and r_idt and give them extern declarations injhb2003-10-308-26/+2
| | | | machine/segments.h.
* There is no way to enter the attach routine twice with the same softcbrooks2003-10-306-185/+173
| | | | | | | without a detach call in between so don't try to deal with that possiability. This is a diff-reduction commit for the upcoming if_xname conversion.
* MFi386: thread specific fpu state optimizationspeter2003-10-301-1/+3
|
* - unlock on error.ume2003-10-301-4/+10
| | | | - don't call malloc with M_WAITOK within lock context.
* Relock mntvnode_mtx if vget fails in vfs_stdsync. The loop iskan2003-10-301-0/+1
| | | | always shoould entered with mutex locked.
* Explain why the lock-free allocation algorithm is safe in our caseharti2003-10-301-0/+18
| | | | | while beeing not safe in the general case. Thanks to David Schultz <das@freebsd.org> for help.
* Add sysctl MIB and loader tunable `hw.acpi.no_reset_video' asiwasaki2003-10-303-0/+17
| | | | the same effect as ACPI_NO_RESET_VIDEO kernel option.
* add management part of address selection policy described inume2003-10-305-0/+227
| | | | | | RFC3484. Obtained from: KAME
* Add support for the VIA 8237 (both PATA and SATA part).sos2003-10-302-80/+104
| | | | Cleanup the SATA support a bit now we are here anyways.
* Reinvent the used-flag for external mbufs. This and the on-card flagharti2003-10-303-19/+56
| | | | | | | | are now in the header of the external buffer itself which allows us to manipulate them in the free routine without having to lock the softc structure or the free list. To get space for these flags the chunk number is reduced to 8 bit which amounts to a maximum of 256 chunks per allocated page. This restriction is now enforced by a CTASSERT.
* - Synchronize access to the swdevt's sw_blist with sw_dev_mtx.alc2003-10-301-20/+20
| | | | - Remove several instances of GIANT_REQUIRED.
* - Synchronize access to swdevhd using sw_dev_mtx.alc2003-10-301-7/+7
| | | | | - Use swp_sizecheck() rather than assignment to swap_pager_full in swaponsomething().
* MFi386: rev 1.451 (jhb): call pmap_kremove() rather than duplicate itpeter2003-10-301-5/+2
|
* MFi386: trap.c rev 1.259: fetch thread mailbox address in page fault trappeter2003-10-301-0/+2
|
* Try to fetch thread mailbox address in page fault trap, so when threaddavidxu2003-10-302-1/+5
| | | | | blocks in page fault hanlder, and upcall thread can be scheduled. It is useful if process is doing lots of mmap based I/O.
OpenPOWER on IntegriCloud