summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* in_ifinit apparently can be used to rewrite an ip address; recalculatejlemon2001-10-011-1/+5
| | | | | | the correct hash bucket for the entry. Submitted by: iedowse (with some munging by me)
* sppp rewrites the interface's ip address directly; this breaks when thejlemon2001-10-011-1/+7
| | | | | | | address is looked up via a hash table. Add a hack to move the entry to a new hash bucket when the address changes. Submitted by: tmm
* Fix a problem with unnumbered rules introduced in latest commit.luigi2001-10-011-3/+3
| | | | Reported by: des
* mdoc(7) police: Use the new .In macro for #include statements.ru2001-10-011-3/+3
|
* Change the way DAO/TAO mode is init'ed.sos2001-10-011-20/+21
| | | | Fix a bogon introduced in the previous commit, that broke CDIOREADSUBCHANNEL.
* Add test_write element.sos2001-10-011-0/+1
|
* Fix the function CD(): "Clear to the end of the screen".yokota2001-10-011-4/+15
| | | | | | | | | | | | | | | | - When the video BIOS is called to clear the region (x, y)-(79, 24) (by scrolling), the slashed region in Fig.1 is cleared. CD() is supposed to clear the region shown in Fig.2. x x +-------+ +-------+ | | | | y| ////| y| ////| | ////| |///////| | ////| |///////| +-------+ +-------+ Fig.1 Fig.2 - Don't move the cursor during this operation.
* This is white-space only change. No functional difference.yokota2001-10-011-140/+167
| | | | | | | | | - Be consistent about placing spaces around keywords and operators; don't mix statements like "if(A==B)" and "if (X == Y)", "return(0)" and "return (-1)", "P=10" and "Q = 0", etc. - Consitently indent lines. It's not good to indent by 8 columns in one part of the file, and by 4 columns in the other part.
* After extensive testing it has been determined that adding complexitydillon2001-10-013-30/+100
| | | | | | | | | | | | | | | | | | to avoid removing higher level directory vnodes from the namecache has no perceivable effect and will be removed. This is especially true when vmiodirenable is turned on, which it is by default now. ( vmiodirenable makes a huge difference in directory caching ). The vfs.vmiodirenable and vfs.nameileafonly sysctls have been left in to allow further testing, but I expect to rip out vfs.nameileafonly soon too. I have also determined through testing that the real problem with numvnodes getting too large is due to the VM Page cache preventing the vnode from being reclaimed. The directory stuff made only a tiny dent relative to Poul's original code, enough so that some tests succeeded. But tests with several million small files show that the bigger problem is the VM Page cache. This will have to be addressed by a future commit. MFC after: 3 days
* Catch up with the visibility callback stuff, and give up trying to keep thedes2001-10-011-19/+37
| | | | file definitions on single lines.
* [the previous commit to pseudofs_vncache.c got the wrong log message]des2001-10-011-0/+2
| | | | | | | | | | | | YA pseudofs megacommit, part 2: - Merge the pfs_vnode and pfs_vdata structures, and make the vnode cache a doubly-linked list. This eliminates the need to walk the list in pfs_vncache_free(). - Add an exit callout which revokes vnodes associated with the process that just exited. Since it needs to lock the cache when it does this, pfs_vncache_mutex needs MTX_RECURSE.
* YA pseudofs megacommit, part 1:des2001-10-013-79/+181
| | | | | | | | | | | | | | | | - Add a third callback to the pfs_node structure. This one simply returns non-zero if the specified requesting process is allowed to access the specified node for the specified target process. This is used in addition to the usual permission checks, e.g. when certain files don't make sense for certain (system) processes. - Make sure that pfs_lookup() and pfs_readdir() don't yap about files which aren't pfs_visible(). Also check pfs_visible() before performing reads and writes, to prevent the kind of races reported in SA-00:77 and SA-01:55 (fork a child, open /proc/child/ctl, have that child fork a setuid binary, and assume control of it). - Add some more trace points.
* Begin to implement target mode that for Fibre Channel has a privatemjacob2001-10-012-29/+68
| | | | | | | | | | | | | | per-command component that we *don't* try and pass thru CAM. CAM just is too risky and too much of a pain- structures get copied, but not all info of interest can be considered safely transported thru all consumers (including user space) from the incoming ATIO to the outgoing CTIO- it's just much safer to have a buddy structure, identified by the command's tag which *does* make it thru safely. Pay attention to link speed and report 200MB/s xfer speed for a 23XX card in 2GPs mode. MFC after: 1 week
* Implement a call to get the actual link data rate (if 23XX) so we canmjacob2001-10-013-40/+70
| | | | | | set whether it's a 2Gps or 1Gps link. MFC after: 1 week
* Add identcpu.c.jake2001-09-301-0/+1
|
* Add __FBSDID's to libaliasdillon2001-09-3010-21/+32
|
* Add contents to struct *reg.jake2001-09-301-4/+35
|
* Optimize bcopy and bzero etc to use 64 bit loads and stores if possible.jake2001-09-302-232/+474
| | | | | | | | | Handle overlap in bcopy. Add routines for copying and zeroing pages using physical addresses directly. Remove all the hacks to account for calling the firmware on its own trap table, we use the kernel trap table. There is still a problem with OF_exit().
* Use %ver to identify the cpu instead of openfirmware.jake2001-09-302-1/+72
| | | | Submitted by: robert
* Remove some debug code, add traces.jake2001-09-301-12/+10
|
* Return EIO for procfs_*_dbregs.jake2001-09-301-2/+2
|
* Specify readability and / or writeability for all nodes that need it.des2001-09-301-18/+18
|
* Add a place holder for PSTATE_SECURE, which detects if user code itjake2001-09-301-0/+2
| | | | trying to set bad pstate bits.
* pseudofs.h:des2001-09-302-37/+54
| | | | | | | | | | | | | | | | - Rearrange the flag constants a little to simplify specifying and testing for readability and writeability. pseudofs_vnops.c: - Track the aforementioned change. - Add checks to pfs_open() to prevent opening read-only files for writing or vice versa (pfs_{read,write} would block the actual reads and writes, but it's still a bug to allow the open() to succeed). Also, return EOPNOTSUPP if the caller attempts to lock the file. - Add more trace points.
* Split the low level trap code into trap, interrupt and syscall, itsjake2001-09-305-237/+693
| | | | | | | | | | | | | | | | | | | | | | | easier and hopefully this code is done changing radically. Don't use the mmu tlb register to address the kernel page table, nor the 8k pointer register. The hardware will do some of the page table lookup by storing the the base address in an internal register and calculating the address of the tte in the table. However it is limited to a 1 meg tsb, which only maps 512 megs. The kernel page table only has one level, so its easy to just do it by hand, which has the advantage of supporting abitrary amounts of kvm and only costs a few more instructions. Increase kvm to 1 gig now that its easy to do so and so we don't waste most of a 4 meg page. Fix some traces. Fix more proc locking. Call tsb_stte_promote if we get a soft fault on a mapping in the upper levels of the tsb. If there is an invalid or unreferenced mapping in the primary tsb, it will be replaced. Immediately fail for faults occuring in {f,s}uswintr.
* Implement sysarch().jake2001-09-301-2/+9
|
* Fix some traces. td->p_comm doesn't exist.jake2001-09-302-6/+12
|
* Move the kernel to end of the first 4 gigabytes of address space, so thatjake2001-09-304-85/+234
| | | | | | | | one 4 meg page can map both the kernel and the openfirmware mappings. Add the openfirmware mappings to the kernel tsb so we can call the firmware on the kernel trap table and access kernel memory normally. Implement pmap_swapout_proc, pmap_swapin_proc, pmap_swapout_thread, pmap_swapin_thread, pmap_activate, pmap_page_exists, and pmap_phys_address.
* Add a macro to get the context from a tte tag, not necesarily a wholejake2001-09-301-6/+2
| | | | tte. Remove the old inline.
* Include <machine/setjmp.h> instead of <setjmp.h>.jake2001-09-301-1/+1
|
* Don't use types that require other headers.jake2001-09-302-3/+3
|
* Wrap hardware trap types in ifdef _kernel.jake2001-09-301-0/+4
|
* Move the pcb the to the top of the kernel stack.jake2001-09-305-61/+75
| | | | | | | | Add a guard page at the bottom of the kernel stack. Its unclear how easy it will be to detect these faults and do something useful. Setup the registers on exec how the c runtime expects. Implement various {fill,set}_*regs. Fix proc locking.
* Don't overflow the ktr buffer <gulp>.jake2001-09-301-0/+4
|
* Implement PCPU_ADDR. Align functions on 16 bytes boundaries.jake2001-09-301-1/+4
|
* When FREE()ing kqueue related structures, charge them to the correct bucket.jlemon2001-09-301-3/+3
| | | | | Submitted by: iedowse Forgotten by: jlemon
* Add AlphaPC64 to comments. Correct names (ds10 -> DS10 etc)wilko2001-09-302-6/+6
|
* The behaviour of whiteout'ing symlinks were too confusing, insteadphk2001-09-301-1/+8
| | | | remove them when asked to.
* Add a change I forgot when adding ED_NO_MIIBUS. This will likelyiedowse2001-09-301-1/+2
| | | | | be backed out with the rest of ED_NO_MIIBUS when the general miibus code makes proper use of newbus.
* Re-enable mbtypes statistics in the mbuf allocator. I disabled thesebmilekic2001-09-302-19/+82
| | | | | | | | | | | | | | | | | when I changed the allocator bits. This implements per-CPU mbtypes stats by keeping net number of decrements/increments of a given mbtype per-CPU and then summing all of the per-CPU mbtypes to produce the total net number of allocated mbufs of the given mbtype. Counters are carefully balanced to avoid/prevent underflows/overflows. mbtypes stats are re-enabled with the idea that we may occasionally (although very rarely) observe slight inconsistencies in the stat reporting. Most of the time, we should be fine, though. Also make appropriate modifications to netstat(1) and systat(1) to do the necessary reporting. Submitted by: Jiangyi Liu <jyliu@163.net>
* Add an option ED_NO_MIIBUS, which causes the `ed' driver to beiedowse2001-09-296-0/+43
| | | | | | built without support for miibus PHYs. Most ed cards don't need miibus support, so it's useful to be able to avoid the bloat of all the mii devices for small fixed-purpose kernels.
* Adapt to pseudofs version 2. Sorry about the breakage - I had this readydes2001-09-291-20/+18
| | | | to commit along with the pseudofs patches, but just plain forgot.
* When calling isp_reset, set the request/response in/out pointers all atmjacob2001-09-291-9/+13
| | | | | | | | once so there isn't a window with the ones for the 23XX cards being wrong. When being verbose, print out some more FC NVRAM values (like framesize). MFC after: 1 week
* Do not call mii_polltick() immediately after mii_tick().jlemon2001-09-294-21/+14
| | | | Poiinted out by: wpaul
* Do not call mii_pollstat() from within device tick routines; the statusjlemon2001-09-299-55/+39
| | | | | | information is updated by mii_tick(). Pointed out by: wpaul (a while back)
* Cleanup pass for mii drivers.jlemon2001-09-2923-543/+233
| | | | | | | . Make internal service routines static. . Use a consistent ordering of checks in MII_TICK. Do the work in the mii_phy_tick() subroutine if appropriate. . Call mii_phy_update() to trigger the callbacks.
* Change the order that we print the media options during device probe tojlemon2001-09-291-30/+24
| | | | match the other mii drivers.
* Add field for last active status, as well as function prototypes.jlemon2001-09-291-0/+3
|
* Add new device method miibus_linkchg, along with a service routine.jlemon2001-09-293-0/+102
|
* Add ability to attach knotes to network devices.jlemon2001-09-292-2/+82
| | | | Introduce EVFILT_NETDEV to report network device changes.
OpenPOWER on IntegriCloud