summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Add a bandaid so that sysctl kern.malloc works on sparc64.jake2002-05-201-1/+1
|
* In uma_zalloc_arg(), if we are performing a M_WAITOK allocation, ensurejhb2002-05-201-0/+7
| | | | | | | that td_intr_nesting_level is 0 (like malloc() does). Since malloc() calls uma we can probably remove the check in malloc() for this now. Also, perform an extra witness check in that case to make sure we don't hold any locks when performing a M_WAITOK allocation.
* - Allow witness_sleep() to be called when witness hasn't been initializedjhb2002-05-201-16/+8
| | | | | | | | | | | yet. We just return without performing any checks. - Don't explicitly enter and exit critical sections when walking lock lists. We don't need a critical section to walk the list of sleep locks for a thread. We check to see if a spin lock list is empty before we walk it. If the list is empty we don't need to walk it. If it isn't then we already hold at least one spin lock and are already in a critical section and thus don't need our own explicit critical section.
* Fix the td_intr_nesting_level check to work ok if a flag like M_ZERO isjhb2002-05-201-3/+1
| | | | passed in with M_WAITOK to malloc().
* Subtle fix to the accept filter LRU code. In some cases, a newlysilby2002-05-202-2/+2
| | | | | | | | | | initialized socket with no qlimit was being passed in. In order to handle this case properly, we must not use >= when comparing queue sizes to qlimit. As a result of this improper handling, a panic could result in certain cases. PR: 38325 MFC after: 3 days
* Add SMP aware cache flushing functions, which operate on a single physicaljake2002-05-207-17/+327
| | | | | page. These send IPIs if necessary in order to keep the caches in sync on all cpus.
* Forward declare struct trapframe.jake2002-05-201-0/+2
|
* Forward declare struct thread.jake2002-05-201-0/+2
|
* De-inline the tlb demap functions. These were so big that gcc3.1 refusedjake2002-05-203-100/+144
| | | | to inline them anyway. ;)
* Change two vput() that should have been vrele().mux2002-05-202-4/+4
| | | | Submitted by: iedowse
* Regen after changing Device ID string for DaisyTech devices.sobomax2002-05-202-4/+4
| | | | MFC after: 1 week
* Change Device ID string for DaisyTech devices.sobomax2002-05-201-1/+1
| | | | | Submitted by: Olexander Kunytsa <kunia@istc.kiev.ua> MFC after: 1 week
* Don't grab Giant around malloc(9) and free(9).phk2002-05-204-59/+44
| | | | | | | | Don't grab Giant around wakeup(9). Don't print verbose messages about each device found in geom_dev. Various cleanups. Sponsored by: DARPA & NAI Labs.
* Flesh-out ptrace support. This obviously needs more work.marcel2002-05-202-14/+96
|
* Lock down a socket, milestone 1.tanimura2002-05-2062-503/+1712
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Add a mutex (sb_mtx) to struct sockbuf. This protects the data in a socket buffer. The mutex in the receive buffer also protects the data in struct socket. o Determine the lock strategy for each members in struct socket. o Lock down the following members: - so_count - so_options - so_linger - so_state o Remove *_locked() socket APIs. Make the following socket APIs touching the members above now require a locked socket: - sodisconnect() - soisconnected() - soisconnecting() - soisdisconnected() - soisdisconnecting() - sofree() - soref() - sorele() - sorwakeup() - sotryfree() - sowakeup() - sowwakeup() Reviewed by: alfred
* Off-by-128 error in the cuam* device node numbers.rwatson2002-05-202-2/+2
|
* Bump the rc driver a little bit closer to the 21st century: userwatson2002-05-202-0/+12
| | | | | | | make_dev() to create device nodes for each of the serial port channels (ttym%d and cuam%d respectively, as borrowed from MAKEDEV). This allows the rc driver to work in 5.0. I've tested it with only one card, but will try sticking in a second card tomorrow and see what happens.
* MD ficl files for sparc64.jake2002-05-192-0/+513
|
* Fix a kernel page fault when accessing user memory. We weremarcel2002-05-191-57/+38
| | | | | | | | | | combining too much conditions and as such ended up with the kernel map instead of the corresponding process map. While here, remove code to allow access to the stackgap and restyle slightly to improve readability. This fix specifically fixes the procfs failure we're having when reading the process map (cat /proc/curproc/map)
* Add a Quirk entry for the USB SimpleTech UCF-100 compact flash reader.dillon2002-05-191-0/+7
| | | | | Note that even with the quirk entry the reader typically only works if the USB device is recognized by UHCI instead of the generic OHCI driver.
* It's time to build modules by default.marcel2002-05-191-3/+0
|
* Simplify IA64_CMPXCHG to avoid having braced-groups in expressions.marcel2002-05-191-20/+22
| | | | | | | | | As a minor positive side-effect, code at -O0 is more optimal. As a minor negative side-effect, certain boundary cases yield no better code than non-boundary cases. For example, atomic_set_acq_32(p, 0) does a useless logical OR with value 0. This was previously elimina- ted as part of if/while optimizations. Non-boundary cases yield identical code at -O1 and -O2.
* o Fix race condition caused by doing ptrace() for permissionmarcel2002-05-191-24/+44
| | | | | | | | | | | checking, followed by a lookup of the process. Do not call ptrace() for permission checking, but do it inline. Spotted by: rwatson o While here, copy-in arguments before we lock. This fixes a possible permanent lock. Reviewed by: rwatson
* Generalize a bit: we don't need separate functions to find the i386 andphk2002-05-191-33/+9
| | | | | | alpha disklabels, just one function which is told where to look. Sponsored by: DARPA & NAI Labs.
* Include needed #include for regression tests.phk2002-05-191-2/+1
| | | | Sponsored by: DARPA & NAI Labs.
* Terminate ACPI subsystem on reboot.iwasaki2002-05-191-0/+3
| | | | Some machines stuck on reboot if ACPI sleep/wakeup was executed.
* MFi386: revision 1.400.nyan2002-05-191-0/+1
|
* Remove unneeded entries.nyan2002-05-192-31/+0
|
* Make this more FreeBSD-ish.benno2002-05-192-674/+826
| | | | Requested by: jhb
* Make this compile with gcc-3.1, which objects to the multi-line string.peter2002-05-192-128/+128
|
* Try and solve some cases of labels at end of compound statements that gccpeter2002-05-192-10/+7
| | | | now objects to (as it should, it is not legal C).
* Brutally deal with __func__ being 'const char *' on gcc-3.1.peter2002-05-1914-64/+64
|
* Add record definition for memory checks.marcel2002-05-191-0/+39
|
* Catch another C++ commentpeter2002-05-191-1/+1
|
* o Remove namespace pollution from param.h:marcel2002-05-1920-27/+53
| | | | | | | | | | | - Don't include ia64_cpu.h and cpu.h - Guard definitions by _NO_NAMESPACE_POLLUTION - Move definition of KERNBASE to vmparam.h o Move definitions of IA64_RR_{BASE|MASK} to vmparam.h o Move definitions of IA64_PHYS_TO_RR{6|7} to vmparam.h o While here, remove some left-over Alpha references.
* o Move prototypes for restorectx and savectx from cpu.h to pcb.h,marcel2002-05-192-4/+6
| | | | o Remove Alpha specific contents of struct md_coredump.
* - Do a quick style pass.benno2002-05-192-264/+144
| | | | | - Correct the implementation of fix_unaligned to use a thread, not a proc. - GC some #if 0'd stuff.
* Add the PSL_VEC flag for AltiVec (no, it's not here yet =))benno2002-05-191-2/+3
|
* Remove asr from the ia64 build. Its use of KERNBASE appears i386marcel2002-05-191-1/+0
| | | | | specific by way of which headers are being included (and headers not included).
* Remove option ACPI_DEBUG. It causes compile failures in themarcel2002-05-191-1/+0
| | | | function tracing bits due to __func__ being declared as const.
* Cast dumpsize to long long to match printf format.marcel2002-05-191-1/+2
|
* Remove CWARNFLAGS and add GCC3. We handle GCC3.x specific flagsmarcel2002-05-191-4/+1
| | | | | centrally now that we have GCC3 in the tree. The GCC3 variable is a helper during the switch.
* An almost mechanical sweep to replace C++ style comments with Cmarcel2002-05-1916-614/+485
| | | | | style comments. This is not an attempt to conform to style(9). Such has lower priority.
* All signals can be sent to the inferior process when it's restarted,marcel2002-05-191-1/+1
| | | | | | | not just the legacy ones. PR: 33299 Submitted by: Alexander N. Kabaev <ak03@gte.com>
* Hook up the new linux_ptrace implementation.marcel2002-05-193-2/+2
| | | | | PR: 33299 Submitted by: Alexander N. Kabaev <ak03@gte.com>
* Regen (linux_ptrace)marcel2002-05-193-5/+8
| | | | PR: 33299
* Sparkling new implementation of linux_ptrace. Slight tweaking bymarcel2002-05-192-1/+509
| | | | | | | yours truly. PR: 33299 Submitted by: Alexander N. Kabaev <ak03@gte.com>
* Change p_can{debug,see,sched,signal}()'s first argument to be a threadjhb2002-05-1920-108/+116
| | | | | | | pointer instead of a proc pointer and require the process pointed to by the second argument to be locked. We now use the thread ucred reference for the credential checks in p_can*() as a result. p_canfoo() should now no longer need Giant.
* Remove IFS from 5.0-CURRENT. This facilitates introducing UFS2 asrwatson2002-05-199-1375/+0
| | | | | | | IFS had its fingers deep in the belly of the UFS/FFS split. IFS will be reimplemented by the maintainer at a later date. Requested by: adrian (maintainer)
* Now that daddr_t has grown up, use %lld to printf it and cast it to longjhb2002-05-181-1/+3
| | | | long.
OpenPOWER on IntegriCloud