summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Add an inline to call eieio.benno2002-06-291-0/+7
| | | | ("Enforce In-order Execution of I/O". I am not making this up.)
* We don't need to clear RI in the MSR when entering a critical section.benno2002-06-291-1/+1
|
* Add in_cksum.cbenno2002-06-291-0/+1
|
* in_cksum et al.benno2002-06-292-0/+330
| | | | Submitted by: Peter Grehan <peterg@ptree32.com.au>
* Implement vtophys()benno2002-06-291-0/+2
|
* Add pmap_mapdev and pmap_unmapdev.benno2002-06-294-0/+131
|
* - Initialise battable to cover I/O spaces.benno2002-06-293-60/+168
| | | | | | | | | - Statically size the bpvo entries to avoid conflicts between bpvo allocation and the vm allocator. - Shift pmap_init2 code into pmap_init. - Add UMA_ZONE_VM flag to uma_zcreate. Submitted by: Peter Grehan <peterg@ptree32.com.au>
* To quote Peter:benno2002-06-294-31/+46
| | | | | | | | | | | | | | | | The case in cpu_switch() where there isn't a higher priority thread (choosethread() == curthread) uses r4 as the PCB context pointer. However, the use of r4 after the label L2 is incorrect, since it was probably trashed by the call to choosethread, and in any case was set up to curthread at the start of the routine. This condition will occur when an interrupt thread schedules a netisr, which is a lower priority thread. Another (probably unnecessary) difference is that I was paranoid about register trashing, so I decided to save r2 and r13 as well. Submitted by: Peter Grehan <peterg@ptree32.com.au>
* mempcy/bcopy handles overlapping copies so make ovbcopy call it.benno2002-06-291-0/+7
|
* Add BOOTP_NFSROOT support code.benno2002-06-291-0/+17
|
* - Use tmpstk exclusively in the init path.benno2002-06-293-558/+0
| | | | | | - Remove redundant code. Submitted by: Peter Grehan <peterg@ptree32.com.au>
* Many fixes to low-level trap and interrupt handling:benno2002-06-2910-512/+303
| | | | | | | | | - Tidy up clock code. Don't repeatedly call hardclock(). - Remove intrnames, decrnest and intrcnt from locore.s - Coalesce all trap handling into a single stub that then calls a dispatch function. Submitted by: Peter Grehan <peterg@ptree32.com.au>
* Convert this from mostly inline assembler to mostly C.benno2002-06-292-114/+50
| | | | Submitted by: Peter Grehan <peterg@ptree32.com.au>
* Don't use the static thread.. it is going away.julian2002-06-291-2/+2
|
* remove cruftjulian2002-06-291-8/+0
|
* Add files that are new for KSE.julian2002-06-297-5/+1780
|
* Fix a deletion during traversal tailq bug.jake2002-06-291-1/+2
|
* Rename the db command lockedvnodes to lockedvnods so that it fits on theobrien2002-06-291-1/+1
| | | | help screen and one doens't think we have a lockedvnodesmap command.
* Do NOT enable ATA_STATIC_ID -- cmd646 controller will be !ata2!,obrien2002-06-291-1/+3
| | | | | | | | and you will not mount an ATA /: mountroot> ufs:/ad0a Mounting root from ufs:/ad0a setrootbyname failed ffs_mountroot: can't find rootvp
* Remove a couple of __P() stragglers.peter2002-06-299-21/+21
|
* more caddr_t removal.alfred2002-06-299-35/+26
|
* Add another Intel chipset (i82562).silby2002-06-291-0/+1
| | | | | | PR: 39974 Submitted by: Morten Aaboe Jensen <morten@codemonkey.dk> MFC after: 1 day
* More caddr_t removal, make fo_ioctl take a void * instead of a caddr_t.alfred2002-06-2912-71/+66
|
* catch up with mextadd callback taking a void argument instead of a caddr_t.alfred2002-06-295-8/+8
|
* catch up with ext_free prototype change.alfred2002-06-293-6/+6
|
* More caddr_t removal.alfred2002-06-298-32/+32
| | | | Change struct knote's kn_hook from caddr_t to void *.
* nuke more instances of caddr_talfred2002-06-291-23/+19
|
* m_extadd takes a void (*freef)(void *, void *) now, not aalfred2002-06-291-1/+1
| | | | void (*freef)(caddr_t, void *).
* remove or replace caddr_t with void.alfred2002-06-283-36/+33
| | | | make the mbuf external free function take a void * rather than caddr_t.
* nuke caddr_t.alfred2002-06-284-26/+23
|
* change struct socket -> so_pcb from caddr_t to void *.alfred2002-06-281-1/+1
|
* Remove unneeded casts to caddr_t.alfred2002-06-282-62/+62
|
* change f_data field in struct file from caddr_t to void *.alfred2002-06-281-1/+1
|
* document that the pipe fo_stat routine doesn't need locks because it'salfred2002-06-281-0/+4
| | | | | | a read operation. Requested by: rwatson
* In namei(), we use a NULL thread for uio_td when doing a VOP_READLINK().jhb2002-06-284-16/+15
| | | | | | | | | | | | nfs_readlink() calls nfs_bioread() which passes in uio_td as the thread argument to nfs_getcacheblk(). In nfs_getcacheblk() we dereference the thread pointer to get a process pointer to pass to nfs_sigintr(). This obviously results in a panic. :) Rather than change nfs_getcacheblk() to check if the thread pointer is NULL when calling nfs_sigintr() like other callers do, change nfs_sigintr() to take a thread as the last argument instead of a process so none of the callers have to care if the thread is NULL or not.
* Add two new submodes to the AES encryption method.phk2002-06-281-11/+121
| | | | | | This method is now suitable for encrypting swap spaces. Sponsored by: DARPA & NAI Labs.
* Improve the VOP locking assertsjeff2002-06-282-5/+24
| | | | | | | - Add vfs_badlock_print to control whether or not we print lock violations - Add vfs_badlock_panic to control whether we panic on lock violations Both default to on to mimic the original behavior if DEBUG_VFS_LOCKS is on.
* In vn_mkdir(), use vrele() instead of vput() on the parent directoryiedowse2002-06-282-2/+18
| | | | | | | | | | | vnode in the case that the target exists and is the same vnode as the parent (i.e. "mkdir ."). The namei() call does not leave the vnode locked in this case even though you might expect it to. This bug was mostly harmless in practice because unlocking an already unlocked vnode currently does not trigger any panics or warnings. Reviewed by: jeff
* One possible code path for syncache_respond() is:jlemon2002-06-281-1/+7
| | | | | | | | | | syncache_respond(A), ip_output(), ip_input(), tcp_input(), syncache_badack(B) Which winds up deleting a different entry from the syncache. Handle this by not utilizing the next entry in the timer chain until after syncache_respond() completes. The case of A == B should not be possible. Problem found by: Don Bowman <don@sandvine.com>
* Clean up vn_rdwr locking.jeff2002-06-281-6/+12
| | | | | - Do shared locks on read. - Only do vn_{start,finished}_write when writing.
* Fix a case where a vnode got explicitly unlocked after the pointer to itgreen2002-06-281-1/+1
| | | | | | got set to NULL. Revision 1.355: in the box
* Fix warning.dfr2002-06-281-1/+1
| | | | Reviewed by: luigi
* bring Makefile up to date with new ipfwjulian2002-06-281-1/+1
| | | | Submitted by: luigi
* Fix a botched flag clear operation. Rumor has it that this also fixesscottl2002-06-281-1/+1
| | | | | | | the funky-volume-settings-on-startup problem. Reviewed by: the channel that shall not be named MFC after: 7 days
* Remove a printf and add a comment on an assumption that could beluigi2002-06-271-3/+10
| | | | occasionally violated by device drivers.
* The new ipfw code.luigi2002-06-275-277/+2953
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This code makes use of variable-size kernel representation of rules (exactly the same concept of BPF instructions, as used in the BSDI's firewall), which makes firewall operation a lot faster, and the code more readable and easier to extend and debug. The interface with the rest of the system is unchanged, as witnessed by this commit. The only extra kernel files that I am touching are if_fw.h and ip_dummynet.c, which is quite tied to ipfw. In userland I only had to touch those programs which manipulate the internal representation of firewall rules). The code is almost entirely new (and I believe I have written the vast majority of those sections which were taken from the former ip_fw.c), so rather than modifying the old ip_fw.c I decided to create a new file, sys/netinet/ip_fw2.c . Same for the user interface, which is in sbin/ipfw/ipfw2.c (it still compiles to /sbin/ipfw). The old files are still there, and will be removed in due time. I have not renamed the header file because it would have required touching a one-line change to a number of kernel files. In terms of user interface, the new "ipfw" is supposed to accepts the old syntax for ipfw rules (and produce the same output with "ipfw show". Only a couple of the old options (out of some 30 of them) has not been implemented, but they will be soon. On the other hand, the new code has some very powerful extensions. First, you can put "or" connectives between match fields (and soon also between options), and write things like ipfw add allow ip from { 1.2.3.4/27 or 5.6.7.8/30 } 10-23,25,1024-3000 to any This should make rulesets slightly more compact (and lines longer!), by condensing 2 or more of the old rules into single ones. Also, as an example of how easy the rules can be extended, I have implemented an 'address set' match pattern, where you can specify an IP address in a format like this: 10.20.30.0/26{18,44,33,22,9} which will match the set of hosts listed in braces belonging to the subnet 10.20.30.0/26 . The match is done using a bitmap, so it is essentially a constant time operation requiring a handful of CPU instructions (and a very small amount of memmory -- for a full /24 subnet, the instruction only consumes 40 bytes). Again, in this commit I have focused on functionality and tried to minimize changes to the other parts of the system. Some performance improvement can be achieved with minor changes to the interface of ip_fw_chk_t. This will be done later when this code is settled. The code is meant to compile unmodified on RELENG_4 (once the PACKET_TAG_* changes have been merged), for this reason you will see #ifdef __FreeBSD_version in a couple of places. This should minimize errors when (hopefully soon) it will be time to do the MFC.
* Delay the AC97 calibration until after the system clock has beenscottl2002-06-271-5/+22
| | | | | | | | | | calibrated. This fixes the problem where playback and recording do not run at the correct speed. It probably also eliminates the need for the hacks/workarounds/sysctl's that were previously devised to deal with this, but I will leave that for a different time. Reviewed by: orion
* Lots of people have had to hack around the fixed address for cardbusimp2002-06-271-1/+1
| | | | | | bridges in modern hardware (that hardware w/ lots of RAM). Raise the address from 0x44000000 to 0x88000000 to match what we do with NEWCARD. However, this really should be done in the pci layer.
* Fix a bug that prevented the deletion of non-default ACLs from beingrwatson2002-06-273-3/+3
| | | | | | | | passed down the VFS stack. While I'm here, replace a '0' with a 'NULL' to make the code more readable. Sponsored by: DARPA, NAI Labs Obtained from: TrustedBSD Project
* A bit of whitespace magic.rwatson2002-06-273-15/+15
|
OpenPOWER on IntegriCloud