summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Simplify the pager support in DDB. Allowing different db commands tojhb2006-07-1222-135/+90
| | | | | | | | | | | | | | | | install custom pager functions didn't actually happen in practice (they all just used the simple pager and passed in a local quit pointer). So, just hardcode the simple pager as the only pager and make it set a global db_pager_quit flag that db commands can check when the user hits 'q' (or a suitable variant) at the pager prompt. Also, now that it's easy to do so, enable paging by default for all ddb commands. Any command that wishes to honor the quit flag can do so by checking db_pager_quit. Note that the pager can also be effectively disabled by setting $lines to 0. Other fixes: - 'show idt' on i386 and pc98 now actually checks the quit flag and terminates early. - 'show intr' now actually checks the quit flag and terminates early.
* Use the already stored VIA RNG probe informationmr2006-07-121-13/+4
| | | | | | instead of probing again. MFC after: 1 week
* Add vnode interlocking to devfs.ups2006-07-121-16/+33
| | | | | | | This prevents race conditions that can cause pagefaults or devfs to use arbitrary vnodes. MFC after: 1 week
* Initialise (if necessary) the VIA C3/C7 features.mr2006-07-122-0/+85
| | | | | | | Store the capabilities for further use by random(4), padlock(4), ... Obtained from: mostly OpenBSD MFC after: 1 week
* o Sort sx(9) MLINKS.maxim2006-07-121-2/+2
|
* When securelevel is >= 1, /dev/io may not be opened at all (not just forkeramida2006-07-121-3/+4
| | | | | | | write). Update the securelevel description to match this. Reported by: Alexandros Kosiaris <akosiaris@gmail.com> MFC after: 3 days
* fix typo in identcpu.c and add one define to specialreg.h.mr2006-07-122-2/+5
| | | | MFC after: 1 week
* Teach mount(8) about a 'late' keyword, which means the file system shoulddes2006-07-124-7/+76
| | | | | | | | | | | | | | | | | | not be mounted unless the -l flag was specified. Add an rc script, mountlate, which basically runs 'mount -a -l'. It runs after DAEMON but before LOGIN. This is useful for things like loopback mounts, because mountcritremote runs before mountd / nfsd (since /usr might be a remote file system), so an attempt to mount a loopback network file system in mountcritremote will fail. Also add a progress message to mountcritlocal, for the sake of symmetry with similar messages in mountcritremote and mountlate. Reviewed by: freebsd-rc MFC after: 3 weeks
* Correct path to the firmware ports.brueffer2006-07-122-2/+2
|
* Only check if we're freeing a valid object if we hold the topology lock.pjd2006-07-121-4/+7
| | | | This prevents panic under heavy load with DIAGNOSTIC compiled in.
* Document sx_xlocked(9).pjd2006-07-122-1/+9
| | | | Submitted by: ssouhlal
* forgot to add MFC, since its used on -stable and compile-tested on -current.mr2006-07-120-0/+0
| | | | MFC after: 1 week
* First step to identify and initialize the newer VIA C7 CPUmr2006-07-122-8/+52
| | | | | | as found in a VIA EPIA EN-15000 board. Obtained from: large parts from OpenBSD
* o Add missed comma, xref kld(4).maxim2006-07-121-2/+3
|
* o Fix some printf(3) format nits in my patch I submitted to kib@.maxim2006-07-121-2/+2
| | | | Submitted by: ru
* Remove slipped in spaces.kib2006-07-121-3/+3
| | | | | Pointed out by: maxim Approved by: pjd (mentor)
* Check that the signal number is in range.kib2006-07-121-1/+4
| | | | | | Submitted by: maxim MFC after: 1 week Approved by: pjd (mentor)
* Use proper format specifier for pointers in debug printfs (turned offkib2006-07-121-8/+11
| | | | | | | by default). Approved by: pjd (mentor) MFC after: 2 weeks
* Always supply curthread as argument to nfs_asyncio and nfs_doiokib2006-07-121-8/+2
| | | | | | | | | in nfs_strategy. Otherwise, for some buffers, signals would be ignored at the intr mounts. Reviewed by: mohan, cel MFC after: 1 month Approved by: pjd (mentor)
* Check that the signal number is in range.kib2006-07-121-1/+4
| | | | | | Submitted by: Michiel Boland <michiel boland org> MFC after: 1 week Approved by: pjd (mentor)
* Fix config page writes to not strip out the attributes when youmjacob2006-07-125-38/+147
| | | | | | | | | | | | | actually go write the config page. This fixes the long standing problem about updating NVRAM on Fibre Channel cards and seems so far to not break SPI config page writes. Put back role setting into mpt. That is, you can set a desired role for mpt as a hint. On the next reboot, it'll pick that up and redo the NVRAM settings appropriately and warn you that this won't take effect until the next reboot. This saves people the step of having to find a BIOS utilities disk to set target and/or initiator role for the MPT cards.
* Use newkg to check if SCHED_OTHER is already inherited.davidxu2006-07-121-2/+1
|
* Move debug printfs under the proper macro.njl2006-07-121-3/+3
|
* Use kernel facilities to support real-time scheduling.davidxu2006-07-127-124/+103
|
* Add two new CPUID bits for AMD CPUs, i. e., SVM and extended APIC register.jkim2006-07-124-4/+8
|
* Return priority range 0..PRI_MAX_TIMESHARE-PRI_MIN_TIMESHARE fordavidxu2006-07-122-4/+4
| | | | | | | SCHED_OTHER, the same range as rtprio() is using. In old code, it returns nice range -20 .. 20, nice should be treated as process weight, it is really managed by getpriority() and setpriority() syscalls, they are different.
* __error could be called too early before libthr is initialized, testdavidxu2006-07-121-5/+7
| | | | this case and return global varible errno instead.
* Assume floppy disk is not inserted when we have exhausted retries. Thisjkim2006-07-121-0/+3
| | | | | | | | | | significantly reduces booting time when there is broken floppy disk drive, controller, cable, BIOS, etc. When the floppy controller interface is correctly implemented, disk change signal (DSKCHG) is reflected in the Digital Input Register (DIR) at 0x3f7. However, there are many cases that the signal is unusable. Moreover, some BIOS does not reserve the port at all. In those cases, the register may not function.
* Comment out the mapping of the OHCI controller registers va == pa. Thiscognet2006-07-121-0/+2
| | | | | | address is in the userland address space. The proper thing is either to choose a virtual address in the kernel address space beyond the KVA, or to use pmap_mapdev().
* Several protocol switch functions (pru_abort, pru_detach, pru_sosetlabel)rwatson2006-07-115-53/+4
| | | | | | return void, so don't implement no-op versions of these functions. Instead, consistently check if those switch pointers are NULL before invoking them.
* When pru_attach() fails, call sodealloc() on the socket rather thanrwatson2006-07-111-4/+1
| | | | | | using sorele() and the full tear-down path. Since protocol state allocation failed, this is not required (and is arguably undesirable). This matches the behavior of sonewconn() under the same circumstances.
* Reduce periods of simultaneous acquisition of various socket bufferrwatson2006-07-111-20/+28
| | | | | | | | | | locks and the unplock during uipc_rcvd() and uipc_send() by caching certain values from one structure while its locks are held, and applying them to a second structure while its locks are held. If done carefully, this should be correct, and will reduce the amount of work done with the global unp lock held. Tested by: kris (earlier version)
* Regen.jhb2006-07-1118-29/+29
|
* - Add conditional VFS Giant locking to getdents_common() (linux ABIs),jhb2006-07-1110-33/+63
| | | | | | | | ibcs2_getdents(), ibcs2_read(), ogetdirentries(), svr4_sys_getdents(), and svr4_sys_getdents64() similar to that in getdirentries(). - Mark ibcs2_getdents(), ibcs2_read(), linux_getdents(), linux_getdents64(), linux_readdir(), ogetdirentries(), svr4_sys_getdents(), and svr4_sys_getdents64() MPSAFE.
* The ufs_lookup.c has a critical bug around the whiteoutdaichi2006-07-111-2/+10
| | | | | | | | | | | | | | process. UFS must check a whiteout name when it uses the whiteout, but the current implementation does not check the whileout name, so sometimes UFS writes over a wrong whtieout. UFS *MUST* check the whiteout name to use a corrent whiteout. This bug leads unionfs. panic. This commit fixes this trouble. Submitted by: Masanori Ozawa <ozawa@ongs.co.jp> (unionfs developer) Reviewed by: tegge & rodrigc (mentor) Approved by: rodrigc (mentor) MFC after: 2 weeks
* Gah. Replace another instance of "Developer's Handbook" withjoel2006-07-111-1/+1
| | | | "Architecture Handbook".
* Add a new flag to pmap_enter_locked() to say if it's OK to wait. If it is, andcognet2006-07-111-10/+22
| | | | | | | | | we're unable to allocate the memory for a PTE, we'll wait until we can. If not, we'll just return. Use M_NOWAIT|M_USE_RESERVE to allocate PTEs, it is less aggressive than M_NOWAIT alone. Suggested by: alc
* Don't forget to check invalid policy!davidxu2006-07-111-7/+9
|
* Oops, remove debugger line.davidxu2006-07-112-4/+0
|
* Extended the POSIX scheduler APIs to accept lwpid as well, we've alreadydavidxu2006-07-116-130/+196
| | | | | | done this in ptrace syscall, when a pid is large than PID_MAX, the syscall will search a thread in current process. It permits 1:1 thread library to get and set a thread's scheduler attributes.
* Remove pre-commit review on mpt.mjacob2006-07-111-1/+0
|
* For SCHED_OTHER, we always inherit current thread's interactive prioritydavidxu2006-07-111-6/+10
| | | | | | unless current thread is realtime thread, in such case, we set a new zero priority for it, notice we don't have per-thread nice, the priority passed by userland is ignored here.
* Add POSIX scheduler parameters support to thr_new syscall, this permitsdavidxu2006-07-112-5/+66
| | | | privileged process to create realtime thread.
* Create thread in separated ksegrp, so they always get correct user leveldavidxu2006-07-101-75/+11
| | | | priority.
* Put in some missing target mode for 2KLOGIN f/w spots.mjacob2006-07-101-10/+24
| | | | MFC after: 1 month
* Clean up the ioctl to not process nonsense on SCSI isp cards.mjacob2006-07-101-40/+44
| | | | MFC after: 1 month
* - Split out kern_accept(), kern_getpeername(), and kern_getsockname() forjhb2006-07-105-511/+245
| | | | | | | | | | | | | | | | | | | | use by ABI emulators. - Alter the interface of kern_recvit() somewhat. Specifically, go ahead and hard code UIO_USERSPACE in the uio as that's what all the callers specify. In place, add a new uioseg to indicate what type of pointer is in mp->msg_name. Previously it was always a userland address, but ABI emulators may pass in kernel-side sockaddrs. Also, remove the namelenp field and instead require the two places that used it to explicitly copy mp->msg_namelen out to userland. - Use the patched kern_recvit() to replace svr4_recvit() and the stock kern_sendit() to replace svr4_sendit(). - Use kern_bind() instead of stackgap use in ti_bind(). - Use kern_getpeername() and kern_getsockname() instead of stackgap in svr4_stream_ti_ioctl(). - Use kern_connect() instead of stackgap in svr4_do_putmsg(). - Use kern_getpeername() and kern_accept() instead of stackgap in svr4_do_getmsg(). - Retire the stackgap from SVR4 compat as it is no longer used.
* Use proper defines instead of magic values.pjd2006-07-102-4/+4
| | | | MFC after: 1 week
* The TrustedBSD MAC Framework is documented in the Architecture handbook,joel2006-07-101-3/+3
| | | | | | not in the Developers handbook. Submitted by: Samy Al Bahra
* Unexpand PTRIN() in several places and fix one instance where 0 was beingjhb2006-07-101-13/+13
| | | | used instead of NULL.
OpenPOWER on IntegriCloud