summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* o Pass VM_ALLOC_WIRED to vm_page_grab() rather than calling vm_page_wire()alc2002-07-293-33/+12
| | | | | in pmap_new_thread(), pmap_pinit(), and vm_proc_new(). o Lock page queue accesses by vm_page_free() in pmap_object_init_pt().
* Revert rev 1.131.silby2002-07-291-4/+2
| | | | | | | | | | | 1.131 is slightly broken, and I would commit the fix to that here, but it has been reported that any deviation from the original code is causing problems with some 82557 chips, causing them to lock hard. Until those issues have been figured out, going back to the original code is the best plan. Frustrated: Silby
* whitespace commit: fix indentation in fxp_intr_body.luigi2002-07-291-97/+97
| | | | | This is also done in preparation of a subsequent fix for the handling of RNR conditions in polling mode.
* Add routines needed for high resolution profiling.jake2002-07-292-0/+84
|
* Add a symbol for btext.jake2002-07-292-0/+2
|
* Remove a stale comment.jake2002-07-292-8/+0
|
* Use _ALIGN_TEXT. Implement __cyg_profile_func_enter andjake2002-07-292-20/+138
| | | | __cyg_profile_func_exit for GUPROF.
* Add _ALIGN_DATA and _ALIGN_TEXT macros.jake2002-07-291-1/+9
|
* Remove some stuff that snuck in last commit.jake2002-07-291-5/+0
|
* OK, dont rely on the upper layers handling iosize_max correctly,sos2002-07-284-12/+10
| | | | | | instead rely on ATAPI devices ability to do the work instead. MFC material.
* o Modify vm_page_grab() to accept VM_ALLOC_WIRED.alc2002-07-282-1/+5
|
* Make a temporary copy of the output data in the generic sysctl handlerstruckman2002-07-281-6/+45
| | | | | | | | | | | | | | | | | | | so that the data is less likely to be inconsistent if SYSCTL_OUT() blocks. If the data is large, wire the output buffer instead. This is somewhat less than optimal, since the handler could skip the copy if it knew that the data was static. If the data is dynamic, we are still not guaranteed to get a consistent copy since another processor could change the data while the copy is in progress because the data is not locked. This problem could be solved if the generic handlers had the ability to grab the proper lock before the copy and release it afterwards. This may duplicate work done in other sysctl handlers in the kernel which also copy the data, possibly while a lock is held, before calling they call a generic handler to output the data. These handlers should probably call SYSCTL_OUT() directly.
* o Lock page queue accesses by vm_page_free().alc2002-07-281-14/+19
| | | | o Apply some style fixes.
* Wire the sysctl output buffer before grabbing any locks to preventtruckman2002-07-289-0/+15
| | | | | | | SYSCTL_OUT() from blocking while locks are held. This should only be done when it would be inconvenient to make a temporary copy of the data and defer calling SYSCTL_OUT() until after the locks are released.
* Fix a bug introduced in previous commit. Due to the interaction of thejake2002-07-281-2/+2
| | | | | | direct physical mappings with virtual page colour, we need to flush the data cache when a page changes colour. I missed one case which broke pipes.
* o Lock page queue accesses by vm_page_free().alc2002-07-281-2/+8
|
* Revert the previous delta; uintfptr_t needs to be available tomike2002-07-281-0/+1
| | | | | | | | | userland for libc/gmon to compile, so the typedef in <machine/types.h> isn't good enough. This is really ugly since we end up with the actual value which uintfptr_t is typedef'd from, in multiple places. This is bug for bug compatible with the other FreeBSD architectures. Noticed by: sparc64 tinderbox
* Lock page queue accesses by vm_page_free().alc2002-07-281-0/+8
|
* Correct misindentation of DRA_UID.dd2002-07-281-1/+1
|
* o Lock page queue accesses by vm_page_free().alc2002-07-281-2/+3
| | | | | o Increment cnt.v_dfree inside vm_pageout_page_free() rather than at each call.
* o Lock page queue accesses by vm_page_free().alc2002-07-281-0/+2
|
* Unimplement panic(8) by making sure that we don't recurse into add2002-07-281-5/+11
| | | | | | | ruleset. If we do, that means there's a ruleset loop (10 includes 20 include 30 includes 10), which will quickly cause a double fault due to stack overflow (since "include" is implemented by recursion). (Previously, we only checked that X didn't include X.)
* Add declarations for btext and etext.jake2002-07-281-0/+3
|
* Unwind the syscall_with_err_pushed tweak that jake did some time back.peter2002-07-285-8/+48
| | | | OK'ed by: jake
* uintfptr_t has moved to machine/types.h.jake2002-07-271-1/+0
|
* o Require that the page queues lock is held on entry to vm_pageout_clean()alc2002-07-273-5/+9
| | | | | | and vm_pageout_flush(). o Acquire the page queues lock before calling vm_pageout_clean() or vm_pageout_flush().
* Make bn_name a const char * to quieten some warnings.dwmalone2002-07-271-1/+1
| | | | Approved by: bp (long ago)
* Make spxnames a const char * to quieten some warnings in netstat.dwmalone2002-07-271-1/+1
|
* If a socket is disconnected for some reason (like a TCP connectiondwmalone2002-07-272-0/+2
| | | | | | | | | | not responding) then drop any data on the outgoing queue in soisdisconnected because there is no way to get it to its destination any longer. The only objection to this patch I got on -net was from Terry, who wasn't sure that the condition in question could arise, so I provided some example code.
* Implement a direct mapped address region, like alpha and ia64. Thisjake2002-07-276-42/+182
| | | | | | | | | | | | | | | basically maps all of physical memory 1:1 to a range of virtual addresses outside of normal kva. The advantage of doing this instead of accessing phsyical addresses directly is that memory accesses will go through the data cache, and will participate in the normal cache coherency algorithm for invalidating lines in our own and in other cpus' data caches. So we don't have to flush the cache manually or send IPIs to do so on other cpus. Also, since the mappings never change, we don't have to flush them from the tlb manually. This makes pmap_copy_page and pmap_zero_page MP safe, allowing the idle zero proc to run outside of giant. Inspired by: ia64
* Fix location and name of if_an_pci.c in comment.fenner2002-07-271-1/+1
|
* Reserve VCACHEDLABEL vnode flag for use by the TrustedBSD MACrwatson2002-07-271-1/+1
| | | | | | | | | | | | implementation. This flag will indicate that the security label in the vnode is currently valid, and therefore doesn't need to be refreshed before an access control decision can be made. Most file systems (or stdvops) will set this flag after they load the MAC label from disk the first time to prevent redundant disk I/O; some file synthetic file systems (procfs, for example) may not. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Remote socheckproc(), which was removed when p_can*() was introducedrwatson2002-07-271-1/+0
| | | | | | | ages ago. The prototype was missed. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Slight whitespace cleanup. Whitespace sync to MAC tree.rwatson2002-07-271-2/+2
|
* Kernel options for Mandatory Access Control (MAC).rwatson2002-07-272-1/+14
| | | | | | | | MAC support will be merged into the main tree over the next week in reasonable size chunks; much more to follow. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Slight restructuring of the logic for credential change case identificationrwatson2002-07-271-2/+8
| | | | | | | | | during execve() to use a 'credential_changing' variable. This makes it easier to have outstanding patchsets against this code, as well as to add conditionally defined clauses. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Disable optimization of spinlocks on UP kernels w/o debugging for nowjhb2002-07-273-5/+5
| | | | | | | | since it breaks mtx_owned() on spin mutexes when used outside of mtx_assert(). Unfortunately we currently use it in the i386 MD code and in the sio(4) driver. Reported by: bde
* Whitespace nit in previous revision.jhb2002-07-271-1/+1
|
* Catch up to rev 1.339 of src/sys/conf/options (PCI_ENABLE_IO_MODES ismike2002-07-271-5/+0
| | | | now a sysctl and is enabled by default).
* Catch up to rev 1.339 of src/sys/conf/options (PCI_ENABLE_IO_MODES ismike2002-07-271-1/+0
| | | | now a sysctl and is enabled by default).
* Properly change the block_size on different CD media, and use thatsos2002-07-273-6/+15
| | | | | | to calculate the max amount of data in one IO request. Correct the max size on atapi floppies/tapes as well.
* Do not try and probe random PNP devices, This Is Bad.peter2002-07-271-23/+29
| | | | Display reasons why probe/attach fails.
* Make si_debug tunable.peter2002-07-271-0/+1
|
* o Lock page queue accesses by vm_page_activate().alc2002-07-271-0/+6
|
* o Lock page queue accesses by vm_page_activate() and vm_page_deactivate()alc2002-07-271-7/+6
| | | | | in vm_pageout_object_deactivate_pages(). o Apply some style fixes to vm_pageout_object_deactivate_pages().
* - The default for lock, unlock, and islocked is now std* instead of no*.jeff2002-07-271-3/+3
|
* - Explicitly state that specfs does not support locking by usingjeff2002-07-271-0/+3
| | | | | vop_no{lock,unlock,islocked}. This should be the only vnode opv that does so.
* o Lock page queue accesses by vm_page_activate() and vm_page_deactivate().alc2002-07-271-1/+2
|
* o Lock page queue accesses by vm_page_activate() and vm_page_deactivate().alc2002-07-271-0/+2
|
* Send a disassoc packet for a STA that we don't know about that claims toimp2002-07-262-17/+15
| | | | | | be associated with us. From millert@openbsd.org Obtained from: OpenBSD (I think)
OpenPOWER on IntegriCloud