summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* MFp4:marcel2002-11-242-3/+38
| | | | | | | | | | Add function map_port_space() to map the memory mapped I/O port range as uncacheable virtual memory and call it prior to probing for a console. This removes the dependency on the loader to have done this for us. Note that this change does not include doing the same for APs. Approved by: re (blanket)
* Fix comparison that caused a 1-off bug. This appeared harmless formarcel2002-11-241-1/+1
| | | | | | | | the kernel itself, but SAL on Itanium2 machines spontaneously rebooted the machine. Approved by: re (blanket) Submitted by: Arun Sharma <adsharma@unix-os.sc.intel.com>
* Add ITANIUM2 as a global option.marcel2002-11-241-0/+1
|
* MFp4:marcel2002-11-242-10/+48
| | | | | | | | | o Show the contents of the AP wakeup descriptor when dumping SAL information. o Increase S/N ratio when listing the itr and dtr. Only show valid mappings and give the total number of TRs. Approved by: re (blanket)
* Extend the scope of the page queues/fields locking in vm_freeze_copyopts()alc2002-11-241-1/+3
| | | | | | to cover pmap_remove_all(). Approved by: re
* Add `if (!cold)' checkings for functions which is called via SYSINIT.iwasaki2002-11-243-7/+19
| | | | | | | Loading acpi.ko with kldload is disallowed, however some functions were executed unexpectedly. Approved by: re
* Whitespace cleanup that was missed by quirks commit 1.114njl2002-11-231-4/+4
|
* Remove a comple of bogus debug printfs that snuck in during someimp2002-11-232-5/+2
| | | | | | | debugging I was doing 3 months ago :-(. Noticed by: scottl Aproved by: the re blanket (different than the security blanket).
* Allow acd(4) and cd(4) to support old behavior for CDRIOC*SPEED ioctls.njl2002-11-232-2/+21
| | | | | | | | | | If the value from the user is less than 177, assume it is a multiple of a single speed CDROM and convert to KB/sec. No complaints from: sos Reviewed by: ken Approved by: re MFC after: 1 day
* Update quirks, adding PR references and fixing a capitalization mismatch.njl2002-11-231-3/+5
| | | | | PR: kern/45494 Approved by: re
* Hold the page queues/flags lock when calling vm_page_set_validclean().alc2002-11-233-2/+10
| | | | Approved by: re
* Assert that the page queues lock rather than Giant is held inalc2002-11-231-2/+3
| | | | | | vm_pageout_page_free(). Approved by: re
* - Assert that the page queues lock is held in pmap_remove_all().alc2002-11-232-20/+8
| | | | | | | - Fix a diagnostic message and comment in pmap_remove_all(). - Eliminate excessive white space from pmap_remove_all(). Approved by: re
* Add page queue and flag locking in vnode_pager_setsize().alc2002-11-231-0/+2
| | | | Approved by: re
* Under certain circumstances, we were calling kmem_free() frommux2002-11-2210-18/+66
| | | | | | | | | | i386 cpu_thread_exit(). This resulted in a panic with WITNESS since we need to hold Giant to call kmem_free(), and we weren't helding it anymore in cpu_thread_exit(). We now do this from a new MD function, cpu_thread_dtor(), called by thread_dtor(). Approved by: re@ Suggested by: jhb
* New SCSI target emulator codenjl2002-11-223-2104/+923
| | | | | | | | | | | | | | | | | | | | | This code allows a user program to enable target mode on a SIM and then emulate any number of devices (disks, tape drives, etc.) All decisions about device behavior (UA, CA, inquiry response) are left to the usermode program and the kernel driver is merely a conduit for CCBs. This enables multiple concurrent target emulators, each using its own backing store and IO model. Also included is a user program that emulates a disk (RBC) using a file as a backing store. This provides functionality similar to md(4) at the CAM layer. Code has been tested on ahc(4) and should also work on isp(4) (and other SIMs that gain target mode support). It is a complete rewrite of /sys/cam/scsi_target* and /usr/share/examples/scsi_target. Design, comments from: gibbs Supported by: Cryptography Research Approved by: re
* The new "all sound drivers" driver name is snd_driver. Loader.conf didn'tdcs2002-11-221-1/+1
| | | | | | knew about it, though. Now it does. MFC after: 2 weeks
* According to the ACPI spec, the bus number of the child PCI bus of a hostjhb2002-11-221-7/+52
| | | | | | | | | | | | | | | | | | | | | | to PCI bridge can be read be evaluating the _BBN method of the host to PCI device. Unfortunately, there appear to be some lazy/ignorant/moronic/ whatever BIOS writers that return 0 for _BBN for all host to PCI bridges in the system. On a system with a single host to PCI bridge this is not a problem as the child bus of that single bridge will be bus 0 anyway. However, on systems with multiple host to PCI bridges and l/i/m/w BIOS writers this is a major problem resulting in all but the first host to PCI bridge failing to attach. So, this adds a workaround. If the _BBN of a host to PCI bridge is zero and pcib0 already exists and is not us, the we use _ADR to look up our PCI function and slot (we currently assume we are on bus 0) and use that to call host_pcib_get_busno() to try and extract our bus number from config registers on the host to PCI bridge device. If that fails, then we make an evil assumption that ACPI's _SB_ namespace lays out the host to PCI bridges in ascending order and use our pcib unit number as our bus number. Approved by: re
* Add a function host_pcib_get_bnsno() that attempts to determine the busjhb2002-11-222-0/+85
| | | | | | | number of the child bus of a host to PCI bridge by reading from proprietary configuration registers in the host to PCI bridge devices. Approved by: re
* *sigh*. It seems that in the ACPICA code, Intel defines its own APIC_IOjhb2002-11-212-2/+2
| | | | | | | | | | macro for use when parsing MADT tables, thus we always tried to set the interrupt model to APIC. This proved to be harmful on UP machines with IO APIC's (or for UP kernels on SMP machines) since the wrong interrupt routing information would be returned. Pointy hat to: jhb Approved by: re (rwatson)
* Added support for DELL Perc4/DI.emoore2002-11-211-1/+4
| | | | | | Reviewed by: ps Approved by: jhb MFC after: 5 days
* Hook the RAIDFrame module up to the buildscottl2002-11-211-0/+1
| | | | Approved by: re
* - Add the new sched_pctcpu() function to the sched_* api.jeff2002-11-213-1/+12
| | | | | | | | - Provide a routine in sched_4bsd to add this functionality. - Use sched_pctcpu() in kern_proc, which is the one place outside of sched_4bsd where the old pctcpu value was accessed directly. Approved by: re
* - Add an event that is triggered when the system is low on memory. This isjeff2002-11-212-1/+13
| | | | | | | | | intended to be used by significant memory consumers so that they may drain some of their caches. Inspired by: phk Approved by: re Tested on: x86, alpha
* - Move scheduler specific macros and defines out of proc.hjeff2002-11-212-12/+10
| | | | Approved by: re
* - Move FSCALE back to kern_sync. This is not scheduler specific.jeff2002-11-212-5/+15
| | | | | | | - Create a new callout for lbolt and move it out of schedcpu(). This is not scheduler specific either. Approved by: re
* Fix make buildkernel.imp2002-11-217-12/+12
| | | | | | | | | | | | These makefiles work when building in the sys/modules directory, but not with the objdir stuff that buildkernel uses. This is because they used -I../../../blah rather than -I${.CURDIR}/../../../blah. # I didn't fix the abuse of CFLAGS to specify -g since I wanted the # barest minimal change since we're in a code freeze. Approved by: make buildkernel... Hat for armchair anarchists: core member fixing src tree damage
* - Implement a mechanism for allowing schedulers to place scheduler dependantjeff2002-11-217-47/+118
| | | | | | | | | data in the scheduler independant structures (proc, ksegrp, kse, thread). - Implement unused stubs for this mechanism in sched_4bsd. Approved by: re Reviewed by: luigi, trb Tested on: x86, alpha
* Make the bluetooth modulesjulian2002-11-211-0/+5
| | | | Approved by: re
* The second try a committing the bluetooth codejulian2002-11-2058-0/+26264
| | | | | | | | | | | | | | | | Has been seen to work on several cards and communicating with several mobile phones to use them as modems etc. We are still talking with 3com to try get them to allow us to include the firmware for their pccard in the driver but the driver is here.. In the mean time it can be downloaded from the 3com website and loaded using the utility bt3cfw(8) (supplied) (instructions in the man page) Not yet linked to the build Submitted by: Maksim Yevmenkin <myevmenk@exodus.net> Approved by: re
* Remember to update the providers idea of its size when we reconfigurephk2002-11-201-0/+1
| | | | | | a slice child. Approved by: re
* Move fw_one_pass from ip_fw2.c to ip_input.c so that neitherluigi2002-11-203-2/+2
| | | | | | | | | bridge.c nor if_ethersubr.c depend on IPFIREWALL. Restore the use of fw_one_pass in if_ethersubr.c ipfw.8 will be updated with a separate commit. Approved by: re
* Back out some style changes. They are not urgent,luigi2002-11-205-97/+130
| | | | | | | I will put them back in after 5.0 is out. Requested by: sam Approved by: re
* Back out the ip_fragment() code -- it is not urgent to have it in now,luigi2002-11-202-170/+143
| | | | | | | I will put it back in in a better form after 5.0 is out. Requested by: sam, rwatson, luigi (on second thought) Approved by: re
* Do not call the dumpconf method unless there is one.phk2002-11-201-4/+5
| | | | | | | Compare pointers with NULL. Partially submitted by: Christian Carstensen <cc@gate5.de> Approved by: re
* Introduce p_label, extensible security label storage for the MAC frameworkrwatson2002-11-2016-9/+245
| | | | | | | | | | | | | | | | | | | in struct proc. While the process label is actually stored in the struct ucred pointed to by p_ucred, there is a need for transient storage that may be used when asynchronous (deferred) updates need to be performed on the "real" label for locking reasons. Unlike other label storage, this label has no locking semantics, relying on policies to provide their own protection for the label contents, meaning that a policy leaf mutex may be used, avoiding lock order issues. This permits policies that act based on historical process behavior (such as audit policies, the MAC Framework port of LOMAC, etc) can update process properties even when many existing locks are held without violating the lock order. No currently committed policies implement use of this label storage. Approved by: re Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* reapply 1.26 through 1.28.alfred2002-11-201-18/+6
| | | | Approved by: re
* Fix compile in the case of SMP defined but DDB not defined.jhb2002-11-201-1/+7
| | | | Approved by: re (implicit, DP2 doesn't build w/o this)
* forgot about 5.x freeze, backout 1.26 through 1.28 pending re@ appoval.alfred2002-11-201-6/+18
|
* remove useless casts, unused macros and cleanup a line wrap.alfred2002-11-201-9/+3
|
* comment and untwist error return logicalfred2002-11-201-4/+3
|
* Remove an outdated comment complaining about exporting struct ucredalfred2002-11-201-5/+0
| | | | to userspace, I fixed it a while ago.
* The target for the maximum number of dependencies has been cutmckusick2002-11-201-1/+1
| | | | | | | | | in half because of reports that under heavy load the kernel could exhaust its memory pool. The limit is now (desiredvnodes * 4) rather than (desiredvnodes * 8), so it will still scale with larger systems, just not as quickly. Sponsored by: DARPA & NAI Labs.
* If an error occurs while writing a buffer, then the data willmckusick2002-11-201-0/+6
| | | | | | | | | | not have hit the disk and the dependencies cannot be unrolled. In this case, the system will mark the buffer as dirty again so that the write can be retried in the future. When the write succeeds or the system gives up on the buffer and marks it as invalid (B_INVAL), the dependencies will be cleared. Sponsored by: DARPA & NAI Labs.
* Merge kld access control checks from the MAC tree: these access controlrwatson2002-11-1916-0/+488
| | | | | | | | | | | checks permit policy modules to augment the system policy for permitting kld operations. This permits policies to limit access to kld operations based on credential (and other) properties, as well as to perform checks on the kld being loaded (integrity, etc). Approved by: re Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Add a sysctl to control the generation of source quench packets,silby2002-11-191-2/+20
| | | | | | | | and set it to 0 by default. Partially obtained from: NetBSD Suggested by: David Gilbert MFC after: 5 days
* correct function declarations of stubs used for building w/o device bpfsam2002-11-191-4/+4
|
* We leaked a process lock reference in the event an RFTHREAD processrwatson2002-11-181-1/+2
| | | | | | | leader wasn't exiting during a fork; instead, do remember to release the lock avoiding lock order reversals and recursion panic. Reported by: "Joel M. Baldwin" <qumqats@outel.org>
* Make sure only update wall clock at upcall time, slightly reformatdavidxu2002-11-182-26/+26
| | | | code in kse_relase().
* - Wakeup the correct address when a zone is no longer full.jeff2002-11-181-1/+1
| | | | Spotted by: jake
OpenPOWER on IntegriCloud