summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Do NOT return from an non-interruptable cv_wait, falselyjulian2003-03-311-2/+0
| | | | claiming to have timed out. I don't know what I was thinking..
* - Fix two calls to trapsignal() that were still passing in 'struct proc'.jeff2003-03-312-4/+4
| | | | These were missed in my last commit.
* - Add a signal for thread synchronization. Add an XXX so that maybejeff2003-03-311-0/+4
| | | | | someone more knowledgeable on standards defined namespaces may ifdef this out.
* - Mark signals which may be delivered to any thread in the process withjeff2003-03-311-31/+32
| | | | | SA_PROC. Signals without this flag should be directed to a particular thread if this is possible.
* - Change trapsignal() to accept a thread and not a proc.jeff2003-03-3113-40/+40
| | | | | | | - Change all consumers to pass in a thread. Right now this does not cause any functional changes but it will be important later when signals can be delivered to specific threads.
* - Use sigexit() instead of twiddling the signal mask, catch, ignore, andjeff2003-03-313-25/+5
| | | | | action bits to allow SIGILL to work as expected. This brings this file in line with other architectures.
* Add a facility allowing processes to inform the VM subsystem they arewes2003-03-314-1/+19
| | | | | | | | critical and should not be killed when pageout is looking for more memory pages in all the wrong places. Reviewed by: arch@ Sponsored by: St. Bernard Software
* Add missing ()'s so that these drivers all compile again.jhb2003-03-3113-13/+13
| | | | | Noticed by: jake Tested on: i386 (compile)
* - Allow the physical memory size that will be actually used by the kernel tojake2003-03-312-2/+44
| | | | | | | | be overridden by setting hw.physmem. - Fix a vm_map_find arg, we don't want to find space. - Add tracing and statistics for off colored pages. - Detect "stupid" pmap_kenters (same virtual and physical as existing mapping), and do nothing in that case.
* If we fail to find our PCI ID in attach (this should never happen), thenjhb2003-03-311-2/+1
| | | | | just return ENXIO directly instead of calling tl_detach() since that would panic since the softc mutex isn't initialized until after this check.
* Remove some debugging in the new OAM[*] and add a debug flag for otherphk2003-03-312-5/+3
| | | | | | | | | parts of it. [*] I've been asked what "OAM" means: It's an acronym used in the telecom industry, "Operations And Maintenance", and there it covers anything from a single unlabeled led on the frontpanel the the full nightmare of CMIP for SS7.
* Match "serial" as well as "se".jake2003-03-311-1/+2
|
* Clean up locking and resource management for pci/if_*njl2003-03-3117-793/+711
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove locking of the softc in the attach method, instead depending on bus_setup_intr being at the end of attach (delaying interrupt enable until after ether_ifattach is called) - Call *_detach directly in the error case of attach, depending on checking in detach to only free resources that were allocated. This puts all resource freeing in one place, avoiding thinkos that lead to memory leaks. - Add bus_child_present check to calls to *_stop in the detach method to be sure hw is present before touching its registers. - Remove bzero softc calls since device_t should do this for us. - dc: move interrupt allocation back where it was before. It was unnecessary to move it. This reverts part of 1.88 - rl: move irq allocation before ether_ifattach. Problems might have been caused by allocating the irq after enabling interrupts on the card. - rl: call rl_stop before ether_ifdetach - sf: call sf_stop before ether_ifdetach - sis: add missed free of sis_tag - sis: check errors from tag creation - sis: move dmamem_alloc and dmamap_load to happen at same time as tag creation - sk: remove duplicate initialization of sk_dev - ste: add missed bus_generic_detach - ti: call ti_stop before ether_ifdetach - ti: add missed error setting in ti_rdata alloc failure - vr: add missed error setting in I/O, memory mapping cases - xl: add missed error setting in I/O, memory mapping cases - xl: remove multi-level goto on attach failure - xl: move dmamem_alloc and dmamap_load to happen at same time as tag creation - Calls to free(9) are unconditional because it is valid to call free with a null pointer. Reviewed by: imp, mdodd
* Recent changes to uipc_cow.c have eliminated the need for some sf_buf-alc2003-03-311-3/+3
| | | | | related variables to be global. Make them either local to sf_buf_init() or static.
* - In npxsetregs don't set the floating point if td == fpcurthread not ifjeff2003-03-313-3/+3
| | | | | curthread == fpcurthread. This is important when we're saving the fp state for a thread other than curthread as in from set_mcontext.
* Add the ability to send 64-bit scatter/gather elements to aac cards. Thisscottl2003-03-301-39/+78
| | | | | | | is enabled when both the size of bus_addr_t > 4 and the card claims support. Don't wake up the kthread to allocate more commands if we know that we've already allocated the max number of commands.
* retire the "busy" field in bioqueues, it's served it's purpose.phk2003-03-302-9/+0
|
* Fix ATA_DEBUG case breakage.sos2003-03-301-1/+1
|
* Preparation commit before I start on the bioqueue lockdown:phk2003-03-303-43/+46
| | | | | Collect all the bits of bioqueue handing in subr_disk.c, vfs_bio.c is big enough as it is and disksort already lives in subr_disk.c.
* Revert 1.21; this was local code that should not have beenmdodd2003-03-301-5/+5
| | | | committed.
* - Temporary fix so this compiles with 64 bit bus_addr_t.jake2003-03-301-1/+2
| | | | | Sponsored by: DARPA, Network Associates Laboratories Approved by: scottl
* - Add support for PAE and more than 4 gigs of ram on x86, dependent on thejake2003-03-3022-28/+436
| | | | | | | | | | kernel opition 'options PAE'. This will only work with device drivers which either use busdma, or are able to handle 64 bit physical addresses. Thanks to Lanny Baron from FreeBSD Systems for the loan of a test machine with 6 gigs of ram. Sponsored by: DARPA, Network Associates Laboratories, FreeBSD Systems
* Catch up with recent changes.mdodd2003-03-301-9/+5
|
* Switch rl_encap over to using m_defrag.silby2003-03-301-11/+1
| | | | | | | No functional change, the previous rl_encap was correct wrt long mbuf chains; this just reduces code duplication. MFC after: 2 weeks
* - We are not guaranteed that read ahead blocks are not in memory already.jeff2003-03-301-1/+9
| | | | | Check for B_DELWRI as well as B_CACHED before issuing io on a buffer. This is especially important since we are changing the b_iocmd.
* - Remove invalid casts.jake2003-03-304-6/+6
| | | | Sponsored by: DARPA, Network Associates Laboratories
* - Convert all uses of pmap_pte and get_ptbase to pmap_pte_quick. Whenjake2003-03-306-362/+224
| | | | | | | | | | | | accessing an alternate address space this causes 1 page table page at a time to be mapped in, rather than using the recursive mapping technique to map in an entire alternate address space. The recursive mapping technique changes large portions of the address space and requires global tlb flushes, which seem to cause problems when PAE is enabled. This will also allow IPIs to be avoided when mapping in new page table pages using the same technique as is used for pmap_copy_page and pmap_zero_page. Sponsored by: DARPA, Network Associates Laboratories
* The object type can't be OBJT_PHYS in vm_mmap().mux2003-03-301-1/+1
| | | | Reviewed by: peter
* Fix a bug in the ENOMEM pacing code which probably made it panic systemsphk2003-03-291-4/+4
| | | | after a lot of ENOMEM errors.
* - Free interrupt handler in ep_free().mdodd2003-03-296-18/+32
| | | | | - Move ep_pccard_detach() to if_ep.c and rename to ep_detach() - Specify detach methods for all bus frontends.
* Add create_geom and destroy_geom methods.phk2003-03-291-0/+159
|
* remove a blank line.phk2003-03-291-1/+0
|
* Checksum the configuration EEPROM.mdodd2003-03-291-0/+43
|
* - Return error status instead of value in get_e().mdodd2003-03-294-32/+71
| | | | | - Modify ep_get_macaddr() to return an error status. - Reverse the return value logic of eeprom_rdy().
* Switch vr_encap over to using m_defrag instead of its own versionsilby2003-03-292-28/+4
| | | | | | | | | of the function. No functional change, this driver already handled long mbuf chains correctly. MFC after: 2 weeks
* Update if_dc to use m_defrag, removing the semi-duplicate dc_coalsilby2003-03-292-70/+60
| | | | | | | | | | | function. Also, use m_defrag where appropriate to defrag long mbuf chains in the same fashion as was done in if_sis.c. Before this change, if_dc would blow up and take down the interface if fed a really long mbuf chain. MFC after: 2 weeks
* Fix the osf1 abi module on SMP systems by making the size ofgallatin2003-03-292-2/+3
| | | | | | | | | | | | | | | | a struct pmap be the same on both SMP and UP kernels. It turns out that the size of a struct pmap is much larger on alpha SMP systems due to the number of pm_asn's being dependant on MAX_CPU. Since modules are supposed to be SMP agnostic, this has the affect of moving around the "interesting bits" of the vmspace (daddr, dsize) that the osf1 module wants to frob. So the module ends up scribbling in a pmap struct, and the user either sees a panic, or an application failure. While here, I've also shrunk MAXCPU to 8 now that it affects the size of pmap structs on UP systesm. This should be plenty, as I'm unware of any hardware we currently run in which supports more than 8 CPUs.
* Have sis_encap use m_defrag if:silby2003-03-291-1/+25
| | | | | | | | | | | | | | | 1. The chain passed in is > 31 fragments long or 2. The chain will not fit in the remaining descriptors without defragmentation. This is slightly less clear than other network drivers because the sis chips share one descriptor list for all packets, it seems. Before this change, a > 127 fragment chain would get stuck in the IFQUEUE permanently, bringing all network traffic to a halt. MFC after: 2 weeks
* opt_geom.h is no longer required for this module.mdodd2003-03-291-5/+2
|
* Add 'idt' driver to module build.mdodd2003-03-291-0/+1
|
* - Deal with netisr changes.mdodd2003-03-291-5/+5
| | | | - Wrap idt_atm_harpconn() in conditional define T_ATM_BUFQUEUE
* Add module infrastructure for 'dpt' driver.mdodd2003-03-292-0/+15
|
* Add module infrastructure for 'if_ex'.mdodd2003-03-292-0/+13
|
* - Declare ex_devclass in if_ex.cmdodd2003-03-294-8/+8
| | | | - Rename module datastructures in if_ex_isa.c to be more standard.
* - Move ex_pccard_detach() to if_ex.c and rename it to ex_detach().mdodd2003-03-294-15/+22
| | | | - Add detach method to ISA front end.
* Reformat for readability.mdodd2003-03-291-96/+98
|
* Add module infrastructure for 'vpd' and 'smbios' and move 'smbios'mdodd2003-03-295-2/+29
| | | | to new home.
* Remove useless code.mdodd2003-03-291-6/+0
|
* Don't compile the identify method yet.mdodd2003-03-291-0/+4
|
* Register dependency on the elink module.mdodd2003-03-291-0/+3
|
OpenPOWER on IntegriCloud