summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
...
* | ACPI HID's aren't limited to 7 characters. Don't check the length of themsmith2000-12-051-2/+2
| | | | | | | | | | | | | | HID passed in as an argument at all; callers are typically going to be sending us static strings anyway. Submitted by: Munehiro Matsuda <haro@tk.kubota.co.jp>
* | Initialize/grab the mutex earlier in the attach phase, so thatwpaul2000-12-0417-43/+50
| | | | | | | | | | bailing out to the fail: label where we release/destroy the mutex will work without exploding.
* | Cleanup some leftover lint from the old interrupt system.peter2000-12-0430-728/+176
| | | | | | | | | | | | | | | | Also, while here, run up to 32 interrupt sources on APIC systems. Normalize INTREN/INTRDIS so they are the same on both UP and SMP systems rather than sometimes a macro, and sometimes a function. Reviewed by: jhb, jakeb
* | Turn off the load_eject bit in cdstartunit(). It causes an `Invalidjoerg2000-12-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | field in CDB' error when attempting to start a caddy-type CD drive, since those drives apparently in general refuse to load a medium. Since we never advertised the feature to load the medium upon calling cdstartunit() (i. e. upon receipt of a CDIOCSTART ioctl command), nobody should have relied on it. Besides, nobody noticed so far at all that this command is failing for caddy-type drives... Only few applications seem to use it at all (among them is workman, which made me notice it). Reviewed by: ken
* | Fix for vanilla PC164 systems to use a slightly different PALcode magicmjacob2000-12-042-2/+39
| | | | | | | | | | | | | | | | tweak to enable/disable interrupt sources. Seems to work. It is unclear how many of the PC164 models actually might needs this, and whether or not there are other hidden issues. Obtained from:Bernd Walter <ticso@cicely8.cicely.de>
* | (1) Allow a stray lock prefix to be compiled out with thejake2000-12-042-32/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | MPLOCKED macro (2) Use decimal 12 rather than hex 0xc in an addl (3) Implement MTX_ENTER for the I386_CPU case (4) Use semi-colons between instructions to allow MTX_ENTER and MTX_ENTER_WITH_RECURSION to be assembled (5) Use incl instead of incw to increment the recusion count (6) 10 is not a valid label, use 7, 8 and 9 rather than 8, 9 and 10 (7) Sort numeric labels Submitted by: bde (2, 4, and 5)
* | Whitespace. Fix indentation, align comments.jake2000-12-041-17/+17
| |
* | Whitespace. Fix an overly long line.jake2000-12-041-2/+2
| |
* | Remove if defined(tahoe) cobwebs.jake2000-12-041-4/+0
| |
* | remove struct mount from useland visibilityalfred2000-12-041-0/+4
| |
* | Comment out debug printfs about enable/disable ints.mjacob2000-12-041-2/+2
| | | | | | | | Current now appears to work at least fitfully on one Rawhide.
* | More M_ZERO patches.dwmalone2000-12-032-25/+20
| | | | | | | | | | | | Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net> Approved by: mjacob
* | Add the NS DP83815 to the list of supported chips by the sis driver.alex2000-12-032-4/+8
| | | | | | | | Inspired by: Oliver Fromme
* | We now have the ability to assign the correct IRQ when PNP-OS is turnednsayer2000-12-034-40/+0
| | | | | | | | | | | | | | | | on. So stop failing the attach if the IRQ is unassigned. With this patch, I can now boot with PNP-OS YES in my BIOS no differently than PNP-OS NO (which is a good thing since Windows hangs with PNP-OS NO). Obtained from: msmith
* | Bugfix: enable interrupt sharing for ELSA Microlink ISDN PCIhm2000-12-031-2/+2
| |
* | Use M_ZERO.dwmalone2000-12-031-22/+12
| | | | | | | | | | | | Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net> Approved by: mark_salyzyn@adaptec.com
* | Check return value of malloc correctly and use M_ZERO.dwmalone2000-12-031-7/+6
| |
* | - add support for crashdumps (courtesy of ps and Y!)msmith2000-12-033-185/+273
| | | | | | | | | | | | | | - standardise error reporting for commands - simplify the driver-to-controller bio transfer - add bio in/out accounting - correctly preserve the command ID in twe_ioctl (thanks to joel@3ware)
* | Fix up a whitespace glitch in PHOLD() and fix it to use do { ... } while(0)jhb2000-12-031-3/+3
| | | | | | | | instead of { ... }.
* | Include machine/cpu.h for cpu_getstack().marcel2000-12-031-0/+2
| | | | | | | | Spotted by: jake
* | Changed second argument in a call to sf_buf_free() to be NULL instead ofdg2000-12-031-1/+1
| | | | | | | | | | | | | | PAGE_SIZE to match the prototype better. The argument is ignored, so this is just to silence the compile-time warning. Pointed out by: jhb
* | Don't auto-generate the syscalls.marcel2000-12-0316-51/+1226
| |
* | Don't auto-generate syscalls.marcel2000-12-031-1/+1
| |
* | - Add a mutex to the proc structure p_mtx that will be used to lock accessesjhb2000-12-034-0/+4
| | | | | | | | | | to each individual proc. - Initialize the lock during fork1(), and destroy it in wait1().
* | Change cpu_switch to explicitly popl the callers program counter andjake2000-12-035-14/+8
| | | | | | | | | | | | | | pushl that of the new process, rather than doing a movl (%esp) and assuming that the stack has been setup right. This make the initial stack setup slightly more sane, and will make it easier to stick an interrupted process onto the run queue without its knowing.
* | Fix dependency for auto-generated files. This commit ismarcel2000-12-021-1/+1
| | | | | | | | | | | | | | | | for archiving purposes only; auto-generation is going to be reverted. requested by: obrien submitted: gallatin
* | Correct int/long type mismatch in the proper place this time. freevnodesgallatin2000-12-022-6/+6
| | | | | | | | | | | | | | | | | | | | | | and numvnodes are longs in the kernel. They should remain longs in systat, what really needs to change is that they should be using SYSCTL_LONG rather than SYSCTL_INT. I also changed wantfreevnodes to SYSCTL_LONG because I happened to notice it. I wish there was a way to find all of these automatically.. Pointed out by: bde
* | Major speedup to /dev/random and the kernel thread that reseeds it.markm2000-12-022-93/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no more TAILQ fifo to harvest the entropy; instead, there is a circular buffer of constant size (changeable by macro) that pretty dramatically improves the speed and fixes potential slowdowns- by-locking. Also gone are a slew of malloc(9) and free(9) calls; all harvesting buffers are static. All-in-all, this is a good performance improvement. Thanks-to: msmith for the circular buffer concept-code.
* | Add USEC_SLEEP macro support. Change the location at which we definemjacob2000-12-021-12/+17
| | | | | | | | ISP_LOCK/ISP_UNLOCK macros.
* | Default the /dev/random loadable module to blocking-on-bootup,markm2000-12-021-1/+4
| | | | | | | | but leave a commented-out macro to change this.
* | Make the Not RESPONSE in RESPONSE QUEUE message have a bit more infomjacob2000-12-021-14/+36
| | | | | | | | | | | | | | | | (specifically, how many entries we've looked at so far). Maintain interrupt instrumentation. Use USEC_SLEEP instead of USEC_DELAY in a number of places (this allows us to drop locks and sleep instead of spin). Track changes to configuration options for topology preference. Fix botched order of printout for Channel, Target, Lun.
* | Add interrupt instrumentation. Change ISP_CFG_NPORT config option tomjacob2000-12-021-1/+11
| | | | | | | | | | a set of options that allows specific loop, loop-only, nport, nport-only topology settings. Define a required macro for all platforms (USEC_SLEEP).
* | Namespace cleanup. Remove some #includes in favour of an explicitmarkm2000-12-027-6/+29
| | | | | | | | | | | | declaration. Asked for by: bde
* | Recouple arc4random(9) to the entropy device. This works whether themarkm2000-12-021-2/+4
| | | | | | | | | | | | | | entropy device is loaded or not. If the entropy device is NOT loaded, the the quality of perturbations supplied by this will suffer.
* | Add splhigh()s to protect against a race conditionjulian2000-12-021-7/+17
| | | | | | | | | | | | | | | | that shows up when running with ethernet bridging at high speed. Submitted by: Chris Csanady <ccsanady@iastate.edu> (and extended by me)
* | Backed out previous commit. Don't depend on namespace pollution inbde2000-12-025-0/+5
| | | | | | | | <sys/buf.h>.
* | Protect p_stat with sched_lock.jhb2000-12-021-0/+6
| |
* | Regen.jake2000-12-026-24/+12
| |
* | Forgot this file in previous commit to remove file kern_threads.cjake2000-12-021-1/+0
| |
* | Remove thr_sleep and thr_wakeup. Remove fields p_nthread and p_wakeupjake2000-12-026-171/+28
| | | | | | | | | | | | | | | | | | | | from struct proc, which are now unused (p_nthread already was). Remove process flag P_KTHREADP which was untested and only set in vfs_aio.c (it should use kthread_create). Move the yield system call to kern_synch.c as kern_threads.c has been removed completely. moral support from: alfred, jhb
* | introduce support for static compilation of the osf/1 module via thegallatin2000-12-022-0/+13
| | | | | | | | COMPAT_OSF1 option
* | exec_osf1_imgact() should return -1 for non OSF1/ECOFF binaries, it shouldgallatin2000-12-021-1/+1
| | | | | | | | | | | | | | | | not return ENOEXEC. This is because image activators should return -1 if they don't claim an image. They should return ENOEXEC if they do claim it, but cannot load it due to sime problem with the image. This bug was preventing static compilation of the osf/1 module. I'm surprised it did not cause more problems.
* | Protect p_stat with sched_lock.jhb2000-12-021-2/+13
| |
* | cleanup: remove redundant mp_machdep.c and non-existent simplelock.s.gallatin2000-12-021-2/+0
| | | | | | | | Ironically enough, simple locks are implemented in mp_machdep.c..
* | Protect p_stat with the sched_lock.jhb2000-12-022-2/+36
| | | | | | | | Reviewed by: jake
* | Protect p_stat with sched_lock.jhb2000-12-022-3/+25
| |
* | Revert attach() back to the old behaviour of calling bus_generic_attach().scottl2000-12-022-8/+10
| | | | | | | | | | | | | | The new way doesn't seem to work reliably and was causing devices to not be seen. Approved by: msmith
* | Make sure to free the sf_buf if we've allocated it but fail to allocatebmilekic2000-12-021-0/+1
| | | | | | | | | | | | | | an mbuf (ENOBUFS) before returning so that we don't leak sf_bufs in the case where we're out of mbufs. Submitted by: David Greenman (dg)
* | Protect p_stat with sched_lock.jhb2000-12-011-1/+7
| |
* | Alter isa interrupt behaviour on alpha. Rather than send a non-specificgallatin2000-12-011-4/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | EOI after the ithread runs, send the EOI when we get the interrupt and disable the source. After the ithread is run, the source is renabled. Also, add isa_handle_fast_intr() which handles fast interrupts by sending an EOI after the handler is run. This fixes the chronic missing interrupt problems under heavy NFS load on my UP1000 and should result in greater stability for alphas which route all irqs through an isa pic. Discussed with: jhb, bde (sending non-specific EOIs early was bde's idea)
OpenPOWER on IntegriCloud