summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Use __packed instead of __attribute__((__packed__)).mux2003-03-221-1/+3
|
* Mitigate deadlock situation pending a more complete solution.phk2003-03-212-2/+7
|
* Added missing dependency on rc4.ru2003-03-211-0/+1
| | | | Reviewed by: imp
* Fix some memory leaks in the failure cases after trying to look up thejhb2003-03-211-6/+9
| | | | | | | OSF/1 runtime loader. Also, use td_ucred instead of p_ucred. Tested by: gallatin Reviewed by: rwatson
* Added support for 82541 and 82547 based adapters.pdeuskar2003-03-217-623/+1974
| | | | | | | - These have Intel gigabit PHY - 82547 uses CSA interface MFC after: 1 week
* Sync up linux and svr compat elf fixup functions for exec(). Thesejhb2003-03-213-22/+23
| | | | | | | | | functions are now all basically identical except that alpha linux uses Elf64 arguments and svr4 and i386 linux use Elf32. The fixups include changing the first argument to be a register_t ** to match the prototype for fixup functions, asserting that the process in the image_params struct is always curproc and removing unnecessary locking to read credentials as a result, and a few style fixes.
* - Use if_broadcastaddr from struct ifnet rather than relying onmdodd2003-03-219-15/+16
| | | | | | | extern 'etherbroadcastaddr'. - Make 'etherbroadcastaddr' static. Reviewed by: imp
* Add a sysctl node allowing the specification of an address mask to usemdodd2003-03-211-2/+9
| | | | when replying to ICMP Address Mask Request packets.
* Add comments regarding the ICMP timestamp fields.mdodd2003-03-211-4/+4
|
* Assignment could be NULL, check.mdodd2003-03-211-1/+1
|
* Map VAPPEND to VWRITE in nfsspec_access() - VAPPEND is never set in thetjr2003-03-211-0/+7
| | | | | mode returned by VOP_GETATTR. This fixes incorrect "Permission denied" errors when trying to append to a file on an NFSv2 mount.
* Use td->td_ucred instead of td->td_proc->p_ucred.jhb2003-03-2010-17/+16
|
* Minor fixes to ffs_fserr():jhb2003-03-201-3/+3
| | | | | - Assume that curthread is not NULL. It never is in -current. - Use td_ucred instead of p_ucred.
* Use td_ucred of curthread instead of p_ucred of curproc. This requiredjhb2003-03-201-17/+17
| | | | | changing sem_perm() and sem_hasopen() to take a thread instead of a proc for the first argument.
* Extend CPU_ATHLON_SSE_HACK to cover a few more revisions of Athlon CPUs.dwmalone2003-03-202-2/+4
| | | | | Submitted by: Jon Kuster <kwsn@earthlink.net> MFC after: 2 weeks
* Distinguish between register sets that depend on ac97 caps (wr0, wr1,orion2003-03-201-17/+38
| | | | msgd) and those that don't (dxs0-3) when reporting format caps.
* Use atomic operations to increment and decrement the refcountmux2003-03-206-22/+23
| | | | | | | in busdma tags. There are currently no tags shared accross different drivers so this isn't needed at the moment, but it will be required when we'll have a proper newbus method to get the parent busdma tag.
* Correct vendor id for ALC101.orion2003-03-201-1/+1
|
* Backout the getcwd changes, a more comprehensive effort will be needed.phk2003-03-202-377/+412
|
* Enable the FPU on first use per-thread and save state across contextgrehan2003-03-206-117/+101
| | | | | | | | | | | switches. Not as lazy as it could be. Changing FPU state with sigcontext still TODO. fpu.c - convert some asm to inline C, and macroize fpu loads/stores swtch.S - call out to save/restore fpu routines trap.c - always call enable_fpu, since this shouldn't be called once the FPU has been enabled for a thread genassym.c - define for pcb fpu flag
* - Add PCI ID for Paddington i/o controller, used in old G3'sgrehan2003-03-201-2/+4
| | | | | - Add ID for the Intrepid i/o controller, used in new 12"/17" PowerBooks - put IDs in chronological order
* Update some more namespaces (forgotten in the previous revision).mike2003-03-191-2/+2
|
* Add machine check handler. While generally useful, it's required whengrehan2003-03-192-2/+2
| | | | | issuing PCI config cycles on MPC106-based PowerMacs, which cause machine checks when accessing non-existent/empty slots.
* Clear channel and tag bits before set them.simokawa2003-03-191-0/+1
| | | | This should fix the problem that if_fwe doesn't work after DV receiving.
* - Remove unused cache flushing routines. These will not necessary workjake2003-03-198-456/+260
| | | | | | | | | | | | | | | | | | | on future UltraSPARC cpus for which the data cache is not direct mapped. - Move UltraSPARC I and II (spitfire, blackbird, sapphire, sabre) specific functions to spitfire.c, and add cheetah.c for UltraSPARC III specific functions. Initially just cache flushing, but there are a few other functions that will need to move here. - Add an ipi handler for data cache flushing on UltraSPARC III. - Use function pointers to select the right cache flushing functions based on cpu_impl. With this it is possible to boot single user from an mfs root on UltraSPARC III systems, including spinning up secondary processors. There is currently no support for the host to pci bridge, and no documentation for it is publically available. Thanks to Oleg Derevenetz for providing access to a system with UltraSPARC III+ cpus.
* - Set cpu_impl early in sparc64_init so that we can use it to detectjake2003-03-194-3/+12
| | | | | | | | UltraSPARC III and higher cpus and do needed setup. - Disable the "system tick" interrupt for UltraSPARC III. This avoids an interrupt storm on startup since we're not prepared for these at all. This feature has questionable use anyway. - Clear tick on startup and then leave it alone.
* Adjust code for userland preemptive. Userland can set a quantum indavidxu2003-03-196-78/+99
| | | | | | | | | | kse_mailbox to schedule an upcall, this is useful for userland timeout routine, for example pthread_cond_timedwait(). Also extract upcall scheduling code from kse_reassign and create a new function called thread_switchout to include these code. Reviewed by: julain
* Remove a workaround for mysterious junk appearing in the tlb of secondaryjake2003-03-191-19/+0
| | | | cpus. It turned out to be a bug in the loader.
* Implement db_print_backtrace. This may need to flush out the windowsjake2003-03-191-0/+4
| | | | as well.
* Make sure to free the correct resources when the card fails to attachsilby2003-03-191-0/+8
| | | | | | properly. (Broken in the previous commit.) Noticed by: "Niels Chr. Bank-Pedersen" <ncbp@bank-pedersen.dk>
* Unregisterize, ansify.des2003-03-191-34/+10
|
* Remove an empty comment.mux2003-03-191-4/+0
|
* Whitespace cleanup.des2003-03-193-33/+33
|
* long != int. Use SYSCTL_UINT for kern.devstat.generation. Fixes bootingjake2003-03-181-1/+1
| | | | on sparc64.
* Brucify.sobomax2003-03-182-24/+26
| | | | | Requested and reviewed by: bde MFC after: 2 weeks
* Fix a race condition in socow_setup(): The page must be wired beforegallatin2003-03-181-4/+7
| | | | | | | sf_buf_alloc() is called, as sf_buf_alloc() may sleep. If it does sleep, the page might be reclaimed before wiring occurs. Reported by: alc
* Add support for Planex FNW-3800-TX(CardBus 100M/10M).sanpei2003-03-182-1/+14
| | | | | Submitted by: Kunihiro Arai <araik@attglobal.net> Obtained from: [bsd-nomads:16625]
* Missed in last commit: don't compile now non-existent geom_stats.cphk2003-03-181-1/+0
|
* Retire the GEOM private statistics code and use devstat instead.phk2003-03-187-300/+16
|
* If devstat_new_entry() is passed a unit number of -1 assume thatphk2003-03-181-4/+12
| | | | | | | | | | | | | | | the devstat is for an "interior" GEOM node and register using the name argument as a geom identity pointer. Do not put these devstat structures on the list returned by the sysctl. This gives us the ability to tell the two kinds of nodes apart and leave the current "strictly physical" view of devstat intact without modifications, yet be able to use devstat for both kinds of devices. It also saves us bloating struct devstat with another 48 bytes of space for the name. At least for now. Reviewed by: ken
* Make devstat fully Giant agnostic:phk2003-03-181-42/+135
| | | | | | | | | | | | | | | | | | | | | Add a mutex and protect the allocation and traversal of the list with it. When we allocate a page for devstat use we drop the mutex and use M_WAITOK this is not nice, but under the given circumstances the best we can do. In the sysctl handler for returning the devstat entries we do not want to hold the mutex across copyout(9) calls, so we keep a very careful eye on the devstat_generation count, and abandon with EBUSY if it changes under our feet. Specifically test for BIO_WRITE, rather than default non-read,non-deletes as write. Make the default be DEVSTAT_NO_DATA. Add atomic increments of the sequence[01] fields so applications using the mmap'ed view stand a chance of detecting updates in progress. Reviewed by: ken
* Including <sys/stdint.h> is (almost?) universally only to be able to usephk2003-03-1855-54/+1
| | | | | %j in printfs, so put a newsted include in <sys/systm.h> where the printf prototype lives and save everybody else the trouble.
* Remove unused fields.jake2003-03-181-5/+1
|
* Make devstat_new_entry() take a const void * rather than const char *phk2003-03-182-6/+6
| | | | argument, GEOM nodes are not identified by ascii string.
* Instead of relying on a compile time define to determine whether the xlsilby2003-03-182-37/+34
| | | | | | | | | driver should use port or memory based IO, determine it dynamically at runtime, preferring MMIO where possible. This helps us support newer arches which dislike port based access better. Tested on i386 & sparc64, with 3c900, 905, 905b, and 905C cards. (in varying combinations by both jake and myself)
* o Lucent cards don't seem to like multiple buffers for tx. Use onlyimp2003-03-182-37/+26
| | | | | | | | | | | | | | | | | | | one tx buffer for these cards. The old driver only used one. We use 1 for symbol, and 3 for prism cards. o Don't do the maximum loops thing in the ISR. In fact, revert to the old interrupt handler. Lucent cards don't seem to work too well if you don't disable/enable interrupts from the card in the ISR. Between these two changes, Lucent cards suck less. They work in autoselect mode only. And seem to get 1Mbps or 2Mbps only. Setting a specific media speed doesn't work, and I've had a few issues even with these patches. They turn a former brick into a nearly useful card. These patches work on the prism 2 and 2.5 PC Card cards that I have. I've not tested this on PCI cards. I suspect, but couldn't find proof, that they were the reason that the ISR was changed so radically from its FreeBSD roots in NetBSD. We might need to have a variant ISR if so.
* Move symbol reset detection code back into wi_reset. This is a moreimp2003-03-182-8/+10
| | | | | | | reliable way to detect if the symbol cards have been reset or not. This makes symbol cards work better. Submitted by: deischen
* Add DLINK DWL650Himp2003-03-181-0/+1
| | | | From NetBSD by way of deischen
* Add SMC 2602W pci card, from a post to mobile@imp2003-03-181-0/+1
|
* Use %jd and a cast to intmax_t instead of a cast to long.imp2003-03-181-4/+4
| | | | Minor style nit while I'm here.
OpenPOWER on IntegriCloud