Commit Graph

4004 Commits

Author SHA1 Message Date
mycroft bb90feebac Disable debugging breakpoints by default. 1994-11-29 17:56:49 +00:00
mycroft 5ac2484d95 * Redo most of the message and phase state machines. Multiple pending
message outs should now work correctly (including retransmissions).
Multiple messages ins should be more efficient.  Missing REQ after
reselection phase should now (correctly) cause a wait with ENREQINIT
set.

* Abstract out the reselection out sequence, and use it directly to
get sense info.  (This is somewhat faster than the generic done/sched
sequence.)

* If there are no ACBs available, wait interruptibly for one.

* Leave the interrupt registers alone during message in/out; just
watch for phase change.  Don't (incorrectly) reenable interrupts
during data in/out; defer that to aicintr().

* Handle command pointer per SCSI 2 spec.

* Other minor coding improvements.
1994-11-29 17:50:39 +00:00
briggs e054795fb3 "../scsi/*.h" -> <scsi/*.h> 1994-11-29 03:43:52 +00:00
briggs 81828a6a38 Boolean goof. (True) 1994-11-29 03:38:48 +00:00
briggs a9262a3090 SUN_SYS_sigreturn -> SUNOS_SYS_sigreturn 1994-11-29 03:37:37 +00:00
gwr 4bf773963e Update a comment to match code... 1994-11-28 19:33:08 +00:00
gwr c2466a5ffa The sun3 port now has its own db_read_bytes() too. 1994-11-28 19:29:14 +00:00
gwr b57d4010ce Fix syscall arg copyin, etc. 1994-11-28 19:17:07 +00:00
gwr 0caf3c47cb cosmetic 1994-11-28 19:13:18 +00:00
dean fcf0991366 new asc.c from Ralph Campbell 1994-11-28 19:05:54 +00:00
dean 2a5cfe5b41 fix from Jonathan Stone 1994-11-28 18:45:39 +00:00
dean 1e9a7e3573 some fixes and Ultrix compat stuff from Jonathan Stone. 1994-11-28 18:42:21 +00:00
dean 363152617f Ultrix compat stuff from Jonathan Stone. 1994-11-28 18:41:31 +00:00
dean 5b1da4bc9b Removed fp.S 1994-11-28 16:28:20 +00:00
briggs c02010b599 Add a dk_establish null routine. Clean up some whitespace. Needs a
real overhaul.
1994-11-28 04:43:51 +00:00
briggs 9f994613ae compat/sunos/sun_* -> compat/sunos/sunos_* 1994-11-27 22:10:28 +00:00
briggs 82a9bf633f sun_syscall.h -> sunos_syscall.h 1994-11-27 21:47:36 +00:00
briggs 3938bad3ff Attempt to use sys/scsi. 1994-11-27 20:07:38 +00:00
briggs 0656455667 Experimental method of getting a scsi unit # from scsi target. 1994-11-27 19:59:09 +00:00
briggs 38952df227 Re-enable NFSCLIENT 1994-11-27 19:53:10 +00:00
deraadt 1eb4763766 debug code for dma hang 1994-11-27 00:08:34 +00:00
deraadt 41260b47ce i hate ttyX-ignore-cd, but leave it here for a while longer 1994-11-26 07:36:52 +00:00
deraadt c548f8887c repair some stuff 1994-11-25 23:56:21 +00:00
deraadt 7289c28055 cnpollc function for DDB 1994-11-25 23:55:53 +00:00
christos 6a2c060851 fix unary plus typo :-) 1994-11-25 23:19:03 +00:00
deraadt 3a4ca432b2 no need to turn DMA off twice 1994-11-25 23:12:44 +00:00
deraadt 6abee40cb1 prototype wcopy/wzero 1994-11-25 23:11:42 +00:00
deraadt e62b8b3fa2 choose {w,b}{copy,zero} automatically 1994-11-25 23:11:23 +00:00
deraadt 2a90e82894 wzero/wcopy moved to machdep.c 1994-11-25 23:10:47 +00:00
deraadt fc5e9a48e2 wcopy/wzero belong here 1994-11-25 23:10:26 +00:00
deraadt e7728e3080 support obj directory 1994-11-25 23:09:34 +00:00
deraadt f08d8394d7 putchar is void 1994-11-25 23:09:20 +00:00
deraadt 2bfe2ea770 round text segment to __LDPGSZ 1994-11-25 23:09:09 +00:00
ragge 265019bb40 Lots of fixes and updates. 1994-11-25 19:09:49 +00:00
ragge 299c14af0c New handling of pte:s for physio. 1994-11-25 19:09:31 +00:00
ragge ca49094181 Lots of updates & fixes. 1994-11-25 19:08:50 +00:00
ragge eaed555111 Locore.c added. 1994-11-25 19:08:26 +00:00
ragge be8ac345d1 *** empty log message *** 1994-11-25 19:08:04 +00:00
ragge edac8e459c *** empty log message *** 1994-11-25 15:28:26 +00:00
ragge 3257d0f399 Definitions for console & console media. 1994-11-25 15:25:49 +00:00
mycroft cba32aa25f Minor update for new autoconfig. 1994-11-25 08:17:21 +00:00
dean 15cf365b55 more patches from Jonathan Stone 1994-11-24 17:50:49 +00:00
dean b123b45ce0 changed fp.s to fp.S 1994-11-23 23:06:43 +00:00
dean fc16452217 Ultrix compatable device numbers (from Jonathan Stone) 1994-11-23 22:33:46 +00:00
deraadt 58117a4011 ie cards coldstart with a parity error, reset it 1994-11-23 22:28:12 +00:00
mycroft 0649f37219 Officially credit Onno. 1994-11-23 22:00:08 +00:00
dean e5d5a6cf17 thread_wakeup wants (void *) not (int) 1994-11-23 20:46:20 +00:00
deraadt 3835c5ae6a CP exceptions in wrong slots in trap table (noticed by matt@rme.com) 1994-11-23 20:33:22 +00:00
dean 91ed53db13 more changes from Jonathan Stone 1994-11-23 18:13:58 +00:00
dean 342f9cd185 more underscore changes (from J. Stone) 1994-11-23 17:47:53 +00:00
mycroft 8bacafc13c Clean up deleted files. 1994-11-23 09:10:13 +00:00
gwr 433fc1d2f8 Revert trap/dopanic case (avoid recursive traps). 1994-11-23 08:18:17 +00:00
gwr 70b0a8404f Fix a warning. 1994-11-23 08:16:26 +00:00
gwr c4a2c15f0e Add nullcnpollc() so DDB works again. 1994-11-23 08:15:58 +00:00
gwr 49e502d8f9 New cd_match prototype. 1994-11-23 08:13:53 +00:00
mycroft 2058abab15 Forgot to commit this as part of the LBA changes. 1994-11-23 07:56:52 +00:00
mycroft cc44b4600c There's no point in bothering to unlock what we didn't lock. 1994-11-23 07:54:15 +00:00
deraadt 941871d6ab XXmatch change (and a few __P() as well) 1994-11-23 07:02:02 +00:00
gwr dcca0eee6a New cd_match prototype. 1994-11-23 07:01:01 +00:00
deraadt ef31ebbf26 stack trace on crash 1994-11-23 07:00:00 +00:00
gwr e99ed4c957 New cd_match prototype. 1994-11-23 06:58:36 +00:00
gwr 5b330c7b77 sun_* -> sunos_* 1994-11-23 06:46:25 +00:00
gwr 2f20ff9585 Update to match new d_ioctl prototype. 1994-11-23 06:45:48 +00:00
gwr 6ab4f0b024 sun_* -> sunos_* 1994-11-23 06:40:22 +00:00
gwr 00605f6af8 Update sendsig() to match new prototype. 1994-11-23 05:43:00 +00:00
gwr 4e1ccf9989 Add USPACE 1994-11-23 05:18:16 +00:00
mycroft 6dda55519e Fix an outdated comment. 1994-11-23 03:11:01 +00:00
mycroft a3fc466734 Use logical block addressing if available. Be a little more careful about
maintaining timeouts.  Clean up wddump() a bit.
1994-11-23 01:35:43 +00:00
dean 5eef1840c0 catching up with other changes 1994-11-22 18:59:57 +00:00
dean 907abf89c7 put #ifdef DEBUG around call to debug routines 1994-11-22 18:58:43 +00:00
dean 4deb1cf175 run locore.S and fp.S through cpp 1994-11-22 18:57:25 +00:00
mycroft 525fc36e19 Implement 32-bit reads and writes, but for now assume 16-bit mode. 1994-11-22 10:20:16 +00:00
mycroft 3a99ddf172 Add a missing newline in some error messages. 1994-11-22 09:36:56 +00:00
mycroft db3bde9525 Implement EIDE multi-sector PIO and DMA modes, based on code from Onno van
der Linden.  Also, various structural cleanup, and fix two bogons that crept
in, and remove all of the old clustering nonsense.
1994-11-22 09:33:59 +00:00
mycroft 1e01855683 Minor fix to debugging code. 1994-11-22 05:50:48 +00:00
mycroft 85826f0fbe Fudge a couple more fields for ancient disks. 1994-11-22 05:39:16 +00:00
mycroft e1a7bac628 Change some constant names, etc., to better match the ATA spec. 1994-11-22 05:34:49 +00:00
mycroft 95edd299b0 Add still more locking. 1994-11-22 03:23:49 +00:00
mycroft dcb90851c2 Minor change. 1994-11-22 01:21:11 +00:00
mycroft 2c274e6ac8 Clean up deleted files. 1994-11-21 23:32:58 +00:00
gwr 80420e1f71 Lots of changes. Fairly stable now. 1994-11-21 21:38:16 +00:00
gwr 59bf96aa56 Lots of changes. Fairly stable now. 1994-11-21 21:26:40 +00:00
deraadt d3408abf29 C error 1994-11-21 01:56:38 +00:00
mycroft 5bd4115690 Add some missing locking, and some general cleanup. 1994-11-20 22:36:43 +00:00
mycroft d2d4dc4654 Use immediate constants for port numbers < 0x100. 1994-11-20 21:36:44 +00:00
deraadt 274a90762d copyright/Id cleanup 1994-11-20 20:51:32 +00:00
christos f63115591a Included <sys/cdefs.h> since this file is now using __signed.
It broke non gnu compilers.
1994-11-20 18:50:18 +00:00
mycroft 9a3840f2f0 Stylistic changes. 1994-11-18 22:25:12 +00:00
mycroft 79a1309e3c Remove Xwild; it's no longer used. 1994-11-18 22:22:40 +00:00
mycroft e075f8c13d Convert port, IRQ, and DRQ numbers to ints. 1994-11-18 22:18:35 +00:00
mycroft 61800cfa25 Convert port, IRQ, and DRQ numbers to ints. 1994-11-18 22:07:32 +00:00
mycroft 35cdd801e6 Convert port, IRQ, and DRQ numbers to ints. 1994-11-18 21:57:40 +00:00
gwr 2bad33d88e Implements db_write_bytes() for the sun3.
(Needed now that kernel text is read-only 8-)
1994-11-17 05:08:55 +00:00
gwr 81839ca1f7 The sun3 needs its own version of db_write_bytes() so just
added #ifndef sun3 around it for now.  This function should
probably be provided by each port (like sun3/db_write.c).
1994-11-17 05:04:35 +00:00
christos fc8e694056 Fixed error svr4 error code mapping; my old attempt was a noop. 1994-11-16 20:14:42 +00:00
dean e7558eafd1 put #ifdef KERNEL around CLK_TCK define 1994-11-15 19:00:49 +00:00
dean 393ee3693c Surrounded call to debug routine with #ifdef DEBUG 1994-11-15 18:59:40 +00:00
mycroft a2727ec558 Check IRQ 9, not IRQ 2. 1994-11-15 00:00:24 +00:00
mycroft b341f7a8c0 Map IRQ 2 to IRQ 9. 1994-11-14 23:58:56 +00:00
dean 705ee976cf Prepended underscores 1994-11-14 23:48:58 +00:00
mycroft e91e570cfd Shorten the Cyrix handling code a little. 1994-11-14 23:35:48 +00:00
dean add2031dcf Prepended underscores 1994-11-14 23:33:46 +00:00
gwr 2e0e96ea27 Fix disassembly of 8-bit branch displacements (sign extend).
Fix invalid array references disassembling float instructions.
Make the system stack pointer visible in show regs.
Make "sr" a proper short, remove some junk...
1994-11-14 20:53:52 +00:00
mycroft 423bfa0764 Garbage collect unused variable. 1994-11-14 08:53:06 +00:00
deraadt 3dd85af7b5 fixed rss code by charles 1994-11-14 06:09:19 +00:00
christos 40abc70ce2 changed open prototype 1994-11-14 05:55:23 +00:00
christos a96cb110a3 Added new svr4 files 1994-11-14 05:54:30 +00:00
christos 55845b1901 changed open prototype in conf.c; added bsd->svr4 errno mapping in trap.c 1994-11-14 05:53:48 +00:00
deraadt e19990c090 make ldcontrolb() use p->p_addr instead of cpcb for the onfault, also
save current onfault value and act at splhigh.
1994-11-14 04:16:12 +00:00
deraadt 3eb863ca4e cache: write-throough/back, and 4/100 has no cache 1994-11-13 22:12:44 +00:00
mycroft 1c5ac2e88c pcb.h requires segments.h now. 1994-11-08 23:09:21 +00:00
mycroft 38d3366f0f Fix type of `code' arg to sendsig(). 1994-11-08 04:22:39 +00:00
mycroft f875a9efe6 Allocate pv_pages differently. 1994-11-08 01:17:19 +00:00
mycroft d254e95680 Garbage collect some variables which are no longer used. 1994-11-07 10:19:28 +00:00
mycroft 21e911d911 Update for new autoconfig. 1994-11-07 09:03:48 +00:00
mycroft cfae52f542 It's legitimate, if foolish, to mask SIGCONT. 1994-11-07 05:57:28 +00:00
mycroft 297c06de67 Comment previous change. 1994-11-07 05:32:50 +00:00
mycroft 86a2079aef When restarting syscalls, make sure we adjust the PC by the correct amount
depending on what instruction we used to enter the kernel.  Push the
instruction length into tf_err on entry.
1994-11-07 05:26:08 +00:00
mycroft ed993b3930 Two trivial optimizations. 1994-11-07 05:09:04 +00:00
mycroft d5f99262a9 Since npxdna() and npxsave() are only ever called at spl0 now, we can get rid
of all the overhead of frobbing the IDT, and just use a simple flag to tell
npxintr() to ignore interrupts.  This allows lots of code reduction.
Also, update some comments and add some DIAGNOSTIC code to detect is these
assumptions ever become wrong.
1994-11-07 03:39:37 +00:00
mycroft 5133a6cfd7 Only save the FPU state if somebody else needs the FPU, or when forking. 1994-11-06 23:43:17 +00:00
mycroft f3ef31e4aa Oops; forgot to adjust stack offset. 1994-11-06 22:05:08 +00:00
mycroft 37863af7bb Forgot two underscores. 1994-11-06 21:51:47 +00:00
cgd d4510670f1 fix for bug 559, as reported by Jason Thorpe. (fix by me) 1994-11-06 21:49:08 +00:00
mycroft 58b3010e87 Use %eax slightly more effectively in cpu_switch(). 1994-11-06 20:51:46 +00:00
mycroft 915336b97c Approximate the divide by multiplying by 3433/4096. This is faster than
the previous code, and more accurate.  Also avoid saving and restoring
registers.
(The multiplication algorithm was generated by GCC.)
1994-11-06 20:33:35 +00:00
mycroft ddb6e42460 Actually, don't bother checking p == 0 at all. 1994-11-06 20:30:09 +00:00
mycroft 5cf38ebdb4 The case of curproc == 0 `can't happen' unless we're in the idle loop, so
allow it to panic by way of a reference to 0 in other cases.  Explicitly test
for p == 0 in the specific cases where it's needed, and only calculate pcb if
needed.
1994-11-06 20:28:57 +00:00
mycroft 9a84611b06 Move the spl0() from the idle loop to the top of cpu_switch(). (This also
avoids needing to call spllower() below.)  Set curproc immediately after
removing the new process for the run queue, before allowing interrupts again,
for the benefit of schedcpu().
1994-11-06 20:21:29 +00:00
mycroft 205d425f2f As pointed out by Bruce, splsoftclock() needs to process pending interrupts
when lowering the priority.  Do this by simply calling splx().  For the
benefit of NFS (for now), modify splx() to return a value so that
splsoftclock() does.  This work is optimized out for every use of splx()
that ignores the value, so it only affects relevant code.
Also, clean up this file a little.
1994-11-06 01:37:47 +00:00
deraadt 4cd7c0f34e reset scsi bus at attach time 1994-11-05 09:35:54 +00:00
deraadt 880176b15b proc0.p_addr must be initialized before we can take a probe trap, so
that the pcb_onfault will be work
1994-11-05 09:31:05 +00:00
deraadt 0d4b376377 only print the vec if needed 1994-11-05 09:28:06 +00:00
mycroft c2191a2ad0 Fully prototype ssdtosd() and sdtossd(). 1994-11-05 03:20:36 +00:00
mycroft 34c4570d61 Only use ssdtosd() when creating, expanding, or copying the LDT. Keep a copy
of the result in the PCB so it can be loaded quickly on context switches.
1994-11-05 03:17:33 +00:00
mycroft 867ac5e15f Add sdtossd() by HOSOKAWA Tatsumi, and a C version of ssdtosd() by me. 1994-11-05 02:47:02 +00:00
mycroft 600aa2c5f8 Trivial optimizations. Also, make sure we get the overflow correct if
called at spl >= clock.
1994-11-05 02:16:26 +00:00
mycroft 2a9b6f7959 Fix stupid bug in last change. 1994-11-04 23:30:15 +00:00
mycroft 4ec6774e12 Add a simplified version of wdcommand() that can be used in some cases.
Avoid needing a wd_softc inside wdprobe().
1994-11-04 23:18:06 +00:00
mycroft 38420d7db1 Don't need cd_indirect. 1994-11-04 22:51:59 +00:00
mycroft 3df6bf0c0e Trivial stylistic changes. 1994-11-04 21:32:23 +00:00
mycroft 098c6e36e6 Various cleanup. In particular, be much more careful with buffer flags. 1994-11-04 21:19:48 +00:00
mycroft e11ffbc64b Fix a call to math_abort(). 1994-11-04 20:47:07 +00:00
mycroft 854d8d96dc Rearrange slightly. 1994-11-04 19:25:34 +00:00
mycroft cfc4633919 Remove outdated comment. 1994-11-04 19:17:47 +00:00
mycroft 1ec8f8d19c Make IRQ_SLAVE a plain number, too, and remove IRQ{0-15}. 1994-11-04 19:13:49 +00:00
mycroft 95f0ee6cd5 Remove icu.h. 1994-11-04 19:11:13 +00:00
mycroft 2252d31c99 Remove use of IRQ0. 1994-11-04 19:10:46 +00:00
mycroft 8d01374523 Don't need icu.h any more. 1994-11-04 19:08:19 +00:00
mycroft b7acf321cd No longer needs icu.h. 1994-11-04 18:59:34 +00:00
mycroft 195574a7de Change all of the uses of IRQ{0-15} and bit masks to use plain numbers
rather than bit shifting.
1994-11-04 18:57:15 +00:00
mycroft d66f8d7cdb Clean up deleted files. 1994-11-04 18:54:43 +00:00
mycroft 29414c5a0a Change all of the uses of IRQ{0-15} and bit masks to use plain numbers
rather than bit shifting.
1994-11-04 18:34:50 +00:00
mycroft 0ba30791b5 Remove references to isa_devtab. 1994-11-04 09:57:52 +00:00
mycroft f8183b2d0e Make a wrapper match function to check the bus and device numbers, rather
than insisting that every driver do it.
1994-11-04 09:42:18 +00:00
mycroft 9af4fee97d Use kvtop() rather than address arithmetic in a couple of places. 1994-11-04 08:55:53 +00:00
mycroft a980084e46 EISA devices have no DRQ. 1994-11-04 08:24:25 +00:00
mycroft b12de59a0a Make this work with new config code. 1994-11-04 07:39:19 +00:00
mycroft 494ac4a412 Comment out one option that doesn't quite work at the moment. 1994-11-04 07:36:44 +00:00
mycroft d9b8813f0e Correct pcprobe() argument list. 1994-11-04 07:30:51 +00:00
mycroft 372fb664e9 Add needs-flag to audio device. 1994-11-04 07:26:49 +00:00
mycroft 1948fcb3fa Add a new function config_scan(), which just calls a particular function
with each plausibly cfdata, ignoring the priority mechanism completely.
1994-11-04 06:40:11 +00:00
mycroft 2e8ae560f6 Commit incest with the config system for this one specific case. 1994-11-04 03:57:32 +00:00
mycroft fa769b0e97 Set ia_irq correctly. 1994-11-04 02:55:32 +00:00
mycroft e43f08ff4c Add `newvers' target. 1994-11-04 01:22:26 +00:00
mycroft df97a5a224 Oops; don't always include EISA and PCI autoconfig. 1994-11-04 01:08:12 +00:00
mycroft b65100aa43 Remove ep0. 1994-11-04 01:03:35 +00:00
mycroft 10c353cf10 Update to match autoconfig code. 1994-11-04 01:02:40 +00:00
mycroft 8f064215a2 isa.h -> isareg.h, and update prototype of pcprobe(). 1994-11-04 01:00:38 +00:00
mycroft 7773b21b74 Correct an oversight. 1994-11-04 00:53:06 +00:00
mycroft 8ce4eae125 Need some constants from isareg.h. 1994-11-04 00:44:32 +00:00
mycroft 162eab3e92 Use NFDC and NWDC, not NFD and NWD. 1994-11-04 00:41:20 +00:00
mycroft 9e4b0e45fe Use NFDC and NWDC, not NFD and NWD. 1994-11-04 00:40:17 +00:00
mycroft 0fe0a0575c #include device.h, for prototypes. 1994-11-04 00:36:47 +00:00
mycroft d4dd538296 Oops; forgot isacd. 1994-11-04 00:07:39 +00:00
mycroft d58828dd61 vector.h should have been nuked ages ago. 1994-11-04 00:02:39 +00:00
mycroft d35f08ffa6 isa.h -> isareg.h 1994-11-04 00:00:36 +00:00
mycroft 3fca7e771a New version using standard config_*() functions. 1994-11-03 23:53:19 +00:00
mycroft 05ff8766ef Call config_rootfound() once for each bus type. 1994-11-03 23:46:15 +00:00
mycroft ebbdd6473b Update to match autoconfig code. 1994-11-03 23:26:03 +00:00
mycroft 19fc9d55c8 *intr() arg does not need to be void*. 1994-11-03 23:23:38 +00:00
mycroft d0163400d1 Update to match autoconfig code. 1994-11-03 23:21:24 +00:00
mycroft 54cc63645d Update to match autoconfig code. 1994-11-03 23:08:27 +00:00
mycroft d23d1e83dc Use indirect config for subdevices, and add dkdrivers where missing. 1994-11-03 22:55:58 +00:00
mycroft 94cde915db Rename pciprobe() to pcimatch(), and move it to pci_machdep.c. 1994-11-03 22:27:16 +00:00
mycroft 194e83af73 Don't allow configuration of specific PCI function numbers. 1994-11-03 22:18:36 +00:00
mycroft e06bd72a85 Always use direct configuration. 1994-11-03 22:15:19 +00:00
mycroft c5d78ba883 Stylistic changes. 1994-11-03 20:12:05 +00:00
mycroft c6038ad75c Clone from GENERIC. 1994-11-03 19:36:05 +00:00
mycroft eb0b9ef0c2 Clone from GENERIC. 1994-11-03 19:21:01 +00:00
mycroft 6d40ac4041 pms0 would be at irq 12 if it existed. 1994-11-03 19:09:17 +00:00
mycroft 429f49d58f Clone from GENERIC. 1994-11-03 19:00:12 +00:00
pk edb1bc6eae Don't mess with device if it was opened while we napped. 1994-11-03 18:57:33 +00:00
mycroft b3d26ef983 Same as GENERIC, but assumes no local disks or tapes. 1994-11-03 18:45:45 +00:00
mycroft 8b77809605 Clone from GENERIC. 1994-11-03 18:37:51 +00:00
mycroft a955dc06dc Rearrange slightly. 1994-11-03 18:27:13 +00:00
mycroft 8685fcd96b commulti needs slave #. 1994-11-03 18:26:48 +00:00
mycroft eada385a68 Clean up deleted files. 1994-11-03 18:14:54 +00:00
mycroft 39ee7e572c Make a real GENERIC config. 1994-11-03 18:14:50 +00:00
mycroft 283745574f Commit this, though it really does need work. 1994-11-03 16:55:57 +00:00
mycroft c47f94b951 Remove some needs-count specs. 1994-11-03 16:50:50 +00:00
mycroft 0f73b4b80a ep can be on EISA bus. 1994-11-03 16:46:42 +00:00
mycroft 557c715327 Make this actually work. 1994-11-03 16:43:26 +00:00
mycroft 06687c1c8d Make this a little closer to current reality. 1994-11-03 16:25:25 +00:00
briggs 492011ffd7 Modify the serial port initialization slightly so it works on the IIsi. 1994-11-03 16:15:27 +00:00
mycroft ea307925ae Clean up deleted files. 1994-11-03 15:55:47 +00:00
mycroft a5917e2a63 Relocate aha1742.c, in preparation for other changes. 1994-11-03 15:55:40 +00:00
deraadt 8b82ad359d bzzzttt wrong wrong wrong 1994-11-03 04:29:53 +00:00
deraadt 4650de140a kill perftest code 1994-11-02 23:18:25 +00:00
deraadt 88af1ef233 VA_VSEG() should use NBPG 1994-11-02 23:16:59 +00:00
deraadt 138a1d9e01 let busmatch print the level/vec 1994-11-02 23:16:28 +00:00
deraadt 48347d17d4 cleanup 1994-11-02 23:16:02 +00:00
deraadt 9b4d6d44f8 ioctl u_long cmd 1994-11-02 05:00:40 +00:00
deraadt 95e71f1dbd first vme ie card 1994-11-02 05:00:13 +00:00
deraadt 274ac617ef clean vnode_if.[ch] 1994-11-02 04:59:59 +00:00
deraadt 8e89099cf4 ioctl u_long cmd 1994-11-02 04:59:23 +00:00
deraadt b71f248be4 do not have UPAGES definition 1994-11-02 04:59:04 +00:00
deraadt 9f96a3313e various 1994-11-02 04:58:25 +00:00
deraadt 4c10604c2b ioctl u_long cmd 1994-11-02 04:57:53 +00:00
deraadt ae3d0a09f9 sendsig u_long code 1994-11-02 04:57:25 +00:00
deraadt 0fec9f9455 add ldcontrolb 1994-11-02 04:57:02 +00:00
deraadt 46f66f22e0 ioctl u_long cmd 1994-11-02 04:55:47 +00:00
deraadt e3b33c7c21 add wcopy/wzero, and ack VME using ldcontrob 1994-11-02 04:55:20 +00:00
deraadt bdcab43fb8 ioctl u_long cmd; and KNF 1994-11-02 04:54:19 +00:00
mycroft 0f8e6cf968 Make a copy of the LDT when forking. 1994-11-01 06:49:19 +00:00
briggs fc3961284c Raise MCLBYTES to 2048. 1994-11-01 03:53:28 +00:00
briggs 6db067c176 sendsig() and sun_sendsig() code to u_long. 1994-10-31 23:47:23 +00:00
mycroft d296006dca Add USER_LDT. 1994-10-31 21:07:50 +00:00
andrew 20cc8b6c5c Increase NKPDE to cope with 64MB RAM. 1994-10-31 06:30:52 +00:00
briggs 65c76f071d Fixup a couple of missed fixes when updating to hp300/amiga
interpretation of mmutype.  Thanks to Lawrence Kesteloot for
catching the first of these.
1994-10-31 01:15:53 +00:00
cgd 6ac2bbfc35 be more careful with types, also pull in headers where necessary. 1994-10-30 21:43:03 +00:00
cgd f02d90ac83 code is u_long for sendsig() 1994-10-30 19:18:44 +00:00
mycroft 1e951824c4 Clean up deleted files. 1994-10-30 18:43:27 +00:00
deraadt 89a7412206 KNF 1994-10-30 18:43:21 +00:00
briggs 815a0b9aca Fix a buglet in computation of fbsize. Pointed out by monroe@cs.pdx.edu. 1994-10-30 13:34:31 +00:00
cgd a91a509292 add NFS server functionality 1994-10-29 08:34:06 +00:00
mycroft 9769a6a6f7 Various:
* Forget all cached info when opening a new disc.
* If the disc is removed, flush the buffer queue rather than stalling it.
* Set the default label after getting the disc size, and fill in the info
for RAW_PART also.
* Change another use of the unit number to a softc pointer.
* Use a dkdevice to hold the label and open partition masks.
* Force the partition offset to 0 for RAW_PART, regardless of the label.
* Nuke MCDPHYS() and MCDREADRAW; they had a silly bug that caused the code
to not work, and they aren't useful anyway.
Some other minor cleanup.
1994-10-28 23:39:59 +00:00
briggs c184327c57 Make this work. Kludge from grantham. 1994-10-28 19:55:37 +00:00
mycroft 46ba25f017 Add vnode_if.[ch] to the clean target. 1994-10-28 17:05:29 +00:00
deraadt 58f5cef745 repair a type 1994-10-28 16:50:59 +00:00
cgd 022ee8f7fe new RCS ID format. 1994-10-27 04:14:23 +00:00
andrew 5a13863a4b Default to decent performance. 1994-10-27 02:04:18 +00:00
andrew fc67924047 Merge changes from Wolfgang Stanglmeier's 941012 release. 1994-10-27 02:02:00 +00:00
cgd a63beafc2b new RCS ID format. 1994-10-26 21:08:38 +00:00
gwr 87ce99227c Move sun3_round_up_seg() here from param.h as a temporary measure.
Eventually, it should be eliminated from these two files as well.
1994-10-26 19:04:36 +00:00
gwr 6bc6879e46 Remove some unnecessary junk. 1994-10-26 18:56:02 +00:00
mycroft 7269ce27cc We don't need to clear the nested trap bit. 1994-10-26 18:45:40 +00:00
mycroft e75cb9b517 Oops; need spltty() around call to print(). 1994-10-26 18:13:24 +00:00
mycroft 556a119342 Implement *cnpollc(). 1994-10-26 18:06:30 +00:00
briggs a43a6e9bdf Use u_int32_t and friends. Comment a tiny bit... 1994-10-26 18:05:48 +00:00
mycroft 6371cf2364 Add pccnpollc() and comcnpollc(). 1994-10-26 18:00:13 +00:00
mycroft fa0bf2b51a Add a comment. 1994-10-26 17:52:22 +00:00
mycroft e65f99d726 Use pcb_onfault only in the specific cases of protection, alignment, and
page faults.  For all other kernel-mode faults and traps, ignore it.  For
user-mode faults and traps, always ignore it.
Some other minor cleanup.
1994-10-26 17:38:44 +00:00
cgd 20af809ca2 new RCS ID format. 1994-10-26 09:07:55 +00:00
cgd 4fdae7a0ae new RCS ID format. 1994-10-26 08:45:48 +00:00
cgd dafacba9d5 new RCS ID format. 1994-10-26 08:23:50 +00:00
cgd b20f78e63f new RCS ID format. 1994-10-26 08:06:10 +00:00
cgd d62187c043 new RCS ID format. 1994-10-26 08:01:33 +00:00
cgd 57fb77a14e new RCS ID format. 1994-10-26 07:48:18 +00:00
cgd 132b41434c new RCS ID format. 1994-10-26 07:22:45 +00:00
deraadt 6d9927894a vme interrupt support 1994-10-26 07:16:34 +00:00
deraadt 62b9ec5645 rearrangement 1994-10-26 07:16:22 +00:00
deraadt 62b99b6414 vme, and cleanup some messy #ifdef stuff 1994-10-26 07:15:09 +00:00
deraadt ef07868ebe sunos compat changes 1994-10-26 07:13:56 +00:00
deraadt 2036bd665c updates 1994-10-26 07:12:38 +00:00
deraadt a4323e6911 changed sunos_compat, if_ie 1994-10-26 07:12:18 +00:00
deraadt f3299b1470 obio/vme16 Intel Ethernet driver by Chuck Cranor. works on vme16. 1994-10-26 07:11:16 +00:00
deraadt 9773a7aa40 working vme16/32 support 1994-10-26 07:09:41 +00:00
cgd 582d43b33b new RCS ID format. 1994-10-26 02:31:56 +00:00
cgd ec77f0b327 new RCS ID format. 1994-10-26 02:01:24 +00:00
mycroft 4178f44192 Add a missing item to trap_types[]. 1994-10-26 01:32:51 +00:00
mycroft 7be5732f87 Implement new system call entry method. Clean up all of the IDT frobnication
code.
1994-10-26 01:30:59 +00:00
cgd 3f7c5d3d59 add COMPAT_10 1994-10-25 21:31:32 +00:00
mycroft 0ec2e0b85c Attempt to deal with trace exceptions from single-stepping a trap instruction. 1994-10-25 15:33:40 +00:00
mycroft 7594210178 Slight optimization to remrq(); no need to use/save %esi. 1994-10-25 15:13:44 +00:00
mycroft 0b827ee8ee Add some #defines for the offsets into the bootstrap tables. 1994-10-25 14:46:50 +00:00
mycroft 9f00060fdf Map the kernel text read-only if !DDB. Also, shorten many parts of the page
table startup by judicious application of lea.
1994-10-25 14:31:24 +00:00
deraadt b415eb1d1d new from christos 1994-10-24 17:37:34 +00:00
mycroft 260ddbefb7 Rearrange ed_init() slightly, to better correspond to the National manual.
Optimize ed_rint() slightly in the case of multiple packets.  (Avoid an outb
and an inb for each packet).
1994-10-23 23:24:56 +00:00
cgd a6426e2b27 oops; went overboard, and did the user_ldt calls the wrong way. 1994-10-23 21:57:12 +00:00
mycroft 603fe7b5a6 Slight optimization. 1994-10-23 21:38:00 +00:00
mycroft 0114159848 Fix the packet length correction for buggy chips so that it actually works,
and always use it (otherwise short packets could still be corrupted).  Also
produce a diagnostic message if DIAGNOSTIC, since it *is* a hardware bug.
Add an ED_PAGE_SHIFT constant, and use it, to avoid GCC doing horrendous
things with divides and multiplies.
1994-10-23 21:22:13 +00:00
phil 97ad3ec4b8 fixes from Matthias. splimp and other stuff. 1994-10-21 07:03:57 +00:00
mycroft a9ef20740a Make this compile with USER_LDT again. 1994-10-20 23:48:21 +00:00
mycroft be18e790ff Get the label sector right if there is no NetBSD partition in the MBR. 1994-10-20 22:44:37 +00:00
mycroft 79e18619fb Add a cpu_cleanup() function, to support some experimental code. 1994-10-20 22:43:23 +00:00
briggs a509897f98 Before I forget... 1994-10-20 21:21:02 +00:00
mycroft d2b4ef0319 Don't try to load p_priority from the run queue head. 1994-10-20 20:47:53 +00:00
mycroft 3e30a415ae Be careful not to stack multiple timeouts. 1994-10-20 19:22:01 +00:00
mycroft 4d072c5435 Remove the local timeout mechanism, and just use explicit timeout()/untimeout()
calls.
1994-10-20 18:37:45 +00:00
mycroft c11a06cbc2 Always set d_secsize to 512 for now. 1994-10-20 17:03:09 +00:00
mycroft 0862d07daf Don't switch to single-sector mode just because we got a corrected error. 1994-10-20 16:36:21 +00:00
mycroft d4153fff4d Rearrange wdcstart() in a more logical fashion, and eliminate many redundant
calculations.  Also, speed up bad block searching a little.
1994-10-20 16:19:08 +00:00
mycroft cd66683989 openpart -> openmask 1994-10-20 14:08:07 +00:00
mycroft cae71ba91d Various changes:
* Add a dkdevice; move sc_*openpart, sc_label, and sc_cpulabel into it.
* Turn sc_wlabel into a flag, and don't set it automatically in DIOCWLABEL.
* If there is no label, disallow all I/O except to the raw partition.
* Don't allow I/O to `unused' partitions.
* Beginnings of support for block sizes other than 512 bytes.
Other minor changes.
1994-10-20 13:44:46 +00:00
cgd 70d91988ab update for new syscall args description mechanism 1994-10-20 05:34:04 +00:00
cgd d4bf824ec2 update for new syscall args description mechanism 1994-10-20 05:17:21 +00:00
cgd fdc5c13d94 update for new syscall args description mechanism 1994-10-20 05:02:13 +00:00
cgd 5aea0d3fd2 update for new syscall args description mechanism 1994-10-20 04:46:23 +00:00
mycroft cb4e5ecaa5 Print a single `soft error' message when an operation was retried and
eventually completed successfully.  Also fix fsbn numbers in diskerr() calls.
1994-10-20 04:46:17 +00:00
cgd 77e4fe47ef update for new syscall args description mechanism 1994-10-20 04:43:21 +00:00
deraadt 3c8b6feab0 better #ifdef's 1994-10-20 04:40:58 +00:00
cgd 9da8a598cd update for new syscall args description mechanism 1994-10-20 04:38:33 +00:00
mycroft b7c9fb174f Clean up deleted files. 1994-10-20 04:29:36 +00:00
mycroft b2d8a64ebd Make another printf() #ifdef FD_DEBUG. 1994-10-20 03:38:13 +00:00
mycroft 872999d392 Make the verbose diagnostics #ifdef FD_DEBUG. 1994-10-20 00:52:23 +00:00
phil 20cb927177 add timezone support to inittodr (thanks to Phil Budne)
add a working resettodr (ditto)
rcs header
1994-10-19 17:15:16 +00:00
mycroft 70e27da16b Fix up some printfs and make them consistent. 1994-10-18 18:24:35 +00:00
mycroft 8ae8b4ab29 Bug fixes from Rafal Boni:
* Set promiscuous mode flag before configuring card, so it actually works.
* Handle failed TDR commands correctly.
* Remove some apparently defunct and bogus code.
(This driver needs more work.)
1994-10-18 13:40:30 +00:00
cgd 1725b07a35 there are no flags between us (and compiling) any more. 1994-10-18 06:11:15 +00:00
jtc 8c34217adb The ns32k uses IEEE, not vax, floating point arithmetic.
Adjusted constants appropriately.
1994-10-18 00:25:27 +00:00
cgd 805605ce56 kill le0. *sigh* 1994-10-17 21:49:51 +00:00
cgd 320359f8e2 change, requested by Jarle Greipsland 1994-10-17 00:08:29 +00:00
mycroft d00c05633a Wait on the correct bit in the lower half of kbc_get8042cmd(); and some other
mostly stylistic changes.  Based on suggestions from John Hood.
1994-10-16 15:46:13 +00:00
mycroft 06b14c27fd Substantially smaller and faster version, from me. 1994-10-16 15:37:41 +00:00
deraadt 2fb5b874a1 sbus_establish() is sun4c/sun4m specific 1994-10-15 08:57:20 +00:00
deraadt 63afb063a5 declare obio/sbus in the right place
obio/vmes/vmel support only active if requested
1994-10-15 06:01:20 +00:00
deraadt 8986364564 mapiodev takes a bustype argument now
attempt to configure vmel/vmes
1994-10-15 05:53:23 +00:00
deraadt 3ae3c206d7 mapiodev takes a bustype argument now 1994-10-15 05:48:47 +00:00
cgd f501e4e128 make <stdarg.h> a symlink, and clean up ports' stdarg.h and varargs.h files. 1994-10-15 04:57:29 +00:00
cgd 49c34d3337 move arch dependence to archs. clean up a bit. deal with weird MAXPARTITONS. 1994-10-14 18:26:22 +00:00
mycroft 6f5794ecba Fix bugs in dealing with odd-length mbufs in ed_pio_write_mbufs(). From
John Hood.
1994-10-14 13:05:13 +00:00
mycroft 7c01f7ce51 Changes from DG to deal with some old chips that corrupt the packet length. 1994-10-12 13:42:00 +00:00
mycroft 4252ca6644 Correct multicast filter calculation. 1994-10-09 21:19:04 +00:00
mycroft ee5cde2719 Oops; slight optimization to the previous. 1994-10-09 18:10:55 +00:00
mycroft 8c5f95b10b Pretend that trap() and syscall() have no args. 1994-10-09 16:09:27 +00:00
mycroft 88501e66d2 Fix post-decrement loop to not overshoot, so the last change works right. 1994-10-09 15:49:10 +00:00
mycroft 867f51ab31 Only print the return address of an interrupt, trap, or syscall separately if
it was the last frame in the trace; otherwise the info is duplicated.
1994-10-09 15:40:51 +00:00
mycroft 236f105ccd Remove unneeded #includes. 1994-10-09 15:06:23 +00:00
mycroft c3fa5122d6 #include cpufunc.h from pmap.h. 1994-10-09 15:00:38 +00:00
mycroft 2013b5f349 Combine INTERRUPT case with TRAP and SYSCALL. 1994-10-09 14:51:17 +00:00
mycroft f72ff16e5b Oops. Just fake %ebp; nothing else. 1994-10-09 14:45:40 +00:00
mycroft c9cb256e1d If DDB is configured, make a fake stack frame. 1994-10-09 14:43:00 +00:00
mycroft 5d0226231f Do something sensible with interrupt frames. 1994-10-09 14:37:54 +00:00
mycroft aef750bbec Fix slight bogosity in trap frame handling, and combine with syscall case. 1994-10-09 13:48:40 +00:00
mycroft e19b0472c8 Make multiple-inclusion protection consistent. 1994-10-09 13:33:53 +00:00
mycroft c87fbde918 Fix typo. 1994-10-09 13:31:19 +00:00
mycroft 701c0f0058 Eliminate i386_saved_state. 1994-10-09 13:27:07 +00:00
mycroft 8295e4b8f2 Nuke dirty(). 1994-10-09 13:23:21 +00:00
mycroft ebbc8e0476 Make the conversion macros more consistent. 1994-10-09 13:20:37 +00:00
mycroft 18830ce0ea Define pmap_update() using tlbflush(). 1994-10-09 13:11:18 +00:00
mycroft e165978b36 Use pmap_update(), not tlbflush(). 1994-10-09 13:09:11 +00:00
mycroft 47db98b4d9 Eliminate register restrictions where possible. 1994-10-09 13:02:56 +00:00
mycroft 87041c0044 Make reg, frame, and sigcontext more similar. 1994-10-09 12:57:11 +00:00
mycroft 112dac786c Make reg, frame, and sigcontext more similar. 1994-10-09 12:39:05 +00:00
mycroft cce04a7aa1 Put the delay in a macro, and implement it differently. 1994-10-09 09:28:54 +00:00
mycroft cbe87dbb9c Remove BYTE_MSF. 1994-10-09 09:21:53 +00:00
mycroft 13c1794b82 Eliminate tf_isp. 1994-10-09 09:20:28 +00:00
mycroft ae6f1ba610 Don't use pusha and popa. 1994-10-09 09:19:29 +00:00
mycroft 621455a04a Don't allow interrupts while in DDB. 1994-10-09 09:13:18 +00:00
mycroft 25cd76c85f Clean up deleted files. 1994-10-08 15:48:21 +00:00
ragge 4e74a4cb54 Lots of bug fixes; clock and mem files new. 1994-10-08 15:48:00 +00:00
ragge 5a58654e8a Fixed bugs according to old memory system. 1994-10-08 15:46:15 +00:00
ragge e2ce91ebf4 Changes to make files more 4.4/1.0B working. 1994-10-08 15:43:53 +00:00
ragge ae5a011da1 fixed minor problem with mtpr() 1994-10-08 15:42:54 +00:00
ragge b44460ce47 New filenames; changes applying to 1.o Beta 1994-10-08 15:42:27 +00:00
ragge e4b5499885 New information about VAX port 1994-10-08 15:41:42 +00:00
chopps b23c0b1b23 fix typo and add 4091 controller 1994-10-08 09:53:15 +00:00
mycroft b90985ee3d Don't poll the BUSY bit until the SDH register is set. 1994-10-07 11:34:52 +00:00
mycroft 1eaa03e7dc Fix initial allocation of dev array, and simplify the code
slightly.
1994-10-07 09:08:29 +00:00
chopps d54d5bdb36 fix a couple warnings. 1994-10-06 20:34:25 +00:00
chopps 241af64f6d fix typo. 1994-10-06 20:32:04 +00:00
chopps 51ec45b04f Add Amiga 1200 support (kbd and ide) from
osymh@gemini.oscs.montana.edu (Michael L. Hitch)
1994-10-06 19:54:28 +00:00
chopps 9e87730b13 fix flow control and a couple bugs. from:
niklas@appli.se (Niklas Hallqvist) and
osymh@gemini.oscs.montana.edu (Michael L. Hitch)
1994-10-06 19:20:55 +00:00
chopps c36cdf127f add another interrupt entry, for 4091. 1994-10-06 19:11:30 +00:00
chopps 1e14398fc5 add 4091 scsi controller 1994-10-06 19:07:20 +00:00
chopps 7b1a94bdf4 fix a thinko in gvp diag. Add 4091 driver from Michael Hitch
(osymh@gemini.oscs.montana.edu)
1994-10-06 19:06:40 +00:00
phil a412f1e2db Get it to compile again. (agree with sys/ptrace.h) 1994-10-06 06:07:28 +00:00
mycroft 4010acf9f3 Handle Cyrix CPUs a bit differently. Based on suggestions from Michael
VanLoon.
1994-10-06 03:36:40 +00:00
jtc badcc17a6d Add constants required by XPG3 1994-10-05 17:16:29 +00:00
hpeyerl 3595156bad begone 'softcar' begone!
hello 'ppp'.
goodbye 'ccd'.
1994-10-04 17:32:30 +00:00
deraadt 425833d1b0 sun4/300 support works 1994-10-02 21:59:56 +00:00
deraadt f6db3bff3e cannot open on a sun4 machine 1994-10-02 21:58:02 +00:00
deraadt 4c5c5d590c don't pass UPAGES 1994-10-02 21:52:21 +00:00
deraadt e8bff526c3 XXX a nasty 1994-10-02 21:51:37 +00:00
deraadt c28af54721 MONxx -> OLDMON_xx 1994-10-02 21:50:58 +00:00
mycroft 86e7908a72 Make some comments more clear. 1994-10-01 07:19:32 +00:00
mycroft f7b0f89811 Various minor changes to sync better with DG's version. 1994-10-01 07:13:32 +00:00
mycroft 6ddbe860c2 Update from Wolfgang Stanglemeier. 1994-10-01 06:27:56 +00:00
mycroft 0e28696023 Add IO_PPI. 1994-10-01 03:52:46 +00:00
mycroft e32c213d35 Add IO_PMP[12] and IO_PMPSIZE. 1994-10-01 03:48:49 +00:00
mycroft 1e0ffaa7d6 Clean up a little. 1994-10-01 03:42:59 +00:00
mycroft c25a6980ac Add INTRUNMASK(). 1994-10-01 03:37:37 +00:00
briggs 93b8f0f095 Change strategy slightly so that serial console is enabled if internal
console is not--regardless of the value of the boot-time flag.
Suggested by a question from bit@gnu.ai.mit.edu (jim howard - bit.map).
1994-09-30 00:52:44 +00:00
mycroft 53c4d8a7e6 Fix byte order problem in multicast filter calculation. 1994-09-29 21:24:12 +00:00
briggs 49e7735666 Actually implement serial boot (console) echo (minor change to ite.c).
Remove some old junk in ser.c and implement serial console and serial
boot echo (if serial console's enabled, clear echo).
1994-09-29 03:33:13 +00:00
chopps 0e2babc5f4 Fix serious typo. 1994-09-27 05:07:59 +00:00
deraadt 3434480601 USPACE 1994-09-27 01:34:01 +00:00
deraadt 79b1288c6a USPAGE 1994-09-27 01:32:06 +00:00
gwr 2905514717 Fix routines to read/write the stupid intersil clock. 1994-09-26 17:25:21 +00:00
deraadt b965c675f5 sun4 monitor "w" command support 1994-09-25 20:52:58 +00:00
deraadt 360eda8453 sun4 memory error register code 1994-09-25 20:51:51 +00:00
deraadt 03ef730e53 make pmeg_t always a u_short 1994-09-25 20:50:26 +00:00
phil e4cfedf094 *SIGH* use the netinet version of in_cksum.c. Now tcp works on the pc532. 1994-09-25 04:23:17 +00:00
jtc 62db8972b1 Updated bde's comments wrt. i387 control word settings so that they
describe NetBSD, rather than 386BSD 0.1.
Removed 386BSD and BDE control word constants, since we don't need and
will never use them.  However, The iBCS control word constant is kept,
since we might want to use it in the iBCS binary compatibility code.
1994-09-22 00:37:13 +00:00
gwr 7370c0119e Remove some unused definitions (locore.s includes trap.h now). 1994-09-20 16:53:40 +00:00
gwr 1731680194 Move internal swap device to BLK major 4 (xy wants 3).
Add some more comments about Sun device numbers.
1994-09-20 16:52:56 +00:00
gwr 552b122850 Cleanup, use obio_find_mapping() instead of xxx_va 1994-09-20 16:52:21 +00:00
gwr 52ef17d342 Call eeprom driver for eeprom access. 1994-09-20 16:51:09 +00:00
gwr 5189af7e96 Get boothowto flags from PROM flags; fix reboot. 1994-09-20 16:50:28 +00:00
gwr 4e9d2ade85 Add GENERIC support. 1994-09-20 16:49:51 +00:00
gwr 2dba7bd973 New functions to handle writing EEPROM with correct delay.
Also provides ee_get_byte() for early use by other drivers.
1994-09-20 16:35:44 +00:00
gwr 399b15ebf9 Kill CLOCK_VA, INTERREG_VA. Do spl0() and splx(x) inline too. 1994-09-20 16:31:03 +00:00
gwr 7cd046827a Add obio_find_mapping(), kill xxx_va gunk. 1994-09-20 16:28:00 +00:00
gwr 732923addf Cleanup, fix mon_reboot() 1994-09-20 16:26:40 +00:00
gwr 946d055d67 Add prototype for ee_get_byte(), etc. 1994-09-20 16:26:00 +00:00
gwr 1b53c4c36c Add obio_find_mapping() for use by devices that need mappings before
autoconfiguration is done.  It re-uses the PROM's mappings now.
1994-09-20 16:24:45 +00:00
gwr ca73a257a8 Correct some misinformation about recovery time. 1994-09-20 16:23:06 +00:00
gwr 51afe89406 Call obio_alloc with just two args (mappings always writable). 1994-09-20 16:21:44 +00:00
gwr d68c93647d Add dev/eeprom.c 1994-09-20 16:18:34 +00:00
gwr 255acc64c2 Turn on optimization. 1994-09-20 16:17:53 +00:00
gwr 185c98f55a GENERIC kernel works. 1994-09-20 16:17:08 +00:00
deraadt 25ee899992 ask the ROM if we are sun4c/sun4m/sun4d. 1994-09-20 07:48:24 +00:00
mycroft 1c8e17fb63 Prototype spllower(). 1994-09-19 05:05:15 +00:00
mycroft 9b9fa4f2a0 Fix misguided attempt to reorganize bootdev, and fix a few
other miscellaneous bugs and nits.
1994-09-19 00:23:36 +00:00
mycroft cc1852efe4 Add some delays to save the Gateway (lose, lose) keyboard controllers. 1994-09-18 19:33:11 +00:00
mycroft 274730a866 Make genassym depend on genassym.c 1994-09-18 00:57:38 +00:00
mycroft 775fc8b821 Add LED frobnication code, from 4.4-Lite. 1994-09-18 00:43:19 +00:00
deraadt 4fbb770d32 add obio for sun4 1994-09-18 00:03:03 +00:00
deraadt 89670e4cfb generalize bus support for match/attach 1994-09-18 00:02:16 +00:00
deraadt a9f84a682a generalize bus support for match/attach
sun4 code for mapping zs chips
1994-09-18 00:02:02 +00:00
deraadt b694d835f9 add tape/cdrom 1994-09-18 00:00:43 +00:00
deraadt 1be17e489e sbus/* --> dev/*
deal with multiple bus types (start of vme/obio support)
1994-09-17 23:57:27 +00:00
deraadt 152b1d19d4 obio bus driver, for dealing with devices on the sun4 motherboard. 1994-09-17 23:49:58 +00:00
deraadt 1340faab13 Replacement esp (NCR 53C9X + LSI DMA) scsi driver from Peter Galbavy. 1994-09-17 23:48:32 +00:00
deraadt ca83f065d9 "struct confargs" is used for all device match/attach functions. It
tells you what bus (sbus, vme, ...) you are on.
1994-09-17 23:46:32 +00:00
deraadt 1587c23246 sunos disklabels are translated into netbsd disklabels. 1994-09-17 23:45:39 +00:00
deraadt 51150e13d3 new scsi 1994-09-17 23:43:56 +00:00
deraadt 6e2b05d646 new scsi code
sparc/sbus/* --> sparc/dev/*
1994-09-17 23:43:23 +00:00
deraadt 2b2fa40d16 hacked into shape by Peter Galbavy. 1994-09-17 23:28:55 +00:00
mycroft dfe4aeb79f Clean up deleted files. 1994-09-17 23:25:13 +00:00
mycroft 76af9b5da0 Clean up deleted files. 1994-09-17 18:38:46 +00:00
mycroft fd536b8545 vmunix --> netbsd 1994-09-17 00:24:06 +00:00
mycroft b7cc64e049 Check the SB Pro IRQ and DRQ correctly. From Jason Thorpe. 1994-09-16 23:48:22 +00:00
mycroft b073160a6c Fix typo. 1994-09-16 21:17:21 +00:00
mycroft c3e6d1057b Add tun. 1994-09-16 21:14:58 +00:00
mycroft c7003d37d3 Only reset FIFO if changing baud rate. From John Kohl (slightly edited). 1994-09-16 02:50:39 +00:00
jtc 23ece5babc asm -> __asm (PR #463). 1994-09-16 02:39:36 +00:00
briggs 24de5a9668 Nuke a CVS Log entry. Attribute introspection to Brad. 1994-09-12 21:56:36 +00:00
mycroft 8dd2c63b08 Turn off the delay debugging messages again. 1994-09-12 20:29:08 +00:00
briggs 400d187c01 Remove need for "bounds.h." Brad can still use it if he wants ;-) 1994-09-12 03:54:05 +00:00
briggs 9e4e942a2f Give vnd a major number. Didn't work on my last attempt with it, but
this will be needed, anyway.
1994-09-12 03:53:03 +00:00
briggs 5432aef717 Fix a scrolling bug when we have more than 64k to scroll. 1994-09-12 03:38:30 +00:00
briggs 9dc2628062 Snarf chopps changes for bus/addrerr handling. 1994-09-12 03:37:33 +00:00
mycroft 71564b8859 Turn off a few things. 1994-09-11 08:39:36 +00:00
jtc 47b84c16db asm -> __asm (PR #463). 1994-09-10 01:19:45 +00:00
jtc bdd26b125c asm -> __asm (PR #463). 1994-09-10 01:07:08 +00:00
mycroft 0d3651018e Make kernel_pmap a macro that points directly to kernel_pmap_store. 1994-09-09 23:58:48 +00:00
mycroft c7d5bf7b64 Nuke struct ste, struct ste40, struct pte, and HP_PAGE_SIZE. Use my
pv_entry allocator.  Change pa_index() to pmap_page_index() for consistency
with other ports.
1994-09-09 23:52:49 +00:00
mycroft c7b57907f0 Do a hack similar to the AST optimization for SIRs on syscall exit. 1994-09-09 23:40:15 +00:00
mycroft f66f685ad2 Very simple change to avoid a complete register save/restore pair when handling
ASTs after a syscall.
1994-09-09 03:58:38 +00:00
mycroft cf04bbff56 Small optimization for the !DIAGNOSTIC case. 1994-09-09 03:16:03 +00:00
mycroft 675c4aae2b Remove some functions which are in libkern. 1994-09-09 03:11:31 +00:00
mycroft e0fa548a12 Optimize the run queue frobnication, and add some more DIAGNOSTIC checks. 1994-09-09 02:56:54 +00:00
mycroft 289bc175c6 Another tiny optimization. 1994-09-08 21:56:14 +00:00
mycroft a90cca9558 Add a simple pv_page garbage collector (currently disabled). 1994-09-08 21:03:43 +00:00
mycroft 4116a4243e Various changes:
* Inline some functions.
* Eliminate redundant calls to pmap_page_index().
* Reduce the number of TLB flushes in accordance with the i386 SSWG.
* Inline pmap_remove() in pmap_remove_all().  (Most if it is unnecessary.)
* Allocate pv_entry's in pages, and keep a list of free entries in each page,
and a list of pages with free entries.  (Trying to reduce malloc() overhead,
and improve locality of reference.)
* Remove a couple of macros that aren't really useful.
* Remove pmap_kernel() completely.
1994-09-07 20:48:52 +00:00
mycroft d884d26b32 Trivial change of no significance. 1994-09-07 20:32:45 +00:00
mycroft 9d4125d1ec A few small optimizations. 1994-09-07 20:32:00 +00:00
mycroft e4bc47c9fc Remove bogus attempt to map the interrupt pins here. The BIOS is supposed to
do it anyway.
1994-09-06 01:25:22 +00:00
pk 09301847a4 Compile `pamap.c' and `cache.c' with normal compiler rules.
Let's pretend this was a bug in some previous version of gcc...
1994-09-05 06:31:34 +00:00
mycroft faa18f6ce6 New iBCS2 code from Scott. 1994-09-05 01:08:43 +00:00
mycroft 584de55692 Missed an iobase that should be u_short. 1994-09-05 00:21:40 +00:00
pk cdca6c22c4 Don't clobber our input arguments. 1994-09-02 08:13:20 +00:00
mycroft 6c66af544c Fix some ugly code. 1994-09-02 05:12:12 +00:00
jtc b3b55d02f1 Misc changes to make this file more like the asm.h headers used by other
architectures:
	Renamed _C_FUNC() to _C_LABEL()
	Renamed _ASM_FUNC() to _ASM_LABEL()
	Merged _BEGIN_ENTRY with _ENTRY
	Renamed _END_ENTRY to _PROF_PROLOGUE

When assembling with profiling enabled, set up stack frame before calling
mcount() in _PROF_PROLOGUE.  Also omit emitting .long 0's, as they are no
longer used by the profiling code.
1994-09-02 05:02:47 +00:00
chopps bf10f9424c cleanup diagnostic messages 1994-08-31 02:13:01 +00:00
briggs e696d464eb Use vn.h instead of forcing NVN to 0. 1994-08-30 11:04:17 +00:00
mycroft 9ea30b3bf3 Check for bad p_emul. 1994-08-30 06:19:44 +00:00
chopps c7401f5866 catch mis-aligned access errors on the 040. 1994-08-30 05:35:31 +00:00
mycroft 90b0e68767 Clean up deleted files. 1994-08-29 23:12:23 +00:00
cgd e67ae11432 no more floppy bins; these now done by crunch. 1994-08-29 23:10:58 +00:00
mycroft 8bed574dcd Clean up deleted files. 1994-08-26 20:07:34 +00:00
mycroft a13c1b15cc Minor. 1994-08-26 12:43:17 +00:00
deraadt de20d2cf67 Re-enable EISA reset code -- definately needed now. do RX_DISCARD_TOP_PACK
before leaving splhigh(), to give incoming packets a better chance.
1994-08-26 12:11:44 +00:00
deraadt 2a316aaed4 an annoying tab 1994-08-26 10:57:27 +00:00
glass 891ca8ce21 my kernel config 1994-08-26 05:07:00 +00:00
deraadt a7b2e0ee19 tmpmap page for sun4 1994-08-25 20:58:36 +00:00
deraadt 9670b47cb7 sun4: don't use openprom 1994-08-25 20:57:38 +00:00
deraadt 6c2b49032b fix debugging stuff, from dean 1994-08-25 20:18:25 +00:00
paulus 4eba4f38de Fix for bug pointed out by Chuck Cranor in determining whether we
have a bus error or a MMU fault.
1994-08-25 06:18:55 +00:00
paulus c4b36eb4d8 now that we have vn.h, use it 1994-08-25 06:17:28 +00:00
paulus c08d8df629 Fix from Chuck Cranor to avoid null dereference on startup. 1994-08-25 06:16:29 +00:00
paulus c673fc8fb3 Bug fixes from Chuck Cranor. 1994-08-25 06:15:39 +00:00
paulus ce95ef366a added USPACE 1994-08-25 06:14:29 +00:00
paulus f860dc0110 added major number for vn device 1994-08-25 06:13:49 +00:00
paulus 44e8ac8704 minor changes to options 1994-08-25 05:57:10 +00:00
mycroft cb3576ee87 If possible, lower the CPU class if the correct one is not configured. 1994-08-25 00:10:30 +00:00
chopps b6bd104b70 add USPACE 1994-08-24 20:50:35 +00:00
mycroft d20de15399 Add USPACE. 1994-08-24 19:32:36 +00:00
mycroft f6a9558d05 Update to match reality. 1994-08-24 19:28:03 +00:00
deraadt 8411a1f895 fix relocation error 1994-08-24 09:27:57 +00:00
deraadt 34c6caac77 first cut at sun4 on-board io bus 1994-08-24 09:16:46 +00:00
mycroft 5e4a51278b Set the FIFO threshold based on the receive speed, per Mark Weaver. 1994-08-24 07:25:18 +00:00
deraadt 62939dc113 pcvt & bt dynamic irq 1994-08-24 07:10:22 +00:00
mycroft c4eac0f370 Some cleanup, checked by Dean. 1994-08-23 23:40:55 +00:00
gwr 1e707d2dec Add USPACE 1994-08-23 21:11:37 +00:00
briggs cdcb12bf54 Add USPACE. 1994-08-23 20:48:09 +00:00
mycroft 8ac5e10c5d Various code cleanup. 1994-08-23 19:30:12 +00:00
glass a0bba56f2a add USPACE 1994-08-23 19:13:54 +00:00