Commit Graph

15970 Commits

Author SHA1 Message Date
mark
620bc79e36 Fix the copyin(), copyout() argument validation to check for zero
length copy before returning EFAULT for a bad address.
1998-07-29 00:56:08 +00:00
thorpej
1712467308 fic typi 1998-07-29 00:31:01 +00:00
thorpej
8a2c338704 Use a std options file, like other ports do. 1998-07-29 00:19:20 +00:00
thorpej
7698349700 Ah, we use a _different_ ofcons; rename it macofcons to avoid the
name collision.
1998-07-28 23:43:33 +00:00
thorpej
c8f1cea511 Provide SSIZE_MAX. 1998-07-28 23:20:54 +00:00
thorpej
8a3626d966 ofcons attaches to ofbus, not pci! Comment it out, since we do not have
any ofbus support in these configurations.
1998-07-28 23:09:07 +00:00
thorpej
d0714d3f21 Support NFS_BOOT_DHCP. 1998-07-28 23:02:06 +00:00
thorpej
37b70b3064 Change the "aresid" argument of vn_rdwr() from an int * to a size_t *,
to match the new uio_resid type.
1998-07-28 21:39:54 +00:00
thorpej
6dd25080b4 Garbage-collect ofisacs, noted by Scott Reynolds. 1998-07-28 21:19:13 +00:00
pk
9111209fdf In _bus_dmamem_map(), use uvm_km_valloc() to get kernel addresses.
uvm_map() -- which used to be here (why was that?) -- was called with
an uninitialized value in its `start' argument.
1998-07-28 20:46:28 +00:00
drochner
5788941588 document "Intelli"mouse support 1998-07-28 20:22:29 +00:00
drochner
fa0aee147e Use the new mkdtemp() instead of mktemp();mkdir().
Various cleanups (and typecasts) to get lint quiet.
Add remaining prototypes, enable -Wmissing-prototypes -Wstrict-prototypes.
1998-07-28 20:10:53 +00:00
thorpej
3ff8e6493a Don't cast the null residual pointer passed to vn_rdwr(). 1998-07-28 18:34:52 +00:00
thorpej
e8063e5201 Don't cast the null residual pointer passed to vn_rdwr(). 1998-07-28 18:30:54 +00:00
pk
cc0d537633 GC. 1998-07-28 14:04:08 +00:00
eeh
5ed2ac8a95 Apparently we need to specify both slot and offset for all SBUS devices.
This is really annoying....
1998-07-28 04:48:04 +00:00
eeh
fbb376b4ee Fixup problems caused by sys/dev/sbus addition. 1998-07-28 04:46:48 +00:00
eeh
1053f23abf That last change to reduce warnings wasn't quite right. 1998-07-28 04:44:52 +00:00
pk
fb7bb1a359 Remove mbppio.h from the list.
Also stop installing db_machdep.h, fbvar.h, z8530.h.
1998-07-28 00:34:56 +00:00
pk
aaadc9459d This file is now in <dev/sbus> 1998-07-28 00:33:35 +00:00
pk
14f4493376 Magma driver has been moved to <dev/sbus>. 1998-07-28 00:19:22 +00:00
pk
fd9017990f Magma driver has been moved to <dev/sbus> 1998-07-28 00:17:47 +00:00
pk
b0f82d5c73 le' and en' now attach to sbus (and lebuffer) in <dev/sbus>
Other `le' front-ends split into separate files.
1998-07-28 00:10:23 +00:00
pk
4ca3b5c079 We no longer use these. 1998-07-28 00:06:23 +00:00
pk
3d9b1710a7 This file is now in dev/sbus. 1998-07-28 00:05:41 +00:00
pk
c7a2e942b0 Split the `le' driver front-ends into separate files.
The sbus and lebuffer front-end have moved to dev/sbus.
1998-07-27 23:59:11 +00:00
perry
f150e8645e NORVEGIAN -> NORWEGIAN 1998-07-27 23:55:23 +00:00
perry
c4fae2a286 NORVEGIAN -> NORWEGIAN 1998-07-27 23:52:49 +00:00
pk
eec66e52bd Get headers from <dev/sbus> 1998-07-27 22:34:48 +00:00
pk
d1f03e068a <sparc/dev/sbusvar.h> => <dev/sbus/sbusvar.h> 1998-07-27 19:32:42 +00:00
pk
2e6ea67528 Use <dev/sbus/files.sbus> 1998-07-27 19:20:32 +00:00
pk
6cd4c4ea99 Use <dev/sbus/files.sbus>. 1998-07-27 19:20:03 +00:00
pk
db822a6c0a These files are now in <dev/sbus>. 1998-07-27 19:17:50 +00:00
pk
e92f09b2b7 SBU_BURST_* are now in <dev/sbus/sbusvar.h> 1998-07-27 19:16:49 +00:00
augustss
c720383eb3 Nuke USB mouse device. 1998-07-27 18:50:42 +00:00
bouyer
7c050065fd Correct indent. 1998-07-27 18:42:27 +00:00
bouyer
11245c76f7 Ops, forgot FINNISH_KBD. 1998-07-27 18:38:07 +00:00
thorpej
88a83f13de Back out previous. 1998-07-27 18:27:08 +00:00
mjacob
6ebd8cf4e3 Comment out cs device. Kernels don't compile because there is no
cfattach structure found. Leave it to the author to untangle.
1998-07-27 18:02:02 +00:00
mycroft
da2e61d160 Delint. 1998-07-27 13:55:32 +00:00
bouyer
82370f62b3 Document FRENCH_KBD,GERMAN_KBD,NORVEGIAN_KBD options. 1998-07-27 13:39:51 +00:00
mrg
db03bbe99b this has moved (and was never used here anyway) 1998-07-27 06:09:02 +00:00
mrg
f0065b1a61 don't provide a static splx prototype if SPLDEBUG. avoids warnings... 1998-07-27 06:05:55 +00:00
mrg
b8b9e0bd1e move to sys/dev/sbus for lebuffer driver (old path never existed anyway) 1998-07-27 05:52:21 +00:00
mrg
36ee8a045b use lebuffer.c from dev/sbus. 1998-07-27 05:49:02 +00:00
mrg
c5e180526b these have moved to sys/dev/sbus. 1998-07-27 05:48:42 +00:00
mrg
06d5ffd2a8 enable kernfs and mfs. 1998-07-27 05:45:17 +00:00
thorpej
b0b64545e8 Add cs* at isa? port 0x300, wildcard IRQ and memory address, to pull
them from the EEPROM.  Wildcard DRQ to force memory-mode operation; this
value is not available in the EEPROM and must be configured manually.
1998-07-27 01:57:56 +00:00
thorpej
fca2dc28ac Add cs0 at isa? port 0x300, wildcard IRQ and memory address, to pull
them from the EEPROM.  Wildcard DRQ to force memory-mode operation; this
value is not available in the EEPROM and must be configured manually.
1998-07-27 01:51:29 +00:00
thorpej
9b35e91d59 Update for cs* at ofisa? 1998-07-27 01:44:20 +00:00
thorpej
803df07221 Obsolete. 1998-07-27 01:43:24 +00:00
thorpej
6d885615a2 Obsolete. 1998-07-27 01:42:19 +00:00
thorpej
6828d39080 Actually provide the correct bus space tags. 1998-07-27 00:48:15 +00:00
pk
9e8d90ed5c Add a cpu-specific function to flush a pure virtually-indexed/virtually-tagged
cache, which needs to be flushed at context switch.
1998-07-26 23:35:32 +00:00
pk
4998ae50c0 Define hypersparc instruction-cache flush ASI. 1998-07-26 23:29:58 +00:00
thorpej
b9aeeb3fa1 Remove a test, making diagnosis of IRQ problems easier. 1998-07-26 21:24:37 +00:00
augustss
80104fac9f Use wscons attachments for USB keyboard and mouse. 1998-07-26 17:45:53 +00:00
simonb
a211774da1 Fix typo with new poolpage stuff 1998-07-26 10:15:36 +00:00
simonb
8ed2fad5f9 Add missing trailing $ to $NetBSD$ line (PR #5530). 1998-07-26 09:47:22 +00:00
simonb
b454e7c097 Add mainbus0 and cpu definitions, remove extra DS_5100 option. 1998-07-26 09:45:25 +00:00
ragge
a799083fba Fix netboot support for 3100/m76 which uses diagmem for its lance buffers. 1998-07-26 09:01:23 +00:00
is
8eebf1cfc5 yet more atomic operations accessing DraCo registers 1998-07-26 06:45:17 +00:00
pk
c6124a986a This file is no longer used. 1998-07-25 22:19:25 +00:00
pk
6ad50a6691 Allocate physical memory for the pv_table array in bootstrap(), so we
don't have to call VM functions from pmap_init().

Use a memory pool for additional pvlist entries (used for double mappings).

Take care of the cacheable bit on pagetables while we're initializing them,
instead of calling kvm_uncache() afterwards.
1998-07-25 22:01:19 +00:00
augustss
50f955ff49 Nuke ukbd (USB keyboard) device, we use wskbd now. 1998-07-25 15:39:28 +00:00
tsubai
db105fc687 Make vtophys() return non-zero even if the addr < end. 1998-07-25 15:06:28 +00:00
is
401f1157b0 Use atomic operations for DraCo interupt registers 1998-07-25 11:01:11 +00:00
is
2a78f6986c no semicolon, please 1998-07-25 09:24:17 +00:00
is
3d0dcc7181 This has been in amiga/amiga/mtpr.h for a long, long time. 1998-07-25 07:21:20 +00:00
thorpej
f0ff548dd2 Rewrite the probe to use values from the EEPROM for membase and IRQ
if they're not specified by the attach arguments, so that they can
be reported by isaprint().  Rearrange the attach routine to facilitate
splitting this up into front- and back-end drivers.
1998-07-25 01:15:54 +00:00
thorpej
b4195e59cd Change the interface to the EEPROM functions such that they can be called
from the probe routine.
1998-07-24 23:25:13 +00:00
thorpej
260b2a20f2 Provide PMAP_{,UN}MAP_POOLPAGE(). 1998-07-24 22:03:33 +00:00
pk
91f18e727f Remove conditionals on SUN4C+SUN4M.
A few cosmetic changes.
1998-07-24 21:08:16 +00:00
tsubai
1ca186e04d G3 Macs also needs to fix pci io/mem enable bits. 1998-07-24 20:53:57 +00:00
thorpej
2385ee5eca Provide PMAP_{,UN}MAP_POOLPAGE(). 1998-07-24 20:32:07 +00:00
tsubai
5cc05df4ca Comment out "insert root disk..." message.
Remove unnecessary video init.
1998-07-24 15:52:04 +00:00
rvb
d33dfcd7dc Coda glue 1998-07-24 15:40:42 +00:00
tsubai
5f9682b601 Calculate DELAY constant before configure(). 1998-07-24 14:40:40 +00:00
gwr
4eeeee6a7c Print a complaint when no children were specified
in the config file.  Better than a link error...
1998-07-23 23:48:33 +00:00
gwr
4a15b6ba7d Make this like the other redirect includes. 1998-07-23 23:47:02 +00:00
gwr
7e0d396bf4 Add xyc to the dev/xy.c line, similar for xd. 1998-07-23 23:45:24 +00:00
pk
f836b9e8d3 Drop private page table list maintenance; use memory pools instead. 1998-07-23 21:42:40 +00:00
christos
1253bfdf46 Utilize the centralized probe function. 1998-07-23 19:32:42 +00:00
thorpej
8d611b5f32 Remember the product ID and revision. 1998-07-23 19:25:52 +00:00
thorpej
1c9aed40f6 Round-out full-duplex support. 1998-07-23 19:02:55 +00:00
pk
217addc8de Option DDB_ONPANIC needs a value. 1998-07-23 13:03:23 +00:00
drochner
7cdf5d9a77 retry disk accesses (for shaky floppy drives) 1998-07-23 09:59:44 +00:00
thorpej
202d438148 CS8900 driver has of_network_dev property. 1998-07-22 22:09:59 +00:00
thorpej
c10c18b955 Get media from OpenFirmware. 1998-07-22 22:09:18 +00:00
tsubai
04e498dae6 Change from "-G 0" to "-G0" for egcs. 1998-07-22 19:59:21 +00:00
is
0751419914 Back out previous change. It breaks Seyon in a non-obvious way. 1998-07-22 19:13:02 +00:00
leo
101f67646c Add '<ufs/ufs/dinode.h>' to the include list. (Julian Coleman) 1998-07-22 12:49:42 +00:00
thorpej
05ff8b05f5 Print the default media at attach time. 1998-07-21 23:09:25 +00:00
thorpej
02ad0b4eda Add support for ifmedia. 1998-07-21 22:58:31 +00:00
thorpej
aaa383804d Correct the name of the CS8920M id. 1998-07-21 19:54:56 +00:00
tsubai
cc035ff82e Oops, I forgot to commit this with bus_dma stuff. 1998-07-21 18:01:30 +00:00
tsubai
0f572b1caa Preserve OpenFirmware's msr and use it in openfirmware(). 1998-07-21 17:53:50 +00:00
drochner
49bb9d8214 adapt to LANCE driver split 1998-07-21 17:36:01 +00:00
dbj
fc42c3b81d Continued work on the esp scsi driver. Not yet working, but progress continues. 1998-07-21 06:17:35 +00:00
thorpej
52cfd19bcf Ever closer to KNF. 1998-07-21 01:17:14 +00:00
thorpej
bb3c5257c7 Move the cs8900 driver's softc, etc. definitions to an MI location. 1998-07-21 01:04:55 +00:00
thorpej
133efc841f Use <dev/isa/cs89x0var.h> 1998-07-21 01:04:09 +00:00
thorpej
9c9a866a90 Move PacketPage read/write macros in to if_csvar.h 1998-07-21 00:58:46 +00:00
thorpej
bdc9dcbe8a G/c two more unused definitions. 1998-07-21 00:53:57 +00:00
thorpej
23efef79fc Move the code that prints Rx errors into a separate function, rather than
duplicating it.
1998-07-21 00:52:15 +00:00
thorpej
9282418a78 Some cosmetic changes. 1998-07-21 00:40:17 +00:00
thorpej
20fb09c609 G/c more unused debugging goo. 1998-07-21 00:24:45 +00:00
thorpej
6014ea2216 Garbage-collect some unused debugging goo. 1998-07-21 00:23:18 +00:00
thorpej
f45804c4c6 Nuke sc_iobase (and a serious misuse of it!) 1998-07-21 00:22:29 +00:00
thorpej
22ff8accae Use fixed-size types. 1998-07-21 00:20:35 +00:00
thorpej
5b56c35223 Nuke the "pia" typedef. 1998-07-21 00:18:35 +00:00
thorpej
44d02a07d0 Update for <dev/isa/cs89x0reg.h> 1998-07-21 00:11:03 +00:00
thorpej
57488ef1e4 Remove the register descriptions from this file, and split them into
<dev/isa/cs89x0reg.h>
1998-07-21 00:10:11 +00:00
thorpej
c3e7a09c4e Use <dev/isa/cs89x0reg.h> 1998-07-21 00:08:57 +00:00
thorpej
9df67db949 We're not Linux. If we still want driver version strings to be displayed
at boot, then I suppose DEBUG is a reasonable compromise.
1998-07-20 21:18:38 +00:00
thorpej
e99bc6379d Don't deref a NULL tty pointer in the interrupt routine. This can happen
if we're the serial console, we have not yet been open'd, and we get an
interrupt for one reason or another.
1998-07-20 17:35:17 +00:00
kleink
e641acf153 In configure(), initialize the HIL driver's software state before enabling
interrupts; if there's an interrupt pending (i.e. because the user pressed
a key or moved his mice while the kernel was being loaded), the interrupt
handler may safely be run.  Fixes PR port-hp300/5397.
1998-07-20 10:47:50 +00:00
dbj
84676442e2 Commented out some bus_dma code, until I can fix.
(bus_dma.c needs sync with alpha port!)
Continued progress on scsi driver.
A couple of other compiler warning level of tweaks.
1998-07-19 21:41:16 +00:00
thorpej
b4b261bbb0 Remove redundant opt_ddb.h 1998-07-19 20:45:26 +00:00
thorpej
53e3ba1192 Make DDB work again. 1998-07-18 23:02:33 +00:00
is
6054d626f9 Switching dev/ic/lpt.c to use spllpt() instead of spltty(). It doesn't use
tty structures, and on some machines (namely the DraCo internal lpt, and some
multi-i/o boards for Amigas and DraCos), tying spltty to the pretty high printer
interupt level would hurt serial performance.

On all affected ports but Amiga, spllpt() has been defined in machine/intr.h
to be spltty(), thus preserving old behaviour. Portmasters are encouraged to
change is, if they feel something else is better (e.g., one of its own were
possible).
1998-07-18 21:27:25 +00:00
mjacob
99ff11f6b7 locking now out of main framework for isp_reset/isp_init 1998-07-18 21:02:06 +00:00
ragge
50d1442817 Fix PMAP_NEW and make it the default. 1998-07-18 20:35:14 +00:00
is
52ac5e203e Precompute lots of bitmasks etc. in serparam(). Results in slightly better
(but I suspect, insignificant) performance, and also prepares for 8bit +
parity support.
1998-07-18 20:19:33 +00:00
tsubai
2948f65db4 Use unsigned comparison of tbreg in delay(). 1998-07-18 16:23:44 +00:00
pk
116c3be1e5 In dvma_mapout(), make sure to not overrun the buffer when flushing the cache. 1998-07-17 23:05:35 +00:00
thorpej
2fc1260cc0 Implement bus_dmamap_load_uio(). 1998-07-17 21:09:59 +00:00
mark
f6e8a93bac Replace hardcoded constant with VM_MIN_KERNEL_ADDRESS. 1998-07-17 19:12:48 +00:00
thorpej
142429fb34 bus_dma carries TNF copyright. 1998-07-17 19:02:46 +00:00
tsubai
c11b71818d Fix typo. 1998-07-17 18:53:19 +00:00
tsubai
08574665d0 Write (fake) Apple Partition Map when install boot block. 1998-07-17 18:48:37 +00:00
tsubai
0a6758d760 "chaos" PCI controller support.
Clean up.
1998-07-17 18:40:31 +00:00
tsubai
5f7fef3c79 Add bus_dma support. 1998-07-17 18:38:10 +00:00
tsubai
fb93315ffc Change pcitag_t format for bandit. 1998-07-17 18:31:56 +00:00
eeh
97081b51be Make this work for a change. 1998-07-17 02:33:13 +00:00
jonathan
d2ddbe58a2 Add empty opt_cputype.h to satisfy changes committed during
defopt'ing of network options.
1998-07-15 23:57:04 +00:00
mjacob
bc355c6b3f new framework 1998-07-15 19:59:45 +00:00
thorpej
d681d158c7 Remove the raw HYPERchannel kludge. 1998-07-15 17:45:52 +00:00
thorpej
41986b6ad6 Print out the revision as a letter, i.e. 'A', ... 1998-07-15 03:29:47 +00:00
thorpej
25a86ef490 Be a little more thorough when printing the chip name, and also print
the chip revision.
1998-07-15 00:01:17 +00:00
thorpej
45c63f6b7b Massive cleanup of this driver (format police, autoconfig). More to come. 1998-07-14 23:38:49 +00:00
fair
86574cd4f8 patch to add "vi/ve" per PR#4583 1998-07-14 20:29:11 +00:00
mhitch
1143e585fc PS -> SR: PS as alias to SR was removed due to conflict with other usage. 1998-07-14 03:19:17 +00:00
mhitch
32a0c413a5 Oops - check and calculate maxproc with right symbols - maxproc was getting
incorrectly reduced for UVM.
1998-07-14 03:17:05 +00:00
tsubai
dc16918e07 Add support for G3 Mac. 1998-07-13 19:37:28 +00:00
tsubai
14fd96b811 Get framebuffer address from Openfirmware. 1998-07-13 19:31:53 +00:00
tsubai
ed1ec91943 Change VM_MAXUSER_ADDRESS to 0x7ffff000. 1998-07-13 19:28:56 +00:00
tsubai
a0fead97de Add support for Motorola MPC106. 1998-07-13 19:27:13 +00:00
tsubai
37c5807bba Clean up a bit. 1998-07-13 19:22:26 +00:00
tsubai
209036f339 Revert to previous version.
Use ROM font.
1998-07-13 19:14:43 +00:00
ross
d58ad29b6c Kill the old extern mchkinfo pointer and prototype cpu_mchkinfo().
This file has been collecting prototypes and other things used in the MD
code...that's bad...because this is exported to the MI kernel.
1998-07-13 19:10:14 +00:00
ross
48257ecec1 Define cpu_mchkinfo() to locate the mchkinfo struct. This is used to fix
the recent bug where Multias around the world have been aborting back to
SRM with no message at all as they tried to attach a TGA or VGA console,
because the old mchkinfo pointer wasn't allocated prior to use.

And contrary to widespread rumour, this bug has nothing to do with my
LCA IDE mod...that worked just fine. "Not guilty."
1998-07-13 19:07:33 +00:00
ross
0d7c1dede9 Use the new cpu_mchkinfo(). 1998-07-13 18:49:34 +00:00
tsubai
96a07e3f99 Use "boot-device" if "bootpath" is not set. 1998-07-13 17:38:37 +00:00
tsubai
dd998f4113 * Use "boot-device" if "bootpath" is not set.
* Reduce code size.
1998-07-13 17:35:55 +00:00
mark
57c3ea15d8 Guard opt_cputypes.h include with _KERNEL && !LKM 1998-07-13 06:12:08 +00:00
dbj
1c34e07b3f worked on adding nextdma support for scsi driver. 1998-07-13 04:01:39 +00:00
mark
0756290d3f Recognise the ALI M1543 in order to support ALI Aladdin V chipset
motherboards.
1998-07-13 03:31:57 +00:00
mark
7778b00444 Recognise the ALI M1541 in order to support motherboards with the
ALI Aladdin V chipset.
1998-07-13 03:30:52 +00:00
ross
c9e3235f35 1. Don't deref zero on early machine checks.
2. Revert last week's non-KNF {} editing.
1998-07-13 00:14:52 +00:00
augustss
deb00272b9 Add USB support. Supported so far:
* UHCI and OHCI host controllers on PCI
* Hubs
* HID devices withe special drivers for mouse and keyboard
* Printers
1998-07-12 19:51:55 +00:00
veego
29b6a40f77 Add include to SUBDIR to install the machine includes. 1998-07-12 18:06:54 +00:00
veego
72955c78da New Makefile to install the includes, like all the other ports do. 1998-07-12 18:06:15 +00:00
veego
1b46ebe1d9 Add elf_machdep.h to the INCS list. 1998-07-12 17:53:29 +00:00
thorpej
5f59f7e15a Add i386 relocations. 1998-07-12 17:09:43 +00:00
jonathan
e2ff73afa7 Compute SFB pixel dimensions at attach time for PMAGB-BB users.
(qvss-compat needs revision, but should be replaced with wscons anyway.)
1998-07-12 06:26:37 +00:00
thorpej
2aaf359b9f Add m68k relocation types. 1998-07-12 01:39:06 +00:00
thorpej
639cc899cf Basic elf_machdep.h for m68k; doesn't include relocations, yet. 1998-07-12 01:17:58 +00:00
dbj
1e54ab4262 Reserved 8k at top of memory for ROM. This fixes warp9c boot problems.
changed ethernet panic to a warning when out of DMA buffers.  This allows
resuming if you sit in ddb too long.
1998-07-11 07:06:16 +00:00
mhitch
7b04d96d02 Add UVM support to amiga.
Use a second free memory list for 16-bit Zorro II memory other than the
first memory segment.
1998-07-10 20:26:35 +00:00
mhitch
dc9188e3e1 Add UVM support to amiga 1998-07-10 20:23:24 +00:00
mhitch
6e2d9eae80 Support two free memory lists; second list will be 16-bit Zorro II memory. 1998-07-10 20:16:21 +00:00
perry
9ca2a54c6d Set soundblaster irq to 5 by default. 1998-07-09 20:59:38 +00:00
drochner
d1da31d671 redo the PCI configuration mode detection - should make some less
standard compliant PCI chipsets work (Compaq, Connectix emulated Triton)
fix the bug reported in PR port-i386/5727 (soda@sra.co.jp)
1998-07-09 20:19:52 +00:00
scottr
7b68890c7f Fix a problem with the reworked reboot code on the IIci: don't try to
reference variables after the MMU is disabled.
1998-07-09 06:02:50 +00:00
mark
7b6cd6a0a6 Guard opt_cputypes.h include with _KERNEL && !LKM. 1998-07-09 02:43:25 +00:00
mjacob
93ecc95d92 Fix printing of real mem. I'm going to, for right now, leave it to
someone else to figure out the best machine independent fashion of
fixing ptoa to handle > 32 bits.
1998-07-09 00:46:17 +00:00
drochner
acea5c2e79 add dependency to get the version number right 1998-07-08 17:47:42 +00:00
drochner
13b329cdd2 bump version number to reflect the partition ID change
(should have been done long ago)
1998-07-08 17:46:21 +00:00
thorpej
bca69afed6 Place the software PG_EXEC PTE bit into the protection array, instead
of OR'ing it in manually.
1998-07-08 17:30:45 +00:00
mjacob
6b092524ea stale beer- place structure in right file 1998-07-08 17:20:42 +00:00
thorpej
a8d2213784 Define a macro that returns the mask of PALcode PTE bits that we care
about when determining if a TBI is necessary (i.e. the PALcode bits minus
the FOx bits, since we always track those).
1998-07-08 17:19:46 +00:00
thorpej
0792d7f3db Define a shorthand macro that represents the mask of PTE bits that the
PALcode cares about.
1998-07-08 16:48:49 +00:00
thorpej
3f776dfbe2 Cosmetic change. 1998-07-08 16:46:51 +00:00
mjacob
434b3fe82b tentative better fix for allocating the correct number of mchkinfo structs 1998-07-08 16:28:25 +00:00
thorpej
e32f380030 Garbage-collect some of the old ISA DMA code. 1998-07-08 07:56:47 +00:00
thorpej
8bbd7378c5 RCS ID police. 1998-07-08 07:56:13 +00:00
thorpej
48abe1f910 From pmap.new.c (UVM case only):
Put the first 16M of RAM onto the "first16" free list, and everthing
else onto the default free list.
1998-07-08 05:41:59 +00:00
thorpej
9bbe01f100 Note that UVM is mandatory on the Shark (otherwise ISA DMA won't work) 1998-07-08 05:27:17 +00:00
mjacob
ff376fbd03 Doh! Jason caught me being really stupid. There isn't necessarily
a linear 0..N mapping out of alpha_cpu_whami - which is what I was
using to index the new cpu machine check array. This is a quick hack
back to just using the first element while I think of a kinder function
that will do the function (per-platform) of whami->VIRTUAL CPU ID, which
if you think about it, is really necessary anyway.
1998-07-08 05:25:40 +00:00
thorpej
e332a993e2 Initialize the machdep ISA DMA structures once we've done OpenFirmware
ISA DMA initialization.
1998-07-08 05:01:56 +00:00
thorpej
8d10a53ddb Use MI ISA DMA code (XXX this needs some work). 1998-07-08 05:01:17 +00:00
thorpej
fcd0183e81 Remove all of the home-grown ISA DMA code, and translate the OpenFirmware
"dma-ranges" property into the pmap's ISA DMA ranges.
1998-07-08 05:00:40 +00:00
thorpej
28cbb7c537 Provide the ISA chipset tag. XXX This should go away in favor of a real
ofisa attachment of the "cs" driver.
1998-07-08 04:59:46 +00:00
thorpej
f5535d79ca Provide the ISA chipset tag. 1998-07-08 04:59:02 +00:00
thorpej
8eeb7eaad0 Implement an ISA bus_dma back-end for NetBSD/arm32. Tested only on the
Shark, but should work for other ISA-"enabled" arm32 systems, as well.
1998-07-08 04:58:03 +00:00
thorpej
696858d5f9 Nuke these; we use the MI ISA DMA code now. 1998-07-08 04:57:13 +00:00
thorpej
98b07e4b07 Provide an ISA chipset tag via isa_attach_hook(). G/c home-grown
ISA DMA code, in favor of the MI code.
1998-07-08 04:56:13 +00:00
thorpej
b51b6b7c04 Lift-and-tweak from the i386 port (near-complete rewrite), providing
the ISA DMA stuff expected by machine-independent code.
1998-07-08 04:54:47 +00:00
thorpej
eeb19dd33c Remember our ISA chipset tag. 1998-07-08 04:53:33 +00:00
thorpej
f7e400a7ab Use the machine-independent ISA DMA code.
XXX We use COHERENT for now; need to deal with sync'ing DMA maps being
XXX used by the isadma driver.
1998-07-08 04:53:03 +00:00
thorpej
a177e7aedc Rearrange this a little so we can use MI ISA DMA code. XXX Should just
pull in files.isa, but Not Right Now, apparently.

Add the sound blaster driver here (XXX see above), and build the
arm32 bus_dma back-end.
1998-07-08 04:51:12 +00:00
thorpej
8e03657b43 Define two free lists: default, and one to protect ISA DMA-safe memory. 1998-07-08 04:49:21 +00:00
thorpej
d7d001fe70 Allow platform-specific code to define DMA-safe memory ranges for ISA.
If pages being loaded into the VM system intersect with any of these
ranges, the intersecting pages will be placed on a lower-priority
free list to protect them.
1998-07-08 04:48:20 +00:00
thorpej
d47ea67c1f Define one page free list, and put all pages on it. 1998-07-08 04:43:18 +00:00
thorpej
6fa49323d7 Put VMEbus RAM on a lower priority free list, since it's much slower (because
the MVME-147 doesn't cache access to any VMEbus space).
1998-07-08 04:40:28 +00:00
thorpej
6fb9a8addf Define one page free list, and put all pages on it. 1998-07-08 04:39:34 +00:00
thorpej
1bd007d54b Define 2 free lists: a default, and a "first16", which is where the first
16M of RAM goes (in an effort to protect ISA DMA-safe memory).
1998-07-08 04:38:33 +00:00
thorpej
26287d01ec Put the first 16M of RAM onto the "first16" free list, and everthing
else onto the default free list.
1998-07-08 04:37:43 +00:00
thorpej
a5dd574b12 Attempt to pull buffer cache pages out of the "first16" free list, in
an effort to avoid bouncing file system buffers (it's not clear how much
of a win this is, and it'll be pointless w/ a unified buffer cache, but
what the heck).
1998-07-08 04:36:39 +00:00
thorpej
1ea93eea1c Define one page free list, and put all pages on it. 1998-07-08 04:35:23 +00:00
scottr
6e47b1c654 mac68k/obio/if_mc_obio.c needs hide/integrate defines, too. Moved back to
if_mcvar.h.
1998-07-08 04:18:53 +00:00
scottr
d5b30c1cb1 Revert last change. 1998-07-08 04:16:05 +00:00
mjacob
638f0aab7c Clarify comment about what nodes are being 'found' and noted for later
use by an error handler:

 * There can be only one TurboLaser, and we'll overload it
 * with a bitmap of found turbo laser nodes. Note that
 * these are just the actual hard TL node IDS that we
 * discover here, not the virtual IDs that get assigned
 * to CPUs. During TLSB specific error handling we
 * only need to know which actual TLSB slots have boards
 * in them (irrespective of how many CPUs they have).
1998-07-08 01:03:41 +00:00
mjacob
a5e7f763c2 minor tweak, and example of how to do error insertion 1998-07-08 00:58:09 +00:00
mjacob
73c269fe20 attempt to catch some stuff for ev5 module info 1998-07-08 00:56:39 +00:00
mjacob
9f1070514c First (prelim placeholder) pass at machine check handler for tlsb 1998-07-08 00:49:06 +00:00
mjacob
adf058f0f7 There can only be one TurboLaser node, and now we'll overload
into the integer tlsb_found a bit map of found nodes and export
it to the rest of the kernel. This is so that at machine check
time when we're doing some TLSB/KFTXX error handling we don't
have to attempt a badaddr to look at all TLSB nodes (which will
just be too sad to try...).
1998-07-08 00:47:53 +00:00
mjacob
de4f340241 add some error handling specific definitions 1998-07-08 00:45:52 +00:00
mjacob
84076832df add some more offset definitions 1998-07-08 00:45:08 +00:00
mjacob
6f87cdce00 Start of the platform specific (RAWHIDE) machine check handler. This
is not really needed for this platform, except that we might want to
handle PCI errors which get reported through here. In any case, this
prints out more info than is usual. Will probably need to detune
this to be based upon DIAGNOSTIC defines.
1998-07-08 00:44:32 +00:00
mjacob
57190a7be7 use new mchkinfo structures for expect/recv storage 1998-07-08 00:42:14 +00:00
mjacob
9035e8b3eb Move the search for number of cpus up earlier because we need to know
how many cpus there are when we (now) valloc per-cpu machine check
structures.
1998-07-08 00:41:32 +00:00
mjacob
275fb86f8d add some error handling definitions 1998-07-08 00:40:18 +00:00
mjacob
35ffe8edb3 Add machine check type definitions. Structure the expected/received
machine check items.
1998-07-08 00:39:02 +00:00
mjacob
dfe345a444 common logout structure definitions, or a start thereof 1998-07-08 00:36:18 +00:00
mjacob
9c326571d3 add a common logout printing routine file 1998-07-08 00:34:49 +00:00
mjacob
163f4f10b1 add common logout printing routine file 1998-07-08 00:34:27 +00:00
mark
93179db2b7 Remove several pointless cache/tlb cleans. (From Neil Carson). 1998-07-08 00:18:16 +00:00
mark
e1fe0d71c0 Fix IOMD ID checks. 1998-07-08 00:15:59 +00:00
mark
9a4a105abb Remove un-necessary write buffer drains. (From Neil Carson). 1998-07-08 00:13:41 +00:00
mark
f79b12670f Simplify cache cleaning in page_move(). (From Neil Carson). 1998-07-08 00:12:33 +00:00
mark
9dccefd1c9 Simplify the included files. 1998-07-08 00:10:44 +00:00
mark
ddae1799a5 Make sure the write buffer is drained during syncing. 1998-07-08 00:08:39 +00:00
thorpej
de83dce0de On second thought, call that like the rest of the shared intr functions. 1998-07-07 22:24:38 +00:00
thorpej
c7f8d02b23 Always count the number of strays we encounter, but don't send a "stopped
logging" message if we're ignoring strays.
1998-07-07 22:06:29 +00:00
thorpej
1ddd528346 Fix typi. 1998-07-07 22:02:57 +00:00
thorpej
e82fc7d3cd The Pyxis core logic in the 164SX and 164LX seems to have problems with
stray interrupts.  Do what Digital UNIX (formerly DEC OSF/1) does; just
ignore strays.
1998-07-07 21:49:47 +00:00
thorpej
ca73507d0b The Pyxis core logic in the Miata seems to have problems with stray interrupts.
Do what Digital UNIX (formerly DEC OSF/1) does; just ignore strays.
1998-07-07 21:47:49 +00:00
thorpej
be83de18fd Use ALPHA_SHARED_INTR_DISABLE() to test if a shared interrupt should
be disabled after a stray.
1998-07-07 21:44:57 +00:00
thorpej
443d238f70 Define a macro to test if a shared interrupt should be disabled after
a stray has occurred.
1998-07-07 21:37:11 +00:00
thorpej
4220ffab81 Loop until all netisrs are consumed; netisrs processed down the list might
cause additional netisrs to be scheduled.
1998-07-07 18:27:13 +00:00
mark
61cdca4a6d Remove unused file. 1998-07-07 17:59:56 +00:00
mark
d20b5cf136 Clean up included files. 1998-07-07 17:51:54 +00:00
is
49ed29ab05 The INTF_RBF bit of INTREQ is mirrored in SERDAT. As we would read this
register anyway when the bit is set, we can safe one of the (slow) custom
chip accesses by using this bit.
Sounds ridiculous, but at a hardware FIFO depth of 1 and ~1 usec per
access (at IPL 5) it might help the highspeed addicts.
1998-07-07 16:46:38 +00:00
drochner
cbb7aa93f0 from FreeBSD:
wpaul       1998/07/02 08:36:36 PDT

  Modified files:
    sys/i386/boot/biosboot start.S
  Log:
  Add workaround to allow the FreeBSD boot block to work on
  Kapok Computer Co. notebook with AMI 'WinBIOS' which seems to insist
  on having a short jump and nop as the first instructions in the
  boot sector code. The prevailing theory is that the BIOS is doing
  some sort of boot sector virus detection and refusing to run any
  boot block that doesn't start with the same instruction sequence as
  MS-DOG boot sector code. If this is the case, it would be nice if it
  actually printed an error message to this effect instead of just
  saying 'FAILED.'

  This workaround has no effect on the boot sector code other than to
  increase its size by three bytes.
1998-07-07 13:58:59 +00:00
ross
dbd55159a2 Teach dec_axppci_33_init() a little about the nsio config registers,
enable the nsio IDE, and leave the config register ISA ports mapped.
1998-07-07 08:49:12 +00:00
thorpej
8f2575ec87 Use fixed-size types. 1998-07-07 04:29:42 +00:00
mark
4a463e49fe defopt CPU_* options in opt_cputypes.h 1998-07-07 03:05:15 +00:00
eeh
d94474ccc9 General update:
Added genassym.cf
	Removed lderr which should never have gotten in
	Removed lots of dead code from locore.s
	Added some softint stuff to intr.c
	Added support for halt -p
	esp and le both use bus_dmamap_*() functions now
		instead of kdvma_mapin()
	groundwork for PCI (but we still have no drivers for
		any sun4u PCI devices)
1998-07-07 03:05:02 +00:00
scottr
6d4420e5b2 Fix compile errors: #if DDB -> #ifdef DDB 1998-07-07 03:04:34 +00:00
mark
3d4c1e7372 Cleanup ofw_boot().
Remove un-necessary includes.
1998-07-07 02:45:00 +00:00
mark
2abb91b62a Nuke a redundant cache clean in pmap_enter() (from Neil Carson). 1998-07-07 01:18:47 +00:00
mark
2194175b24 KNF. 1998-07-07 00:48:11 +00:00
scottr
6124345626 Account for an offset frame buffer address. This change is somewhat
different than the one supplied by Paul Goyette in PR 5702, but
has the same effect.
1998-07-07 00:33:39 +00:00
dbj
6c2540b9a5 Removed unnecessary bug-workaround headers.
Minor compilation and header tweak.
1998-07-07 00:16:34 +00:00
mark
68dd742555 Include opt_armfpe.h 1998-07-06 18:13:26 +00:00
matthias
2395483fe4 * Use tlbflush and not pmap_update to flush the cache.
* For the pc532, there is no need to have different implementations
  of pagemove for UVM and bsd-VM.
1998-07-06 09:42:56 +00:00
mark
d41434d3ae Cleanup explict Makefile dependancies. 1998-07-06 02:43:38 +00:00
mark
9161d5ab60 Include opt_pmap_debug.h for PMAP_DEBUG defopt. 1998-07-06 02:40:42 +00:00
mark
3682a37511 Include opt_compat_old_ofw.h for COMPAT_OLD_OFW option. 1998-07-06 02:36:52 +00:00
mark
94df6c50f4 defopt COMPAT_OLD_OFW and PMAP_DEBUG. 1998-07-06 02:35:34 +00:00
mark
9ed6d03641 Always include arm32/disassem.h 1998-07-06 02:33:25 +00:00
mark
572dcd8575 Include opt_armfpe.h 1998-07-06 01:56:40 +00:00
mark
f10dbf227d defopt ARMFPE. 1998-07-06 01:54:56 +00:00
mark
5df95c3336 Junk the DISASSEMBLE macro and just call disassemble() directly. 1998-07-06 01:54:36 +00:00
mark
70fba3ee34 postmortem() is no longer used in this file. 1998-07-06 01:52:26 +00:00
mark
a96139b744 Include opt_uvm.h and define Lcnt appropriate for UVM or non-UVM configs. 1998-07-06 01:04:17 +00:00
mark
8b4b75b9ea The ARMFPE option is never enabled by default any more. 1998-07-06 00:59:21 +00:00
mark
c73c7674d7 defopt IRQSTATS. 1998-07-06 00:53:07 +00:00
mark
ac8d41742b Remove MOUSE_IOC_ACK option as this is now standard. 1998-07-06 00:49:20 +00:00
mark
d016feb2d7 Define MOUSE_IOC_ACK as standard. 1998-07-06 00:43:28 +00:00
mark
9126d07941 defopt XSERVER. 1998-07-06 00:42:37 +00:00
mark
e110bd8a6a defopt IRQSTATS and XSERVER 1998-07-06 00:41:17 +00:00
mark
36af051383 Update functions that missed the previous name space change. 1998-07-05 23:31:16 +00:00
jonathan
b37021c1a1 defopt NATM. 1998-07-05 22:48:05 +00:00
jonathan
9bf2ba0928 Garbage-collect ``needs-flag'' from attributes ether, fddi, arc:
NETHER, NFDDI, NARC are  not used anywhere. Remove #include "ether.h",
   which had no effect.
Removes clash with "options NATM" for native-ATM network protocol stack.
1998-07-05 22:29:51 +00:00
jonathan
3472ba67bb * defopt COMPAT_{09,10,11,12,13} and COMPAT_NOMID (from unsaved buffers).
TODO: revisit interaction between native compat and emul compat usage.
1998-07-05 18:27:18 +00:00
jonathan
d275e56dee * defopt COMPAT_{09,10,11,12,13} and COMPAT_NOMID.
TODO: revisit interaction between native compat and emul compat usage.
1998-07-05 08:49:30 +00:00
dbj
023ee4f133 Started the esp scsi driver.
Fixed bus_space_handle_t in nextdma device.
Fixed scsi interrupt define.
1998-07-05 07:53:44 +00:00
jonathan
011f2bda08 defopt NS, NSIP. 1998-07-05 06:49:00 +00:00
jonathan
5c0c5dd0b4 defopt ISO TPIP. 1998-07-05 04:37:35 +00:00
jonathan
5b64a1fc00 "PS" alias for "SR" clashes with netccitt/pk.h. ifdef out. 1998-07-05 04:14:56 +00:00
jonathan
fe484937cf defopt LLC 1998-07-05 03:14:41 +00:00
jonathan
8db0fcdbf7 defopt CCITT. 1998-07-05 02:12:22 +00:00
jonathan
2670278a47 _inqsue and _remque are used by ccitt and iso networking code:
Add #ifdefs to enable them.  (compiles and links, but untested.)
1998-07-05 02:10:14 +00:00
jonathan
3751946b97 defopt INET, NETATALK. 1998-07-05 00:51:04 +00:00
jonathan
0ed4d699d0 defopt DDB. 1998-07-04 23:12:39 +00:00
jonathan
466e784ee1 defopt DDB. 1998-07-04 22:18:13 +00:00
dbj
0a1e71abf1 Fixed pre-MMU rom console printing.
Fixed probing of the segment list on color NeXT's.
Added some debug messages on console as it reads the hardware config.
1998-07-04 05:36:05 +00:00
mhitch
34c823e939 A "GENERIC" kernel configured with a memory disk root. The miniroot can
now be inserted into the kernel for a self-contained installation kernel.
No more questions or problems trying to copy the miniroot to the swap
partition.
1998-07-03 22:27:59 +00:00
mhitch
65346d4042 Add memory disk. 1998-07-03 22:24:45 +00:00
mhitch
14a5ad4ce6 Make 'end' references consistant. Fixes PR#5670. 1998-07-03 22:21:42 +00:00
hubertf
a18ed5d074 add missing ";" for non-UVM systems 1998-07-03 21:32:43 +00:00
mhitch
bb85c60cdc Add "mainbus0" and "cpu*" entries that used to be in std.pmax. GENERIC
should now 'config' without errors.
1998-07-03 20:06:09 +00:00
tsubai
21f84e9128 Add nvram device support. 1998-07-03 11:50:32 +00:00
thorpej
8978015d51 Mark the kernel pmap `active' in pmap_bootstrap(). 1998-07-03 05:22:10 +00:00
tv
b457cc5098 For now, do not build just "netbsd" as the root device probe cannot
distinguish wd0, cs0, etc.  Build only netbsd_netboot and netbsd_wdboot.
1998-07-02 23:39:22 +00:00
mjacob
efee8aedfa If GENERIC has SCSIVERBOSE on, having it off here makes no sense 1998-07-02 23:36:59 +00:00
gwr
76cd67b8c7 Allow netif_getether() to use sif->sif_macaddr() on the Sun-3X
but check the PROM rev first, and print some info I want when
a PROM earlier than 3.0 is found.  (Then just try it!)
1998-07-02 21:58:25 +00:00