summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* I cannot win. I still managed to use #define<space> twice instead ofpeter2002-09-231-2/+2
| | | | #define<tab> in spite of trying to make sure I didn't do this.
* Don't use compatability syscall wrappers in emulation code.mini2002-09-237-25/+64
| | | | | | This is needed for the COMPAT_FREEBSD3 option split. Reviewed by: alfred, jake
* slightly clean up the thread_userret() and thread_consider_upcall() calls.julian2002-09-234-29/+53
| | | | | | | also some slight changes for TDF_BOUND testing and small style changes Should ONLY affect KSE programs Submitted by: davidxu
* Add a __section(x) macro as well. Use this in linker_set.h. ie:peter2002-09-232-4/+7
| | | | | | | | | | | | | | static void const * const __set_##set##_sym_##sym __attribute__((__section__("set_" #set),__unused__)) = &sym becomes: static void const * const __set_##set##_sym_##sym __section("set_" #set) __unused = &sym Like the other macros, these #define away for unrecognized compilers or lint. Also, fix the argments in the previous commit for the non-gcc case. lint might be a bit happier about that. Note that the gcc <= 2.6 case needs some research.
* Add code to create > 1 KSe per process.julian2002-09-231-16/+39
| | | | | | (support code not yet complete) Submitted by: davidxu
* At great personal risk, add a __packed and __aligned(x) define thatpeter2002-09-239-8/+14
| | | | | | | | | | expand to __attribute__((packed)) and __attribute__((aligned(x))) respectively. Replace the handful of gcc-ism's that use __attribute__((aligned(16))) etc around the kernel with __aligned(16). There are over 400 __attribute__((packed)) to deal with, that can come later. I just want to use __packed in new code rather than add more gcc-ism's.
* - Automatically generate and insert KTR points in all VOPs.jeff2002-09-231-0/+24
|
* Indentation does not define a block.. you need breces {} as well..julian2002-09-231-1/+3
| | | | | | also add a mutex assert. (threaded path only) Submitted by: davidxu
* Wads more cleanup...mjacob2002-09-231-176/+233
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In mpttimeout, call mpt_intr just on the offchance that we missed an interrupt. We can check to see whether or not the command that is timing out got completed. When we *do* decide to timeout a command, set the command state to REQ_TIMEOUT and then invoke another timeout (hz/10)- mpttimeout2. This allows us to catch a couple cases we've seen where the command we timed out on in fact is ready to be completed by the firmware. In any case, it's only after mpttimeout2 is called that we actually take down the private state and free the request itself. CAM has been notified in mpttimeout anyway. This whole area should be redone, but that will take 105% of my available game time for this month. Fix a couple of missing (and not useful, at presnet) CAMLOCK_2_MPTLOCK and MPTLOCK_2_CAMLOCK locations. Split mpt_notify into mpt_ctlop, which handles all reply completions that have 0x800000000 or'd into the ContextID. This function can, in fact, call mpt_event_notify_reply, which handles the traditional async event notifications. While we're at it, put in the extremely important (but currently untested) code that send back an Ack to an Event Notification (if the Event Notification is marked with AckRequired). Note that an Ack also generates another ctlop completion, tra la. Fix up mpt_done substantially to try and get how we plug into CAM correctly done. Remove bogus CAM_RELEASE_SIMQ settings. Do some cleanups in mpt_action that are related to speed negotiation for Ultra4 cards. This is an area that is still quite fragile and worrisome as config data being read back often doesn't make sense or jibe with the documentation. At any rate, after these changes were done, I was finally able to get Lars Eggert's dual 320M disk system to stay up under load all weekend- hopefully we're in good enough for now shape. MFC after: 1 week
* - Hold the credential of the caller and use it in all subsequent vn ops.jeff2002-09-231-6/+7
| | | | | | - Get rid of the ill conceived aq_td field. Suggested by: rwatson
* Recognize the single channel 2Gb card (FC919)- thanks to LSI Logic formjacob2002-09-231-2/+14
| | | | | | | | | pointing this out. In mpt_intr, don't try and pop a reply queue element out *unless* the interrupt status says you might have one. MFC after: 1 week
* We do not need to expose mpt_notify outside of mpt_freebsd.c.mjacob2002-09-231-1/+0
| | | | MFC after: 1 week
* When freeing a request, zero out the sequence number.mjacob2002-09-231-2/+3
| | | | | | | | | | | | Define the CFG_DAGA_OFF offset as 128 bytes instead of 40- gives us a more reasonable headroom. When reading a config page, zero out the entire request area- not just the length of the request. This is because we cleverly (cheezily) return configuration data back into the allocated request area, so it's nice to make sure we start with a clean area to write on. MFC after: 1 week
* Remove ISP_DMA_ADDR_T definition.mjacob2002-09-231-10/+17
| | | | | | | | Instead, based upon whether ISP_DAC_SUPPORTED is defined, typedef isp_dma_addr_t appropriately. If ISP_DAC_SUPPORTRED is defined, the DMA_WD2/DMA_WD3 macros do something useful, else they define to '0'.
* Add MBOX_INIT_REQ_QUEUE_A64/MBOX_INIT_RES_QUEUE_A64 definitions.mjacob2002-09-231-0/+6
| | | | Define ispreq64_t to be the same as ispreqt3_t.
* Delete a whole bunch of compatability defines that we dont use anymore.peter2002-09-232-12/+0
|
* Redo dma tag creation to correctly reflect the boundary and segmentmjacob2002-09-231-8/+7
| | | | limitations inherent to the isp1000 on SBus cards.
* Re-specify the bus space creation such that if we have ISP_DAC_SUPPORTEDmjacob2002-09-231-8/+12
| | | | | | | | | | | defined, we set the address space limitation to BUS_SPACE_UNRESTRICTED, otherwise to BUS_SPACE_MAXADDR_32BIT. If we have a 1240, ULTRA2 or better, or an FC card, the boundary limit is BUS_SPACE_UNRESTRICTED and segment limit is BUS_SPACE_MAXADDR_32BIT. The older 1020/1040 cards have boundary and segment limits of BUS_SPACE_MAXADDR_24BIT.
* Fix buglet in A64 CTIO3 structure copy.mjacob2002-09-231-1/+1
|
* Remove ISP_DMA_ADDR_T define (see ispvar.h)mjacob2002-09-231-1/+4
| | | | | | Add in commented out: +/* #define ISP_DAC_SUPPORTED 1 */
* If we have a 1240 or an ULTRA2 or better card, use MBOX_INIT_RES_QUEUE_A64mjacob2002-09-231-22/+49
| | | | (preparation for DAC/A64 support)
* A SCSI_DELAY of zero is a legitimate value to have.mjacob2002-09-231-2/+4
| | | | The notion that you must "always" have a delay is at best misinformed.
* Note that the large Hitachi's are also CAM_QUIRK_HILUNSmjacob2002-09-231-0/+8
|
* Be careful not to define GCC-specific optimizations in the non-GCCmike2002-09-236-12/+66
| | | | case.
* - Correct the name in the header guards.jeff2002-09-231-3/+3
| | | | Spotted by: rwatson
* The ahc driver should only have one devclass, not one for each busscottl2002-09-224-9/+10
| | | | | | | attachment. Submitted by: too many people to count MFC after: 3 days
* Fix a couple of longstanding typos which would have made ajdp2002-09-221-1/+2
| | | | | | | | statement fail to compile if it weren't inside "#ifdef __brokenalpha__". Submitted by: Birger Toedtmann <birger@takatukaland.de> MFC after: 2 weeks
* Follow the lead of recent changes in the 3com Linux driver byjdp2002-09-221-46/+3
| | | | | | | | | disabling memory write invalidate unconditionally. It looks like they've decided that MWI just doesn't work with these devices. Also, remove now-irrelevant code that set PCI write boundary values based on the cache line size. MFC after: 2 weeks
* Set up the BCM570x chip's DMA Read/Write Control register morejdp2002-09-221-2/+10
| | | | | | | correctly. This fixes the "watchdog timeout -- resetting" errors seen on Dell 2650 systems. MFC after: 1 month
* Attempt to fix the error reported by the alpha tinderbox. A pointeriedowse2002-09-222-4/+4
| | | | | was being cast to an integer as part of a hash function, so just add an intptr_t cast to silence the warning.
* Initialize fwsectors/fwheads to allow the DIOCGFWSECTORS andgrehan2002-09-221-2/+2
| | | | | | DIOCGFWHEADS ioctls to return meaningful values to disklabel/newfs Approved by: phk
* Fix misspellings, capitalization, and punctuation in comments. Minortruckman2002-09-223-90/+95
| | | | comment phrasing and style changes.
* Move the com_scr register address definition over with the other seven.phk2002-09-222-2/+1
| | | | Approved by: bde
* Modify vm_map_clean() (and thus the msync(2) system call) to supportmdodd2002-09-221-7/+10
| | | | | | | invalidation of cached pages for objects of type OBJT_DEVICE. Submitted by: Christian Zander <zander@minion.de> Approved by: alc
* - Hook ALQ up to the build.jeff2002-09-221-0/+1
|
* - Add options ALQ and KTR_ALQ.jeff2002-09-221-0/+2
|
* - Add support for logging KTR via ALQ. This is optional and enabled by thejeff2002-09-222-3/+95
| | | | KTR_ALQ config option.
* - Tell witness about ALQ's spin lock.jeff2002-09-221-0/+1
|
* - Add an asynchronous fixed length record logging mechanism calledjeff2002-09-222-0/+616
| | | | | | | | ALQ (Asynch. Logging Queues). ALQ supports many seperate queues with different record and buffer sizes. It opens and logs to any vnode so it can be used with character devices as well as regular files. Reviewed in part by: phk, jake, markm
* Call trap directly for exceptional cases that need more processing onjake2002-09-221-26/+20
| | | | | return to usermode, rather than branching back to a label before the original call.
* Removed unneeded include (missed in last revision).jake2002-09-221-2/+0
|
* Moved netisr code from kern/kern_intr.c to net/netisr.c as threatened in ajake2002-09-223-79/+118
| | | | comment.
* Remove all DELAY(1) calls around MII operations in the XL driver.silby2002-09-221-17/+0
| | | | | | | | | | | According to the MII specification, the delay produced by our reads alone are sufficient for correct operation. This reduces the time mii_tick takes from 10ms to ~1ms here. That's still a lot, but much better than before. Submitted by: Harti Brandt <brandt@fokus.gmd.de> MFC after: 3 weeks
* Create inlines for ltr(sel), lldt(sel), lidt(addr) rather thanpeter2002-09-227-72/+52
| | | | functions that have one instruction.
* o Update some comments.alc2002-09-221-7/+9
|
* Fix issue where shutdown(socket, SHUT_RD) was effectivelysilby2002-09-222-6/+20
| | | | | | | | ignored for TCP sockets. NetBSD PR: 18185 Submitted by: Sean Boudreau <seanb@qnx.com> MFC after: 3 days
* Remove unneeded opt headers.jake2002-09-221-3/+0
| | | | Noticed by: benno
* - Move the init of %gs and pcb_gs before user_ldt_free().mdodd2002-09-222-26/+8
| | | | | | | - Always call load_gs() - Trim comments. This addresses some of the issues raised by BDE.
* It's Apple GMAC, not HMAC.benno2002-09-222-2/+2
| | | | Approved by: jake (for sparc64)
* Moved nfs_diskless setup code from autoconf.c to nfsclient/nfs_diskless.cjake2002-09-229-390/+246
| | | | | | | so that it is MI. Allow nfs_mountroot to return an error if the nfs_diskless struct is not valid, rather than panicing later on. Call nfs_setup_diskless() from nfs_mountroot if NFS_ROOT is defined, like bootpc_init(). Removed legacy root mount support for sparc64, and enabled NFS_ROOT by default.
OpenPOWER on IntegriCloud