Commit Graph

1234 Commits

Author SHA1 Message Date
pk
5035080586 Correct page frame calculation after mapdev() interface change. 1996-01-11 11:19:01 +00:00
pk
94bb8db5ad Add shutdownhooks(). 1996-01-10 23:00:33 +00:00
thorpej
926f925088 Re-arrange slightly the si_options special case for the `sw'. 1996-01-09 02:36:58 +00:00
thorpej
3cb556defb Disable DMA by default on the 4/100 `sw' controller. I've had a couple
of reports of data corruption, and would rather be slow and safe until
the DMA bug is fixed.
1996-01-09 02:06:50 +00:00
thorpej
5b39541e48 New generic disk framework. Highlights:
- New metrics handling.  Metrics are now kept in the new
	  `struct disk'.  Busy time is now stored as a timeval, and
	  transfer count in bytes.

	- Storage for disklabels is now dynamically allocated, so that
	  the size of the disk structure is not machine-dependent.

	- Several new functions for attaching and detaching disks, and
	  handling metrics calculation.

Old-style instrumentation is still supported in drivers that did it before.
However, old-style instrumentation is being deprecated, and will go away
once the userland utilities are updated for the new framework.

For usage and architectural details, see the forthcoming disk(9) manual
page.
1996-01-07 22:01:38 +00:00
christos
742cee29e5 Fix setcontext call and sendsig 1996-01-07 19:47:27 +00:00
pk
dd9e5c93c7 Use {U,L} suffices per Charles' recommendation. 1996-01-05 18:10:57 +00:00
jtc
2fce159ff8 Changed name of sigaltstack's ss_base field to ss_sp to match XPG4.2 and
traditional usage.
1996-01-04 22:21:33 +00:00
thorpej
d35bd4bb23 Fix a typo that would bite if the interrupt level were wildcarded in the
kernel config file.
1996-01-04 00:20:19 +00:00
thorpej
0e8ffc850f "si" and "sw" actually interrupt at level 3 (which I quickly discovered
when porting the driver).
1996-01-01 22:46:08 +00:00
thorpej
33582e90e0 "si" and "sw" now have the ncr5380sbc attribute. 1996-01-01 22:44:05 +00:00
thorpej
6d6c652f18 New driver for the Sun SCSI-3 VME and 4/100-series SCSI "Weird" controllers,
utilizing David Jones' new MI NCR 5380 code.  Ported from the sun3 ncr_si.c
and "sw" DMA code written by me.

This driver contains user-configurable "options", which can be set via the
"flags" directive in the kernel configuration file.  By default, only
DMA is enabled.  DMA completion interrupts and reselection may be enabled
by setting the appropriate bits with "flags".  See si.c for details.

Note that DMA completion interrupts and reselection don't yet work on the
4/100 controller.  I don't know why, and it's unlikely that I'll have
the opportunity to find out any time soon.  DMA does work, and results
in a considerable performance increase.

DMA, DMA completion interrupts, and reslection all work on my 4/260 (VME)
system with modern SCSI-II disks.
1996-01-01 22:40:56 +00:00
mycroft
3a89082ff4 Make this work for GCC < 2.6. 1995-12-29 18:53:01 +00:00
thorpej
17eb6e2bc1 Move the old-style disk instrumentation "structures" to a central location
(sys/kern/subr_disk.c) and note that they should/will be deperecated.
1995-12-28 19:16:31 +00:00
mycroft
cd8fe86bcb Make the type of __builtin_va_list a long. 1995-12-26 01:16:24 +00:00
mycroft
0c00214737 Use __builtin_va_alist. 1995-12-26 00:19:09 +00:00
mycroft
fa887628d8 Stylistic changes. 1995-12-25 23:15:31 +00:00
mycroft
72e24c3168 Update for GCC 2.7, and fix bugs. 1995-12-25 22:24:54 +00:00
mycroft
3da4b2a160 The IST_* and IPL_* constants are not bus-specific; don't treat them as such.
Change splimp -> splnet in Ethernet, ARCnet, and FDDI drivers.
1995-12-24 02:29:35 +00:00
pk
644c68a706 Towards machine independency, per cgd: macros to access hardware registers. 1995-12-18 23:58:31 +00:00
pk
b7feb4a35e Enable interrupts; some ROM versions apparently turn them off. 1995-12-13 23:35:18 +00:00
pk
524718f597 Adapt to changed mapiodev() interface. 1995-12-11 12:45:16 +00:00
pk
d2ae46d04e Agree with prototype. 1995-12-11 12:44:39 +00:00
pk
0d1981416d Adapt to changed mapiodev() interface. 1995-12-11 12:43:14 +00:00
pk
f840d96cfe Adapt to changed mapiodev() interface.
Use new DVMA routines.
1995-12-11 12:40:20 +00:00
pk
8f162e4e25 mapdev() now takes a struct rom_reg' argument to get access to iospace'. 1995-12-11 12:34:36 +00:00
pk
2b7034a493 The return of dvma_malloc/dvma_free in a different shape. 1995-12-11 12:32:56 +00:00
pk
528ea56588 Change mapdev() and mapiodev() to take a `struct rom_reg', enabling the use
of IO spaces to construct device mappings.
1995-12-11 12:31:02 +00:00
pk
51c8280df1 Prototype dvma helper functions `dvma_malloc()/dvma_free()' 1995-12-11 12:25:17 +00:00
pk
5c50eeb245 Prevent possible race condition in ctx_alloc().
Remove some bogus casts.
1995-12-11 01:27:28 +00:00
pk
7987c7fce9 Use def_width' and def_height' as default values when getting rom properties. 1995-12-10 22:55:32 +00:00
mycroft
494a9b9eb9 Use the MI LANCE code. 1995-12-10 10:15:06 +00:00
mycroft
46366f34e7 Include vm.h, rather than guessing which files we need. 1995-12-10 06:50:58 +00:00
mycroft
292120bf63 Define __FORK_BRAINDAMAGE. 1995-12-09 04:41:41 +00:00
pk
5c482e804d Don't forget to flush the cache in vunmapbuf(). 1995-12-07 22:18:54 +00:00
pk
480398f38e dvma_malloc => malloc/dvma_mapin. (not the most elegant solution, but it'll
have to do for now).
1995-12-06 22:40:22 +00:00
pk
f6a3272e25 DVMA space is described by the variables dvma_start' and dvma_end'.
Prototype dvma_map*() routines.
1995-12-06 22:35:54 +00:00
pk
7299c7a6c0 Have v[un]mapbuf() allocate from plain kernel map instead of dvma space.
Remove dvma_malloc/dvma_free; drivers should allocate kernel memory and
use dvma_mapin/dvma_mapout to double map it in DVMA space.

Make the resource map `dvmamap' responsible for all DVMA allocation.
The VM map `physmap' only serves the role of placeholder in the VM system.
1995-12-06 22:33:49 +00:00
pk
210b4d80ec Make pmap_prefer() also return a preferred virtual address when there's no
associated physical page.
1995-12-05 23:01:39 +00:00
pk
8a1606d530 Don't return `XS_DRIVER_STUFFUP' too easily; this can hose buffer cache
writes. Say XS_TIMEOUT in stead so the scsi code will retry.
1995-12-01 01:00:55 +00:00
pk
a2a4da4874 Merge changes from sun3 port; per Gordon. 1995-11-29 23:43:42 +00:00
pk
ee08e9085b Extend the size of the "soft" FIFOs which reportedly reduces the number
of FIFO overflows on high baud rates.
However, doing so on all 4 ports would cost a whopping 64KB (at 4096 entries
per FIFO) of kernel memory. So, the FIFOs are now allocated at attach time
allowing the size for the keyboard and mouse ports to be reduced (to 128)
which should be adequate for the 1200 baud they use.
1995-11-29 23:41:31 +00:00
pk
12bfe2e68e Must change u_long' to u_int32_t' as Jason pointed out. 1995-11-29 22:03:53 +00:00
pk
6e53c6a5fd In probe[gs]et() there's no need to check against KERNBASE, as pointed
out by David Jones and Chris Torek.
1995-11-29 01:52:41 +00:00
pk
e9a919b88f Code from Jason to better configure /dev/fb. 1995-11-29 01:45:36 +00:00
pk
ce474272f1 Prevent synch negotiation on ESP100 chips 1995-11-28 22:49:31 +00:00
pk
9bf3251e46 Lots of major and minor bug fixes and changes.
- properly do MSG_IN handshaking, so we can actually receive multi-byte msgs.
- do synch negotiation (now that the above works).
- handle disconnects.
There are a few trial-and-error bits at points where the docs I have are
particularly ambiguous about the state of chip and/or SCSI bus.

Things to do:
- more cleanup
- deal with MSG_OUT phase better
- keep some "config reg 3" bits per target (ie. FASTCLK and FASTSCSI).
1995-11-28 20:49:12 +00:00
pk
def161af38 Careful with signed chars (caddr_t *!).
Merge in 1.1 changes.
1995-11-28 20:26:59 +00:00
pk
0c031adc76 Not all v2 proms understand the `mac-address' word (from Theo). 1995-11-14 15:04:01 +00:00
pk
c7d1d39b3e dk_device => device in controller structure (noted by Jason Thorpe). 1995-11-11 21:12:50 +00:00
pk
c2cd05605d UFS => FFS conversion. 1995-11-08 09:09:20 +00:00
pk
54ec9fb697 Correct test for sun4 machines (thanks Chuck).
Since uname currently does not allow to discriminate different sparc
models, we use `sysctl.hw.cpumodel' to do this somewhat heuristicly:
if the returned strings starts with "SUN4-" a sun4 architecture is
assumed. This information is used to determine whether or not to strip
the a.out header off the 1st-stage bootblocks.
1995-11-07 11:45:24 +00:00
pk
996526aa02 Make error recovery actually work, i.e. don't hang on SCSI bus resets
and re-synchronize before re-scheduling pending operations.
Things seem to be a fair bit stabler now.
1995-11-03 16:47:43 +00:00
pk
bbdb422873 Stop DMA before resetting 1995-11-03 16:34:12 +00:00
pk
c0a156c9fd Map pixels in VME32 space 1995-10-28 23:15:16 +00:00
pk
e4fcc8ab5a Move DMA chip draining to dmaintr() and drain when a (possibly partial)
transfer ends in stead of doing it before starting a new transfer.
Use a different CSR bit to wait for "chip not busy" (may be necessary to
make this conditional on chip revision).
1995-10-24 16:26:54 +00:00
pk
a3f2bf19e4 Various:
- make esp_poll() approximate the given timeout value.
	- introduce esp_abort(), and use it for timed out commands; make		  targets and driver less confused.
	- make {free,ready,nexus}-list management somewhat more coherent.
	- make sure we only proceed down the state machine in espintr()
	  if there really is an interrupt pending.
1995-10-24 16:03:57 +00:00
pk
dc3c0d7db7 Define VIDEO enable bit (per Jason Thorpe; PR#1672). 1995-10-23 23:36:28 +00:00
pk
7a9ddaff33 On-board bwtwo diddles a system enable register bit for video, per Jason
Thorpe (PR#1672).
1995-10-23 23:35:03 +00:00
pk
5e55f88874 Remove `-fno-builtin'. 1995-10-22 17:36:33 +00:00
pk
bbfd54d128 Merge from netbsd-1-1 branch: kgdb_debug_panic decl; PR1633 1995-10-18 21:54:34 +00:00
pk
ce2afd8d64 Sync filesystem before running installboot. 1995-10-11 13:32:57 +00:00
pk
64a90cd0b0 Check input channel in gettick(); for `L1-A' processing. 1995-10-10 20:11:33 +00:00
pk
ebe37d8041 We don't need `rem.o'. 1995-10-10 20:07:54 +00:00
pk
4dcb5917b8 Brr.. libkern.o is way too big for our bootxx.. 1995-10-09 23:25:54 +00:00
pk
be2f4294bf Add `fd' to list of possible boot devices. 1995-10-09 22:34:03 +00:00
pk
c4dc969b09 Point `bootdv' at the disk device instead of the controller (from Jason Thorpe). 1995-10-09 22:33:07 +00:00
pk
53eb8f8175 RASTERCONS now works on sun4's too. 1995-10-09 15:39:34 +00:00
pk
1ad1d128e3 Fill in `ascent' values correctly. 1995-10-08 19:31:44 +00:00
pk
ecf1cf893d Add forgotten `eeprom' configuration. 1995-10-08 11:45:39 +00:00
pk
21a594651a eeprom_match: account for differing physical addresses (per Jason Thorpe). 1995-10-08 11:44:59 +00:00
pk
87a0c55d23 Patch from Jason to factor out a common framebuffer size determination
routine from the individual drivers.
1995-10-08 01:39:13 +00:00
mycroft
c078d7a9f4 Remove __builtin_saveregs(). 1995-10-07 22:27:31 +00:00
mycroft
6287d3d7b2 Remove bzero(). 1995-10-07 22:24:50 +00:00
mycroft
245f292fed Prefix names of system call implementation functions with `sys_'. 1995-10-07 06:25:19 +00:00
pk
48849279bf Script to assist installing second-stage boot programs. 1995-10-05 21:03:12 +00:00
pk
aea329df61 rcons: rc_maxcol and rc_maxrow were swapped. 1995-10-05 13:16:57 +00:00
pk
c8f10b184c Do not set `ra_len' in bwtwomatch(); we only need the pixels for CONSOLE,
but if so, we need the lot.
1995-10-05 00:33:23 +00:00
pk
de0c6a97bd RCONSOLE => RASTERCONSOLE. 1995-10-05 00:26:07 +00:00
pk
c1e313b122 include `files.rcons'. 1995-10-05 00:21:35 +00:00
pk
b79dc038d5 Machine dependent RASTERCONSOLE font definition to be passed to rcons_init(). 1995-10-05 00:02:54 +00:00
pk
859b799130 RCONSOLE => RASTERCONSOLE 1995-10-04 23:44:33 +00:00
pk
d19cacbb03 RCONSOLE => RASTERCONSOLE. 1995-10-04 23:35:13 +00:00
pk
dad96c6619 Add a few constants used for mapping bit and pieces in the kernel driver. 1995-10-04 00:21:27 +00:00
pk
32c023995c Bring reset logic into interrupt state machine. 1995-10-03 17:32:12 +00:00
pk
fcc53878ca Make fbrcons_init() resistant against SUN4s. 1995-10-02 21:48:21 +00:00
pk
cfbe993b9b Update to use <machine/cgtworeg.h> 1995-10-02 21:44:51 +00:00
pk
38d1101ad3 Silly me.. there's already a <machine/cgtworeg.h> 1995-10-02 21:44:22 +00:00
pk
fb58a99a8f Fix some bogus calls to {read/write}disklabel(). 1995-10-02 21:04:45 +00:00
pk
82434458cc Get some of the bugs out. Thanks to David Gilbert for testing. 1995-10-02 09:07:03 +00:00
pk
13dcbfbb29 Make this work with OBJ dirs. 1995-09-30 21:43:35 +00:00
pk
160b38697c Refer to installboot(8) 1995-09-30 21:33:30 +00:00
pk
a029979ad3 Manual page for installboot(8). 1995-09-30 21:32:14 +00:00
pk
691b9f2bfa Avoid reading the filesystem superblock in bootxx; all info now prepared
by installboot (per Gordon Ross).
1995-09-27 09:03:13 +00:00
chuck
b3ecc4c310 make sure devopen() sets pd->devtype properly when BOOTXX is defined
(should be DT_BLOCK).  otherwise the bootxx boot block will fail if
you are on a system with a v2 openprom [because it will not do the
v2_seek in obp_strategy()].    fixes the problem recently noted on
the port-sparc list by matthew green <mrg@eterna.com.au>.   i tested
fix on a ss2 with a v2 prom.
1995-09-26 20:07:53 +00:00
pk
f33cf7c909 Correct cgtwo address. 1995-09-25 22:33:37 +00:00
chuck
b47de9fb69 new "xy" disk device driver from me.
the "xy" driver runs Xylogics 450/451 SMD disk controllers.
1995-09-25 20:35:14 +00:00
chuck
25563b1f82 add config info for "xy" xylogics 450/451 driver 1995-09-25 20:27:30 +00:00
chuck
8d19642cd6 add "xy" xylogics 450/451 config stuff 1995-09-25 20:20:27 +00:00
chuck
1779adf6be minor cleanups:
- don't let pcyl go unassigned if we have a non-sunos disklabel.
		if nothing else, guess pcyl = ncyl + acyl.
	- don't use bogus disklabel data if disk label is invalid
		(xdgetdisklabel() now returns if label was ok or not).
	- move xddriver decl. before start of actual code (cleanup).
1995-09-25 20:12:44 +00:00
chuck
2aff99a206 bug fix: xddummystrat() was clearing all but B_BUSY when it should
have been clearing just B_BUSY (s/B_BUSY/~B_BUSY/).    this
	fixes hard hang when reading disklabel when booting system.
minor clean up: added a few prototypes and only fool with bootpath
	if booting the system (in xdattach).
1995-09-25 16:02:09 +00:00
pk
825bd034de Move pseudo swap block device to major 4 to make way for `xy'. 1995-09-24 20:45:27 +00:00
chuck
4408ec71bf init bad144 table before we actually try and read anything from the
disk, rather than init'ing after reading block 0 [in case we get an
error reading block zero].
1995-09-24 00:27:59 +00:00
thorpej
b903d705da Compile the kernel with -Werror and -fno-builtin. 1995-09-19 23:26:58 +00:00
thorpej
7d7396c414 Make system calls conform to a standard prototype and bring those
prototypes into scope.
1995-09-19 22:53:47 +00:00
pk
c030fa6ef2 Install in /usr/mdec 1995-09-18 23:33:42 +00:00
pk
aa41c30406 Don't strip bootxx on installation. 1995-09-18 23:32:41 +00:00
pk
4025edc861 Make this compile again by calling readdisklabel() with a dummy strategy routine.
XXX - need some reorganization to this from xdopen().
1995-09-18 23:26:39 +00:00
pk
371dd67d56 sync filesystems just prior to writing the bootblocks to the raw device. 1995-09-18 22:36:19 +00:00
pk
974115eb54 Adapt to libsa changes & some other minor nits. 1995-09-18 21:31:44 +00:00
chuck
05f929580f read superblock into &sblock rather than LOADADDR. we can't read
into LOADADDR because it can't be mapped into DVMA space.   this fixes
a dvma panic on a sun4 boot from an xd disk.
1995-09-18 20:24:53 +00:00
chuck
24ba08adca Fixed RELOC's to be hex numbers (as expected) rather than decimal.
(e.g. s/340000/0x340000/).   Fixes DVMA panic on my sun-4/280 when
booted diskless.
1995-09-18 19:52:15 +00:00
pk
f447526366 vmes => vmes0 1995-09-17 21:11:13 +00:00
pk
11f1ea06af These files have moved to sys/dev/rcons. 1995-09-17 21:08:25 +00:00
pk
2c523b5941 Remove rcons lines.
Add cgtwo.
1995-09-17 21:03:36 +00:00
pk
30150218f5 Add cgtwo0. 1995-09-17 21:02:56 +00:00
pk
c5bc107461 cgtwo framebuffer, cloned from cgthree.c and sun3's cg2.c.
Note: untested, shall be considered a framework to get things started..
1995-09-17 20:53:43 +00:00
pk
c92d076f5b Change interface to th `fb' pseudo device to not need the major device
number (a la sun3).
Put in new glue for rcons.
1995-09-17 20:43:39 +00:00
pk
b89096d14f Remove all rcons related stuff from `fbdevice'; this is now defined in
dev/rcons/rcons.h.
1995-09-17 20:41:30 +00:00
pk
a32163f292 Correct some prototypes. 1995-09-17 00:50:54 +00:00
pk
f97c30e5fe Network booting; "oldmon" support; combine all functionality in single images.
Many thanks to Gordon Ross and Chuck Cranor for figuring out and testing
the old monitor (sun4) stuff.
1995-09-16 23:20:22 +00:00
pk
db43cabe32 Re-instate configuration print routines, following Chris' suggestion.
Only prints something if there's no scsi bus to attach.
1995-09-14 20:38:53 +00:00
chuck
851669ceab cleaned up bootpath code:
- v2 openprom disk boot generates "/sbus/esp/sd@3,0" which we translated
	into "/sbus@0,0/esp@0,0/sd@3,0"... this caused esp.c to reject
	the bootpath because it was looking for sbus slot/offset 0,0.
	changed the code to generate "/sbus0/esp0/sd@3,0" to fix this
	panic.
 - when generating fake boot paths, generate them with unit numbers
	rather than slot/offsets (thus, /obio@0,0 becomes /obio0, as
	does vmel and vmes).
 - fixed up comments to reflect these changes
tested new code on: 4/280 (diskless), 4/360 (diskless), 4/360 ("xd" disk),
	4/370 (scsi disk), ss1 w/v1 openprom (diskless),
	ss1 w/v1 openprom (scsi disk), ss2 w/v2 openprom (diskless),
	ss2 w/v2 openprom (scsi disk).
1995-09-12 22:03:02 +00:00
pk
9d7c17bfcb We have no need for esp_print()'; the only child we expect is a scsibus',
and there's nothing to say if it isn't there. Returning -1 is an error
anyway as noted by Chuck Cranor.
1995-09-11 19:41:21 +00:00
pk
0a5ab32e3d We have no need for si_print()'; the only child we expect is a scsibus',
and there's nothing to say if it isn't there.
1995-09-11 19:35:06 +00:00
pk
5bf0d8e4fa si' and sw' are scsibusses. 1995-09-11 19:20:12 +00:00
pk
bac2393fb0 Probe config registers correctly. 1995-09-06 12:35:38 +00:00
pk
896097d846 Fix `le' faked bootpath (PR#1438, Rolf Grossmann). 1995-09-05 21:46:04 +00:00
pk
60a7c4c394 Add `sw' scsi adapter on obio (per Jason Thorpe, PR#1422). 1995-09-05 21:43:09 +00:00
pk
b04e172458 Rename a `xxx' function. 1995-09-04 09:53:53 +00:00
pk
003751356c Patches from Jason Thorpe to deal with 4/110 scsi (PR#1422). Also includes
bootpath glue (PR#1414) (this needs finishing off in disksubr.c).
1995-09-03 22:21:27 +00:00
pk
8bdbf4be70 Update from Jason: eeprom device needs 8-bit access. 1995-09-03 21:55:36 +00:00
pk
af6e3d03cf Add data structures used to interface to the monitor-resident drivers. 1995-09-03 21:36:06 +00:00
mycroft
29053c58b2 SA_ONSTACK --> SS_ONSTACK 1995-09-01 20:05:59 +00:00
pk
9b3308eeec Enable writing of disklabels (Many thanks to Jason Thorpe, Gordon Ross
and Matthew Green).
1995-09-01 17:19:50 +00:00
pk
b1ae3d7339 Garbage collect. 1995-08-29 23:09:29 +00:00
pk
7a84d590e0 Add bwtwo@obio specs (from Jason Thorpe). 1995-08-29 22:50:36 +00:00
pk
bc5b188714 Define bwtwo at obio & vme (from Jason Thorpe). 1995-08-29 22:28:07 +00:00
pk
a4e214aef0 If we're the console, say so in attach message. 1995-08-29 22:26:37 +00:00
pk
a159e45699 Support for sun4 (from Jason Thorpe). 1995-08-29 22:20:01 +00:00
pk
15c28bc39a Sun4s must set baud rate on the mouse port (from Jason Thorpe). 1995-08-29 22:15:35 +00:00
pk
f9777fe9ef Export `eeprom_va' (from Jason Thorpe). 1995-08-29 22:13:19 +00:00
pk
6f1f25d6ed Export `eeprom_va' so drivers can peek at the configuration (from Jason Thorpe). 1995-08-29 22:11:58 +00:00
pk
4bdcdaa4e3 define reserved bits in cfg2 & cfg3 registers correctly. 1995-08-29 20:05:22 +00:00
pk
7e13adf019 Check for absent boot device where it matters. 1995-08-29 19:59:49 +00:00
pk
bd12f97e97 Avoid NULL dereference 1995-08-29 19:53:59 +00:00
pk
70c3710dfd minor tweaks from Matthew Green (PR#1410) 1995-08-27 18:58:48 +00:00
pk
a3bb091c9e Do bootpath matching. 1995-08-18 22:03:59 +00:00
pk
f5252faa3b Include exec header in length computation. 1995-08-18 21:44:01 +00:00
pk
8427fe6126 declarations 1995-08-18 10:47:46 +00:00
pk
7b7773a0c5 Use bootpath_store() to set next boot component; used in dk_establish()
to match `sd' devices against the PROM's boot path.

Detect DMA "overshoots" when handling odd-sized transfer sizes (e.g., xfers
from/to raw partitions), by using the "Transfer Pad" command when the
transfer count reaches zero.
1995-08-18 10:43:46 +00:00
pk
ffbae23b6e Set `bootdv' if booted from the floppy drive. 1995-08-18 10:30:16 +00:00
pk
f828a4b04c Add a debug flag.
Make `sc_dleft' a `ssize_t' since it's involved in a signed
comparison in esp.c.
1995-08-18 10:09:57 +00:00
pk
0596f75779 Use actual bus names (matches Chuck's bootpath code). 1995-08-18 08:20:26 +00:00
pk
6d3873af7e Bootpath construction code and associated SCSI target mapping to aid
the search for the boot-device in `swap generic' kernels.
From Chuck, munched by me.
1995-08-18 08:14:28 +00:00
thorpej
66dcd8fd69 Add entries for the ccd. 1995-08-17 17:40:42 +00:00
pk
42802ac2fa Drop si_minphys(). 1995-08-16 23:01:16 +00:00
pk
de80daa3cd Make MCOUNT() PIC-safe. 1995-08-14 15:44:36 +00:00
mycroft
0a601c87ba Rename two functions. 1995-08-14 02:13:42 +00:00
mycroft
1e69f23205 Export bsd_to_svr4_sig[], and use it. 1995-08-14 02:07:57 +00:00
mycroft
9440382c88 svr4_stack_t --> svr4_sigaltstack 1995-08-14 01:13:29 +00:00
mycroft
7eba547264 Replace splnet() with splsoftnet(). Add splnet(). 1995-08-13 00:29:56 +00:00
pk
ced95e1824 update from Chuck 1995-08-01 21:06:55 +00:00
cgd
ffe4785a58 update SCSI minphys routines' definitions to match standard minphys()
definition and usage.
1995-07-24 07:33:32 +00:00
brezak
f8b400c446 Change DEBUG-->AUDIO_DEBUG. PR# port-sparc/1241 1995-07-19 19:50:16 +00:00
pk
cdbe7b1bc5 Have esp_minphys limit transfers to MAXPHYS bytes. 1995-07-13 12:45:22 +00:00
pk
05daa72b3c Move SUN4 console echo hack cnget() (from Chuck Cranor). 1995-07-13 12:02:19 +00:00
thorpej
f72d54fa88 Zap duplicate RCS id. 1995-07-12 05:47:47 +00:00
pk
8274dc04d1 si scsi driver configs. 1995-07-08 21:33:48 +00:00
pk
89cb640a97 si scsi driver, adapted from sun3 version by Jason Thorpe.
Note: re-arranged to use dev/ic/ncr5380* MI files.
1995-07-08 21:32:47 +00:00
pk
576bc844e5 Support KIOC_GETLAYOUT, so other than US keyboards can be dealt with better. 1995-07-06 05:35:34 +00:00
pk
12bdf1b787 KNFify a bit. 1995-07-05 19:55:02 +00:00
pk
41d3ba8d49 Commit to MACHINE_NONCONTIG. 1995-07-05 18:52:32 +00:00
pk
b8065a4244 remove a db_printf() that has been there for too long. 1995-07-05 18:51:41 +00:00
pk
10a0b4b79e Prototype pmap_dumpsize() and pmap_dumpmmu(). 1995-07-05 18:45:46 +00:00
pk
a796c37169 Re-arrange dumpconf() and dumpsys(). 1995-07-05 18:40:50 +00:00
pk
b34c403839 #define MACHINE_NONCONTIG here, so all vm_*.c files see it timely. 1995-07-05 18:04:48 +00:00
pk
50755a7cc5 typos. 1995-07-05 17:53:41 +00:00
pk
8a8842dc58 remove __BDEVSW_DUMP_OLD_TYPE
#include <sys/cdefs.h>.
1995-07-05 17:46:11 +00:00
pk
337522fb97 Move dumpmmu() over here. 1995-07-05 16:35:42 +00:00
pk
c39b37a262 xd declarations. 1995-07-05 15:53:22 +00:00
pk
9013a7a6e2 Add xxread/xxwrite. 1995-07-05 13:34:10 +00:00
pk
deb17b0f15 make this compile better.... 1995-07-05 13:06:33 +00:00
christos
38f1964478 Fix bug in the KGDB trap definition. Add svr4 software traps. 1995-07-04 22:58:51 +00:00
christos
1fc6525f9b trap.c: Add svr4 software traps. Fix bug in errno mapping.
svr4_machdep.c: Add siginfo translation (from mrg), add some software traps.
1995-07-04 22:57:33 +00:00
paulus
374a7cc9cb Add code to soft01intr to call pppintr. 1995-07-04 12:34:37 +00:00
pk
63eeefb6cd make this compile better. 1995-07-04 10:29:22 +00:00
mycroft
7263209ce6 Make each disk and tape driver define its own read and write functions.
Deprecate rawread() and rawwrite() completely.  Remove d_strategy from cdevsw to
force the abstraction barrier.
1995-07-04 07:15:28 +00:00
christos
e7dcefc56c Add the svr4 network cloning devices. Now telnet(1) works too. There are
still problems with X-windows programs.
1995-07-02 06:13:27 +00:00
christos
45d46cb0c9 svr4_machdep.c: Fix {get,set}context and sendsig.
locore.s: add signal trampoline code for svr4. There is a lot of code
	  duplication there. Maybe we should share the code?
SVR4 status now:
	/bin/sh:	works
	/bin/ls:	works
	/bin/sleep:	works
	/bin/csh:	gives unknown software trap 0xa7
	/bin/ldd:	works
1995-07-01 23:55:31 +00:00
cgd
2b71eae2c7 note that most of dev/ic's contents have changed names 1995-06-28 04:30:30 +00:00
cgd
c83f9c5568 remove unused cpu_exec() definitions. moved "broken swap" markers, for
ports that still need it, to types.h.
1995-06-28 02:55:18 +00:00
cgd
d4a54b73d2 kill user-land DELAY macro, as suggested by gwr. 1995-06-28 02:43:36 +00:00
pk
09ea33db05 Do away with ROM printf. 1995-06-26 23:45:06 +00:00
pk
a50ba2b546 Adapt to new lib{sa,kern} regime. 1995-06-26 23:26:57 +00:00
pk
c7df493055 SMD disk driver, from Chuck Cranor. 1995-06-26 23:06:57 +00:00
pk
70b6d95d44 xd definitions, from Chuck Cranor. 1995-06-26 23:01:06 +00:00
pk
35ad7a1ff3 xd driver entries, from Chuck Cranor. 1995-06-26 23:00:32 +00:00
pk
4f4e4826a6 xd definitions, from Chuck Cranor. 1995-06-26 23:00:31 +00:00
pk
d918ea9e14 xd driver entries, from Chuck Cranor. 1995-06-26 22:59:54 +00:00
pk
3c17e9e63f isbad(), for Chuck's new xd driver. 1995-06-26 22:57:29 +00:00
pk
34c8ad8c30 Define dvma_map{in,out}() to map a buffer into DVMA space. These are
safe for use at interrupt time.

Implement vmapbuf() and vunmapbuf() in terms of these new functions.
1995-06-26 22:46:04 +00:00
pk
68e9c36909 Allocate/initialise DVMA maps and base address.
The fact that `phys_map' is split in half for different kinds of DVMA
allocations is not ideal..
1995-06-26 22:41:23 +00:00
pk
affbc4d346 Define variables and macros for DVMA allocation using rmaps. 1995-06-26 22:36:32 +00:00
pk
04977f87e0 sl_xxx2 -> sl_pcylinder, for Chucks new xd driver. 1995-06-26 22:09:47 +00:00
pk
47ce042b76 Small optimisation & 1 fewer depedency on zs_ctty. 1995-06-26 21:45:31 +00:00
pk
45eb69b276 Use ZS_DELAY() in a few more places (from Gordon Ross, cf. sun3/dev/zs.c). 1995-06-26 21:32:51 +00:00
cgd
2d49c3885b clean up definitions of ctod(), dtoc(), ctob(), btoc(), btodb(), and
dbtob().  remove unused definitions of ctos(), stoc(), and dtob().
1995-06-26 06:55:38 +00:00
cgd
1c0be437b1 define __BDEVSW_DUMP_OLD_TYPE for ports where it's true. clean up
some m68k ports inclusion of common header.
1995-06-26 05:13:37 +00:00
pk
2321aeb62a Reserve arguments 2-4 for SunOS loaders; pass DDB stuff in args 5 and 6. 1995-06-25 23:26:21 +00:00
pk
008504e597 Define IO-cache bit for sun 4/400 machines. 1995-06-25 23:15:58 +00:00
pk
95733d9732 add a couple more sun4m bits. 1995-06-25 21:34:28 +00:00
christos
a5c53e5068 Makefile.arch: - Add -lcompat
- Change clean: target to be a double dep one,
			  so libraries can use the clean target too
1995-06-24 20:47:36 +00:00
pk
dbc54ab48e For a mmu3/sun4 too, it will suffice to just map the first 16MB. 1995-06-24 20:42:59 +00:00
pk
20d86b44f2 Assume kernel is < 16MB in size,
Massage the a few control bits before remapping (from David S. Miller).
1995-06-23 15:44:34 +00:00
pk
ad8e3ed225 Sync with net/if.h 1995-06-23 13:19:44 +00:00
jtc
55fbbc705d Wrap with #ifndef _XXX_FLOAT_H_/#define _XXX_FLOAT_H_/ ... /#endif. 1995-06-20 20:45:22 +00:00
jtc
1d65cdd4ab #include <sys/cdefs.h>.
Wrap __flt_rounds() declaration with __BEGIN_DECLS/__END_DECLS.
1995-06-20 20:32:22 +00:00
cgd
8f62c773e8 don't assume the f_fsnamelen is nul-truncated or longer than MFSNAMELEN 1995-06-18 14:45:14 +00:00
pk
c049178b03 Deal with unrecovered boot devices. 1995-06-10 21:48:29 +00:00
pk
bf834e228d Add UNION option. 1995-06-05 12:46:31 +00:00
pk
c86cba88fe Update SCSI decls. 1995-06-02 17:53:51 +00:00
pk
c0c45bba22 Try to recover from multi-byte messages sent by a target for which we
get an "Illegal command" (why is this?) when we try to pull it in.
On detection of this condition, we reset the SCSI bus and simply stop asking
this target for an identify messages, for now.
1995-06-02 15:46:47 +00:00
pk
4770e5e7c5 Try to recover from multi-byte messages sent by a target for which we
get an "Illegal command" (why is this?) when we try to pull it in.
On detection of this condition, we reset the SCSI bus and simply stop asking
this target for an identify messages, for now.
1995-06-02 13:43:30 +00:00
pk
8066369f08 Deal with v.3 proms (sigh). 1995-06-01 14:36:17 +00:00
pk
ff6265b288 Remove useless msgbufmapped definition.
Two cases of incorrect addressing while not mapped at KERNBASE.
Some more sun4m stuff.
1995-05-30 20:29:42 +00:00
pk
95fcffe527 eeprom device for Sun4 from Jason Thorpe. 1995-05-29 23:56:27 +00:00
pk
555da07c0f eeprom device (from Jason Thorpe). 1995-05-29 23:53:50 +00:00
pk
06ffffda03 Propagate bootpaths 1995-05-27 08:12:51 +00:00
pk
92414dd1c7 Use a different method to discriminate a 82077 from a 82072 (from Chris Torek);
using the NE7CMD_VERSION command is too unreliable.
1995-05-20 20:03:37 +00:00
pk
c3d5b45b6e Name fd register structures more appropriately. 1995-05-20 19:59:52 +00:00
pk
b4cf60ac8a cpu_swapout() not needed after all. 1995-05-19 06:57:41 +00:00
jtc
f90f8d10aa Removing -DKERNEL, transition to _KERNEL has been completed 1995-05-16 22:24:17 +00:00
mycroft
783186a896 Put the address of the ps_strings structure in %g1. 1995-05-16 21:16:37 +00:00
pk
ed9d5444a2 Really test # of status bytes. 1995-05-16 17:02:00 +00:00
pk
85dbf66a28 Remove redundant copy of sunos_sigreturn(). 1995-05-16 16:06:48 +00:00
pk
39a8c80c65 Prototype internal function. 1995-05-16 15:28:01 +00:00
pk
e01c46144d Minimalist implementation of KIOC[SG]KEY. 1995-05-10 16:04:55 +00:00
christos
8e536df8d5 Added sunos_machdep.c; from Matthew Green 1995-05-08 19:14:21 +00:00
christos
9d460c41af Added sunos_machdep.c [from Matthew Green] 1995-05-08 19:13:48 +00:00
pk
530cf06fbb Adapt declaration to stand.h; PR #1036 1995-05-08 18:56:06 +00:00
pk
9ca43d7c14 Remove -I/usr/include from `genassym' line. 1995-05-08 18:02:12 +00:00
pk
c9d346c81c Refuse to map addresses in a MMU hole; the process will get a SEGV.
Changed mmu_pagein() interface.
Small nit in mmu_entry.
1995-05-08 17:56:49 +00:00
pk
51082874bf Use VA_INHOLE().
Define arguments to mmu_pagein() in terms of MI VM constants; an idea from Theo.
1995-05-08 17:53:40 +00:00
pk
2a3952abeb implement cpu_swapout() 1995-05-08 17:50:00 +00:00
pk
f250262185 #define VA_INHOLE() - to test a VA for being in an MMU hole
(and PG_VSHIFT should 29).
1995-05-08 17:47:26 +00:00
pk
9ef5f62072 Start swapping. 1995-05-08 17:34:20 +00:00
cgd
8703076975 define BROKEN_SWAP and/or cpu_swapout as appropriate. 1995-05-05 03:41:51 +00:00
pk
7d244351cf Add `evcnt' field. 1995-05-04 19:43:27 +00:00
pk
089ab8e266 define audio `evcnt' field. 1995-05-04 19:42:36 +00:00
pk
9e61204b61 Tally interrupts. 1995-05-04 19:41:35 +00:00
pk
0c8be3a288 Make sure kbdopen() ships the keyboard reset cmd. 1995-05-02 07:56:42 +00:00
pk
c78dd5a369 New location & definitions for audio driver. 1995-05-01 14:13:45 +00:00
cgd
0e59975fac rename files files for new config/config.old naming 1995-04-28 08:19:12 +00:00
pk
1138c9d047 Handle KIOC[GS]LED ioctls; from Lon Willett. 1995-04-27 14:27:11 +00:00
christos
9cc011e7a1 Use new files.sunos and old files.svr4 :-) 1995-04-27 12:16:31 +00:00
pk
d4f78febcf define LED controls 1995-04-26 14:24:54 +00:00
pk
a1175c74a0 Fast checksummer from Matthew Green. 1995-04-26 13:30:03 +00:00
christos
7a2ec6be4b Make this compile again... 1995-04-25 21:57:10 +00:00
pk
eb8a2e27a0 New audio driver. 1995-04-25 20:08:13 +00:00
pk
794f74a0cf Audio driver name change. 1995-04-25 20:07:10 +00:00
pk
8d90aefeb0 New audio driver from Rolf Grossmann. 1995-04-25 20:05:32 +00:00
pk
e9177420ca NetBSD RCSid 1995-04-25 20:01:23 +00:00
pk
6d68e2f26f Remove duplication of code from subr_autoconf.c 1995-04-25 19:59:49 +00:00
pk
700118da76 Stop-gap measure to prevent panic when select()ing on /dev/console. 1995-04-25 17:52:43 +00:00
pk
64f2d35a0f Do not report each pseudo-DMA overrun as a (soft) error.
Add a small heuristic to converge on an acceptable threshold value.
1995-04-25 14:44:44 +00:00
christos
c5f01c2a4c Fixed comparison in SYS__syscall to be against sysent instead of
p->p_emul->e_sysent [Thanks Charles for pointing this out].
I think that this code needs to be fixed anyway for emulations where
SYS_syscall is not the same number as the NetBSD one (0)... (Only the
alpha port so far?)
1995-04-22 20:49:06 +00:00
christos
de42a28a1b - added sunos_machdep.c for sun3, atari, amiga and mac68k.
- changed machdep.c and trap.c to use struct emul.
- remove ep_setup references.
- added struct emul to all emulations.
1995-04-22 20:24:40 +00:00
pk
d923e0ed9b Use vfs_shutdown(). 1995-04-22 10:00:50 +00:00
pk
87beda7b2a Implement zstty(). 1995-04-21 15:51:26 +00:00
pk
532a15a74e sync with sys/conf.h 1995-04-21 15:50:06 +00:00
pk
6367e0730f Use db_printsym() for calls and branches. 1995-04-19 21:24:29 +00:00
pk
af16724ee9 Avoid dereffing a fuzzy NULL-pointer. 1995-04-19 20:59:29 +00:00
pk
bd52caa035 probeset() was trashing its arguments; fix from Chuck Cranor. 1995-04-19 12:49:27 +00:00
mycroft
72adfee7f7 EMUL_IBCS2_ELF -> EMUL_SVR4; EMUL_IBCS2_{COFF,XOUT} -> EMUL_IBCS2 1995-04-13 20:48:14 +00:00
pk
785f352260 Do a probe in fdmatch() to guard against dumb PROMs. 1995-04-13 20:24:36 +00:00
pk
0e186f0490 Leave swapdev' alone; it's not really on par with rootdev' & `dumpdev'. 1995-04-13 16:46:55 +00:00
pk
e1873796ae Make size of struct pmap' independent of MMU3_L', so libkvm is
usable on all machines.
1995-04-13 16:24:40 +00:00
pk
8fb8266195 Remap regions to KERNBASE on 3-level MMU machines. 1995-04-13 14:52:24 +00:00
pk
2629e0a3f4 Use `register_t'. 1995-04-13 14:50:26 +00:00
pk
71319ed7a3 3-level MMU support: interface to cache_flush_segment() changed. 1995-04-13 14:48:51 +00:00
pk
0cb981d007 crash dumps need revision 1995-04-13 14:45:43 +00:00
pk
d018c82634 3-level MMU changes:
- maintain software MMU state in 3-tuples <region,segment,pagemap>
	  for all types of MMU.
	- maintain hardware region maps (in `region' alternate address space)
	  for machines that have them (identified by variable `mmu_3l').
Use <sys/queue.h> for most lists.
1995-04-13 14:38:11 +00:00
pk
49f6b3a9e0 3-level MMU changes. 1995-04-13 14:32:44 +00:00
pk
ed2b31feb0 declare externals 1995-04-13 14:31:39 +00:00
pk
a83a62afb3 3-level MMU changes: variable `mmu_3l' is set for SUN4_400 models. 1995-04-13 13:51:34 +00:00
pk
ba43a19831 3-level MMU changes: software MMU data structures now display a VM model
consisting of `regions', `segments' and `page maps'.
1995-04-13 13:48:46 +00:00
pk
c6bf93b06b Add `region' ASI. 1995-04-13 13:41:02 +00:00
pk
a98a7ab7f8 Use arp_ifinit(). 1995-04-12 08:47:21 +00:00
pk
ee451261d8 iestart() returns nothing. 1995-04-11 09:18:09 +00:00
mellon
4b65c60240 Use endian.h to determine endianness instead of assuming big-endian 1995-04-11 07:06:33 +00:00
mycroft
369e66a776 Sync with the rest of the world. 1995-04-11 06:03:36 +00:00
mycroft
e41d4f5e96 Undo accidental change. 1995-04-11 02:42:23 +00:00
mycroft
0c3bca646e Move CHAN_[AB] into here, and prefix with ZS_. 1995-04-11 02:38:16 +00:00
mycroft
2753eeb55e zsreg.h --> z8530.h 1995-04-11 02:30:53 +00:00
mycroft
9b0d3f54e8 Move this into a generic location. 1995-04-11 02:29:25 +00:00
jtc
8cfef1c855 Sparc specific portions of ieeefp.h (fp_rnd, fp_except, constants, etc.). 1995-04-10 21:14:36 +00:00
jtc
182ee20c36 Changed FLT_ROUNDS from constant to a call to __flt_rounds(), so that the
current rounding mode is accurately reported.
1995-04-10 21:11:42 +00:00
pk
96dd4bc868 clear out two typos. 1995-04-10 19:37:49 +00:00
mycroft
68c8c80929 kernel_pmap --> pmap_kernel() 1995-04-10 16:48:27 +00:00
mycroft
22cefc03bc Bring back pmap_kernel(), for now always inlined as a pointer to
kernel_pmap_store.
1995-04-10 12:41:29 +00:00
mycroft
e5ea545fb6 vmempage --> vmmap, and remove incorrect comment. 1995-04-10 11:57:17 +00:00
mycroft
127e0761c9 Add mmopen(), mmclose(), and mmmmap() where appropriate. Lock vmmap when
needed.  Make types consistent.
1995-04-10 11:54:47 +00:00
mycroft
66845e73cc cn_tty is unneeded. 1995-04-10 10:23:49 +00:00
mycroft
d751b03236 Minor consistency nits. 1995-04-10 10:01:40 +00:00
mycroft
795010b56c map --> mmap 1995-04-10 07:04:18 +00:00
mycroft
d64b72d064 Fdclose --> fdclose 1995-04-10 07:01:31 +00:00
mycroft
a7b5f01159 Update for conf.h, and add a real chrtoblktbl[]. 1995-04-10 07:01:04 +00:00
pk
2e1b0cc690 Adapt to if.h changes. 1995-04-09 12:36:22 +00:00
pk
6e4b0ecfc6 Unblank frame buffer when entering the debugger. 1995-04-09 11:51:10 +00:00
pk
8161907540 Add evcnt_attach(). 1995-04-07 19:46:13 +00:00
christos
f376448086 Added the svr4 files 1995-03-31 02:57:02 +00:00
christos
687b36dccc First pass at the ucontext stuff. 1995-03-31 02:55:59 +00:00
christos
d281894ab6 Moved KGDB trap 0x88 to 0x8a, and made 0x88 to be svr4 syscall [this is what
solaris uses]. Stubs for the missing and currently unused signal functions
stolen from the i386 code.
1995-03-31 02:54:10 +00:00
jtc
db0046c14d KERNEL -> _KERNEL 1995-03-28 19:59:56 +00:00
jtc
71ab4ed9dc KERNEL -> _KERNEL 1995-03-28 18:13:48 +00:00
cgd
fa2133533d invoke ktrsyscall with (vp, code, argsize, args) as args. 1995-03-26 08:03:29 +00:00
jtc
f86410093b Changed name of __weak_reference() to __indr_reference(). They really
are indirect references, and I want to add a real __weak_reference()
macro to <machine/cdefs.h> soon.
1995-03-23 19:58:48 +00:00
jtc
d57fb977bb Added -D_KERNEL to CFLAGS alongside each -DKERNEL. 1995-03-23 19:46:18 +00:00
cgd
b8403d582b don't be so quick to cast macro arguments to unsigned; if the
arguments are really off_t's (e.g. to btodb), then you can lose
information.  This was the "> 4G file systems don't work" bug; physio
uses btodb, which was broken.
1995-03-18 07:22:43 +00:00
pk
cb5b3d7700 Add a pmap_pa_exists() in the non MACHINE_NONCONTIG case too. 1995-03-12 18:56:57 +00:00
pk
36009bdf5f Move a comment back to appropriate place. 1995-03-12 12:25:16 +00:00
pk
5307cf957f Use pmap_pa_exists().
Allow read-only access to the prom via /dev/kmem.
1995-03-10 17:06:15 +00:00
pk
d374af4496 Prototype for pmap_pa_exists(). 1995-03-10 16:56:27 +00:00
pk
eedb392003 Missing #ifdef MACHINE_NONCONTIG.
Add function pmap_pa_exists() to assist /dev/mem.
1995-03-10 16:54:40 +00:00
pk
03b9b4a4bb Add a CR. 1995-03-08 20:58:05 +00:00
pk
d61b2703ef Allow for multiple virtual PROM addresses. 1995-03-08 15:51:03 +00:00
pk
e924f34f97 Sync with sys/audioio.h for now, so SunOS compat works. 1995-03-04 09:58:45 +00:00
pk
26cb5d939f Move SunOS audio_info compat to <compat/sunos/sunos_ioctl.c>. 1995-03-04 09:55:40 +00:00
pk
06e2052190 Update for 4/100 1995-03-02 20:53:11 +00:00
pk
35ef499ff3 Make more generic. 1995-03-02 20:48:17 +00:00
pk
b14295f12d Tally interrupts. 1995-03-02 20:47:11 +00:00
pk
3edb6c02ff Rename audio*() functions to avoid conflicts with sys/dev/audio.c; this is an
emergency measure, driver needs to be converted to generic audio subsystem.
1995-03-02 20:37:46 +00:00
pk
c897fc5127 Better 4/100 support. 1995-03-01 21:09:19 +00:00
pk
e9df09cd2a Make setjmp/longjmp available on non-DDB kernels. 1995-03-01 09:26:29 +00:00
mycroft
4c34be6b52 Clean up deleted files. 1995-03-01 00:00:00 +00:00
pk
98e7d1b075 Clean NONCONTIG stuff, allocate and map pv_table[] in pmap_init() entirely. 1995-02-23 20:00:57 +00:00
pk
02b0f2a929 floppy levels. 1995-02-23 19:58:16 +00:00
pk
6af8527cf9 cache_flush() only if vactype!=VAC_NONE 1995-02-23 19:56:24 +00:00
pk
e6e777cf5d Reorganize to use fast interrupt handler. 1995-02-22 21:37:15 +00:00
pk
7278038bbd add bsd_fdintr.s 1995-02-22 21:32:34 +00:00
pk
f80c189dc5 Defines for floppy trap handler. 1995-02-22 21:17:53 +00:00
pk
366442b2e4 Really fix `call n'. 1995-02-22 21:16:51 +00:00
pk
171313384b Floppy trap handler. 1995-02-22 21:14:18 +00:00
pk
6b609180cd Have a variable point at the auxiliary-io register. 1995-02-22 21:13:01 +00:00
pk
a9593288ee More on MACHINE_NONCONTIG: gain back wasted pages (and make it work).
Still more GC required.
1995-02-22 21:06:22 +00:00
mycroft
a01e93cf4e Use the twiddle() from libsa. 1995-02-22 08:18:18 +00:00
pk
938030c27d fd declarations. 1995-02-18 09:42:19 +00:00
pk
493dddc814 Admit we have a floppy driver. 1995-02-18 09:40:30 +00:00
pk
021803bc33 Little routine to manipulate auxreg bits. 1995-02-18 09:33:29 +00:00
pk
7e192d22be call argument off by two bits 1995-02-17 20:45:12 +00:00
pk
01fb0f1f1f More work on MACHINE_NONCONTIG stuff. 1995-02-17 20:37:13 +00:00
pk
67f4f632d0 More PG_TYPE checks/optimizations suggested by Theo. 1995-02-17 20:33:15 +00:00
pk
6d511104e2 Pilot sun4c floppy driver based on i386 version;
- same limitations as isa/fd.c: just read/write
  - in need of a fast interrupt handler
1995-02-17 20:28:32 +00:00
pk
cbbc1b0293 match/attach on sun4's obio bus, from Theo. 1995-02-17 09:47:36 +00:00
pk
018d2f1b4f Working "config generic" support; from Theo. 1995-02-16 21:51:38 +00:00
pk
d6faa0bf9c Working "config generic" support; from Theo. 1995-02-16 21:42:50 +00:00
pk
21215997b0 minor clean
add "auxiliary-io" to list of openboot-specials; needed for floppy driver.
1995-02-16 20:39:17 +00:00
pk
e1ca20871c missing entry in bdevsw[] 1995-02-15 14:27:36 +00:00
pk
0da3039154 More fixes from Chuck for IO pages related bugs that surfaced with the 4/110.
Also, pay attention to PMAP_TNC bits that can enter from the VM. These
come from the `device' pager, ie. pages associated with mmap()ed devices.
1995-02-10 20:40:47 +00:00
pk
61572da6bf Fix two typos. 1995-02-09 14:38:54 +00:00
pk
b96f801acb We have more registers. 1995-02-09 10:34:21 +00:00
pk
c8ef09934c Two more VAC_NONE checks. 1995-02-09 10:28:27 +00:00
pk
c7431b8a3c Deal with writing to kernel text (largely stolen from the sun3 port). 1995-02-01 21:51:48 +00:00
pk
f6cd1eeea7 Integrate changes from Chuck Cranor for the Sun 4/100.
Support for multiple register banks on SBUS devices (based on patches
from Francis Dupont).
Highlights:
	romaux defines an array of register spaces.
	pay attention to `vactype'.
	quirks handling 4/100 idiosyncracies.
1995-02-01 12:37:21 +00:00
mycroft
5a7fac721d Handle incoming messages longer than 1 byte correctly. 1995-02-01 09:50:18 +00:00
pk
b846c1f9cd TIOC[SC]DTR ioctls. 1995-01-29 18:56:01 +00:00
jtc
830a53e394 ANSI says that <stdarg.h>'s va_end macro must expand to a void expression.
For consistancy, I'm changing <varargs.h> too.
1995-01-28 01:51:46 +00:00
pk
6879dd4b85 Update based on i386 version; from Chuck Cranor. 1995-01-27 09:49:55 +00:00
cgd
b56a5f27d4 add 'maxpartitions' keyword as first 'intesting' thing in the file, to
facilitate the solution of config.new's hardcoded partition number
problems.
1995-01-25 20:45:33 +00:00
cgd
4cc138dd7a vn -> vnd renaming, for consistency 1995-01-25 05:34:51 +00:00
cgd
2ef4ca1f3d vn -> vnd renaming, for consistency 1995-01-25 04:48:07 +00:00
jtc
9540190d45 This file, which will be included by <sys/cdefs.h>, will contain macros
such as __warn_references() and __weak_reference() which are actually
machine dependant.  This will make it easier for ports that are being
bootstraped with ELF and ECOFF based toolchains.

This change also introduces a new macro, _C_LABEL(x).  _C_LABEL expands
its argument, an identifier, to a character string of the identifier
name as it is represented in an object file.

For most ports, _C_LABEL(x) will expand to "_x", for ELF based ports
_C_LABEL(x) will expand to "x".
1995-01-19 01:38:36 +00:00
pk
0bf4b5b424 Remove a debug messsage & add a missing constant. 1995-01-12 07:31:47 +00:00
pk
8290d42317 Use `MACHINE_NONCONTIG' to deal with sparse memory in stead of private
mapping tables. We gain some pages, but there's still some wastage.
For the moment, `MACHINE_NONCONTIG' is still optional.
1995-01-11 21:21:11 +00:00
jtc
d7a8b2964f Only define sig_atomic_t when _ANSI_SOURCE is defined. 1995-01-10 19:01:00 +00:00
pk
b1ad0e3ed5 Count pages correctly in pmap_bootstrap(). 1995-01-10 16:50:50 +00:00
pk
b87c1bb24a Avoid kernel memory corruption if user buffer too small; return ENOMEM in stead. 1995-01-10 16:47:03 +00:00
pk
6cfe5f9b6f pmap_init() already declared elsewhere. 1995-01-10 16:15:20 +00:00
mycroft
820f9da835 Validate /dev/mem addresses again. 1995-01-09 11:22:06 +00:00
mycroft
85a1830551 Reimplement /dev/mem like other ports. Change physlock to be a plain integer.
Keep the zero page after using it.
1995-01-09 08:58:32 +00:00
mycroft
81b3059a98 ESP_ID -> ESP_SELID 1995-01-07 05:17:59 +00:00
mycroft
bfbd328f85 Sort. 1995-01-07 05:17:15 +00:00
pk
c4a9be4024 Sparc disassembler from David Miller.
Heavily munged by me to:
- reduce table size significantly.
- follow various opcode tables in the Sparc Architecture Manual (V9)
  more closely.
- recognise V8 priviliged instructions.
- fit the DDB interface.
- fix many typos.
Todo:
- get a number of FP ops right (unimportant until V9 is here).
- opcode aliases (`mov',`cmp',`set') for simple instructions.
- better template matching; current method is sloppy and is prone to spurious
  matches.
1995-01-05 21:33:31 +00:00
pk
5188187aff void microtime(). 1995-01-05 16:56:59 +00:00
pk
2a22c853db Adapt to changed SCSI subsystem. 1995-01-02 20:21:01 +00:00
cgd
e5049f4d59 make the definition of _JBLEN mach. dep. header-dependent. 1994-12-20 10:36:27 +00:00
deraadt
4ef28ec578 correct ie[1234] addreses 1994-12-17 23:12:41 +00:00
deraadt
7ba7829654 microtime botch 1994-12-17 08:45:32 +00:00
deraadt
553b2d8f73 ... but we still want the sun4c/sun4m case to work 1994-12-17 05:40:24 +00:00
deraadt
fe0b8c6a90 oclock support for the 4/100 and 4/200 1994-12-16 22:16:58 +00:00
deraadt
8201cbd042 microtime -> lo_microtime (oclock is different)
on machines with 6 register windows, "nop" out a pair of save/restore's (big
performance win on slow 4/100 and 4/200 machines)
1994-12-16 22:11:47 +00:00
deraadt
07f33ae7d1 obio ie support by chuck and me 1994-12-16 22:01:09 +00:00
deraadt
651f7c8f29 open changed again 1994-12-16 22:00:23 +00:00
deraadt
8730c977bd ie[01234] and obclock 1994-12-16 21:53:43 +00:00
deraadt
c68c62c943 SUN4m-only.. 1994-12-16 21:53:25 +00:00
deraadt
2c0a05e7fa oclock for 4/100 and 4/200 1994-12-16 21:53:01 +00:00
deraadt
198bf71a5f do not need clockreg.h 1994-12-16 21:52:36 +00:00
deraadt
1beda66497 increase getprop buffer size 1994-12-16 19:02:16 +00:00
deraadt
e22f3bf9f3 typo 1994-12-15 02:53:00 +00:00
deraadt
e88bd9f695 obio fixes from the two chucks! 1994-12-14 22:17:18 +00:00
mycroft
d42a8b725e Remove extra arg to d_open. 1994-12-14 19:10:08 +00:00
deraadt
0be2ffa45a make BADALIAS() and CACHE_ALIAS_DIST sun4-safe 1994-12-14 06:59:18 +00:00
pk
e8880dceb9 Follow prototype changes in libsa. 1994-12-11 15:18:34 +00:00
pk
c09156bf8b Introduce pmap_prefer() which is used to obtain a cache-friendly virtual
address.
1994-12-10 11:43:56 +00:00
deraadt
ca6f5cbe06 Use symbolic constants to access the prom vector.
Deal with v0 openrom (on sun4c machines only).
1994-12-07 14:47:04 +00:00
mycroft
e5379bfffb Clean up deleted files. 1994-12-07 14:46:06 +00:00
deraadt
4144af8de8 bigtime cleanup 1994-12-07 14:45:54 +00:00
deraadt
1ef32e64bc clean better 1994-12-06 20:54:46 +00:00
deraadt
64eedae2df changer fix 1994-12-06 14:39:47 +00:00
pk
fc1b40eef4 cosmetic change. 1994-12-06 10:39:40 +00:00
pk
2397f57e36 Move DDB argument processing up before our input registers get trashed. 1994-12-06 09:58:09 +00:00
deraadt
03cba26fa6 place message buffer in low physical memory, so that it can survive a
warm boot. the sun4 boot program corrupts some memory there so adjust
upwards on the sun4. (from chuck)
1994-12-06 08:34:00 +00:00
deraadt
31e5af3828 vm access permissions give SIGSEGV
alignment errors give SIGBUS
1994-12-06 00:27:46 +00:00
deraadt
421ec01e3f bdev for st 1994-12-06 00:18:10 +00:00
deraadt
2717a8de7e TIOC[SG]FLAGS from matthew green 1994-12-06 00:01:39 +00:00
deraadt
7cd44df2e3 scsi changer 1994-12-05 13:54:11 +00:00
deraadt
fcb4fd9cb0 COMPAT_10 all around 1994-12-05 09:17:30 +00:00
deraadt
cae9130ef6 enable SYSVMSG,SYSVSEM,SYSVSHM 1994-11-30 19:44:53 +00:00
deraadt
12af703502 wait for ack from chip 1994-11-29 22:35:20 +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
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
deraadt
58117a4011 ie cards coldstart with a parity error, reset it 1994-11-23 22:28:12 +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
deraadt
941871d6ab XXmatch change (and a few __P() as well) 1994-11-23 07:02:02 +00:00
deraadt
ef31ebbf26 stack trace on crash 1994-11-23 07:00:00 +00:00
deraadt
d3408abf29 C error 1994-11-21 01:56:38 +00:00
deraadt
274a90762d copyright/Id cleanup 1994-11-20 20:51:32 +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
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
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
pk
edb1bc6eae Don't mess with device if it was opened while we napped. 1994-11-03 18:57:33 +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
1e951824c4 Clean up deleted files. 1994-10-30 18:43:27 +00:00
deraadt
89a7412206 KNF 1994-10-30 18:43:21 +00:00
deraadt
58f5cef745 repair a type 1994-10-28 16:50:59 +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
5aea0d3fd2 update for new syscall args description mechanism 1994-10-20 04:46:23 +00:00
deraadt
3c8b6feab0 better #ifdef's 1994-10-20 04:40:58 +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
jtc
badcc17a6d Add constants required by XPG3 1994-10-05 17:16:29 +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
deraadt
3434480601 USPACE 1994-09-27 01:34:01 +00:00
deraadt
79b1288c6a USPAGE 1994-09-27 01:32:06 +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
deraadt
25ee899992 ask the ROM if we are sun4c/sun4m/sun4d. 1994-09-20 07:48:24 +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