Commit Graph

13550 Commits

Author SHA1 Message Date
bouyer
d45f82208d Add a cpu_setup() function to "struct cpu_nocpuid_nameclass" and
"struct cpu_cpuid_family", so that we can have a cpu_setup function per
known cpu type. For now use it only for cyrix 6x86 to enable suspend-on-halt
and implement cyrix's workaround to the "coma bug".
1997-11-27 11:53:45 +00:00
sakamoto
972dc0b4d6 remove/import software interrupt model and external interrupt handler
from OpenBSD/powerpc.
move bus_space_* from bus_machdep.c to bus.h.
1997-11-27 10:17:45 +00:00
fvdl
b3de97c5c1 Revert I486_PCI_MEM_ENABLED change; it caused too many problems. 1997-11-27 10:10:50 +00:00
fvdl
4ee07a6d65 Revert I486_PCI_MEM_ENABLED change, it caused too many problems. 1997-11-27 09:58:26 +00:00
sakamoto
771073b8ce keep compile dir. 1997-11-27 09:48:18 +00:00
mjacob
e908c01f7e If not defining SUN4M, you still have to do something with has_iocache. 1997-11-26 22:11:53 +00:00
matthias
d4150bfec4 Do not include vm/lock.h. It does no longer exist. 1997-11-26 21:26:44 +00:00
scottr
9cc64880e9 Major reorganization, based largely on the i386 GENERIC. This moves all
bus and device configuration out of std.mac68k, as well.
1997-11-26 07:23:20 +00:00
scottr
805d1043a6 Don't attempt to open the ADB device if it hasn't been initialized.
Also, don't allow more than one instance to be configured.
1997-11-26 06:28:50 +00:00
briggs
2241e4220c Only scan MAXPARTITIONS entries for a free partition table entry. 1997-11-26 04:18:20 +00:00
briggs
62ebaeb91b Ignore FWB Component and Apple_Driver_ATA partition types, too. 1997-11-26 04:14:07 +00:00
mjacob
549ecbd70a make SCSIVERBOSE default 1997-11-26 03:13:53 +00:00
mjacob
61f3754047 add SYSVMSG and SYSVSEM to GENERIC kernel 1997-11-26 03:13:12 +00:00
gwr
6c7f015fc8 The calculation of dumpsize was incorrect. It is the size of
the raw memory part of the dump (not including the headers).
1997-11-25 22:38:41 +00:00
scottr
952c244eab In iteoff()/iteon(), don't try to do anything if we haven't
initialized the ite.
1997-11-25 20:56:13 +00:00
kleink
e85ad99e57 Add COMPAT_13. 1997-11-25 20:29:24 +00:00
scottr
387294d4a5 Fix dependency generation for assembler files; closes PR 4476,
but differently since the suggested change breaks cross compiling.
1997-11-25 18:33:19 +00:00
briggs
2412580d6a Forgot a declaration in last change to esp.c. 1997-11-25 03:54:56 +00:00
gwr
2e64ccdb0b Remove some outdated comments, fix others. 1997-11-24 22:09:58 +00:00
gwr
a8291dea54 Kill unnecessary arguments to pmap_enter_*
Do pa=PG_PA(pte) in pv_link/pv_unlink so it
does not need to happen in as many places.
1997-11-24 21:38:31 +00:00
is
a90ace971a Workaround for the "xanim volume setting problem":
We play mono samples on all 4 channels.
However, we get the volume settings for mono samples as a symmetic two-channel
setting... the other two channels used to stay at max volume...
I believe that something else is wrong here, but dont want to change MI
code (which in turn influences a couple of MD driver) thus late in the release
cycle.
1997-11-24 21:00:50 +00:00
gwr
42526b0e75 On the 3/50 it is avail_start that must be less than hole_start,
not avail_end.  Identified by Greg Oster <oster@cs.usask.ca>
1997-11-24 17:58:20 +00:00
phil
5050531ac6 Do transfers with interrupts off. 1997-11-24 12:35:20 +00:00
thorpej
2524b071e8 Add commented-out "I486_PCI_MEM_ENABLED" option, and describe it. 1997-11-24 00:21:48 +00:00
thorpej
b6e3c093d8 defopt I486_PCI_MEM_ENABLED 1997-11-24 00:21:01 +00:00
thorpej
46c5ad921d Add a workaround for buggy i486 PCI chipsets that have trouble with
memory-mapped device access (manifested by an apparent wedging of the
PCI bus):
- If cpu_class == CPUCLASS_486, disable memory-mapped PCI device access,
  leaving only i/o-mapped access enabled.
- Provide a patchable kernel variable (i486_pci_mem_enabled) and a kernel
  option (I486_PCI_MEM_ENABLED) to re-enable it.
1997-11-24 00:20:32 +00:00
thorpej
978a8b60db Add SCSIVERBOSE 1997-11-23 23:40:45 +00:00
veego
0fe37675f7 Ups, forget a 'i'. 1997-11-23 23:26:03 +00:00
kleink
66c2794142 Add _BSD_SUSECONDS_T_ and _BSD_USECONDS_T_; do some space vs. tab formatting
cleanup
1997-11-23 20:20:53 +00:00
mhitch
1863572e04 Add a check for the DO key to enter ddb on the Personal DECstations. 1997-11-23 18:20:11 +00:00
pk
4759b4c5ff Re-do the `busdma' interface. 1997-11-23 16:31:28 +00:00
tv
426330f919 eliminate declarations of global data in <sparc/cpu.h> and declare in
source files, reducing global symblol replication in .o kernel files
1997-11-22 03:13:56 +00:00
gwr
ae473044c7 Strengthen DIAGNOSTIC checks in pmap_enter_*
Further simplify protection converter (gone).
1997-11-21 22:13:20 +00:00
mhitch
4f4912d825 If DDB is defined, and RBUF_FERR occurs on a serial console port, enter ddb.
Fixes PR 4173.
1997-11-21 17:26:29 +00:00
gwr
b0e8edf692 Minor simplifications. 1997-11-21 17:14:07 +00:00
fair
315f8de9c2 add pseudo-device rnd, commented out 1997-11-20 08:11:14 +00:00
mikel
37d9430628 add ID for (brain-damaged) GUS PnP, and add comments describing what
hardware each ID describes.
1997-11-20 06:23:52 +00:00
pk
cbf2f164ad The pgtalloc() stuff is still not doing the right thing on non-MXCC
vikings... i don't know why.  Install a work-around in setpgt4m(),
that is still lying about here.
1997-11-19 23:19:13 +00:00
pk
b9746b3d00 splpmap() is again equivalent to splimp(). 1997-11-19 23:05:49 +00:00
pk
62f73256ff Use intr_establish() to install the timer interrupt handlers. 1997-11-19 23:03:47 +00:00
pk
de106f6489 1. Implement a trick from Chris Torek: if an unhandled interrupt occurs
during auto-configuration (`cold'), raise interrupt level to splhigh
   and return, instead of reporting a stray interrupt.

2. In cpu_switch(), start running a newly selected proces at splclock()
   instead of the saved IPL, allowing high-priority interrupts in
   ctx_alloc() which can take many cycles to install a new context
   (especially on the two-level sun4c MMU).
1997-11-19 22:59:05 +00:00
gwr
f0047e072f Better definition of PA_IS_DEV, and use it two more places. 1997-11-19 19:28:10 +00:00
mjacob
261191603a copyright foo 1997-11-19 15:35:36 +00:00
briggs
1adbb93466 * Disable parity checking on all devices until we find a better way to
deal with cheap CD-ROMs and other devices that do not appear to have
  any way to enable parity generation.  In the future, it might be nice
  to have this configurable on a per-device basis with back-to-back
  parity errors automatically disabling parity for the device.  That
  would require some MI changes.
* Handle unaligned and odd-length transfers.
  This could probably be handled better in the future.
1997-11-19 13:01:32 +00:00
mycroft
0afda495f5 Do the Pentium bug fix differently. Put the IDT in a read-only page and check
for a write fault on the illegal instruction descriptor.  Don't ask why this
works unless you have a strong stomach.
1997-11-19 11:11:22 +00:00
scottr
2311eecbad Fix emulation, mostly from Dave Huang in PR 4482 (one tweak by me for CUU/CUD, and
one from him to correct a fencepost error in {reset,clear}_tabs()).
1997-11-19 07:00:03 +00:00
gwr
5ea276f19a Correct handling of "physical address" values given to us by the
VM code, which may have low bits specifying device space!
1997-11-19 00:19:10 +00:00
mhitch
44c123573b Define PC_ADVANCE() to advance the PC around the break instruction only
if the break instruction is still there.  This works around a problem with
the software single step in DDB not recognizing the temporary breakpoint
set to emulate the single step.
1997-11-18 21:13:17 +00:00
mhitch
f027428995 Cursor is supposed to be turned on when unblanking the screen. 1997-11-18 20:16:28 +00:00
hannken
50be28153c Change order of include files. See PR #4532. 1997-11-18 12:40:31 +00:00
augustss
ee5628ee52 Add another PnP id. 1997-11-18 11:31:07 +00:00
sakamoto
760b87dd7c Debugger() is called outside #ifdef DDB - fix.
remove simple monitor.
1997-11-18 03:09:09 +00:00
phil
7cf15a500f Boot loader changed addresses due to a size increase and a similar change
size in the boot floppy.
1997-11-18 01:19:21 +00:00
jonathan
1c7a3c901e Apply version of cursor for bt431 cursor chip on mfb:
Fix cursor sprite for X11 startup/exit:
 * add cursor on/off functions.
 * Default cursor state is off (for framebuffer console).
 * Turn off cursor in each driver's xxxCursorInit() entrypoint.
 * Turn on cursor at the end of each driver's xxxLoadCursor() entrypoint.
works with X11R5 servers shipped with NetBSD 1.3.
1997-11-17 11:44:50 +00:00
thorpej
f56e6f631f Add an i/o address for iy0 (from GENERIC) 1997-11-17 03:42:52 +00:00
thorpej
9246032610 Put lc0 at i/o 0x320. 1997-11-17 03:39:42 +00:00
lukem
e8cb388f65 * add commented out DDB_HISTORY_SIZE=100 if DDB exists in config file
* fix up use of 'options<SPACE><TAB>'
1997-11-17 01:58:31 +00:00
lukem
6c986561ee * add commented out DDB_HISTORY_SIZE=100 if DDB exists in config file
* fix up use of 'options<SPACE><TAB>'
1997-11-17 01:57:23 +00:00
ross
711247adf8 Eliminate %: use from alpha/trap.c; the policy is to get rid of these
anyway. I _still_ have my doubts about the kprintf %: code, though.
1997-11-17 00:52:49 +00:00
ross
9dcfc52387 Put in Jason's recommended fix for the null-curproc-in-pmap.old.c problem. 1997-11-17 00:11:22 +00:00
christos
af27f4e9b5 PR/4506: Andreas Gustafsson: Finnish keyboard mapping for pccons. 1997-11-16 22:05:48 +00:00
mycroft
0963ca7386 Minor change. 1997-11-16 12:31:00 +00:00
mycroft
d7107be1c9 Fix a condition where we might keep interrupts blocked while servicing a soft
interrupt.
Fixes serial port silo overflow problems.
1997-11-16 12:30:00 +00:00
jonathan
45ad7fb3e5 Fix cursor sprite for X11 startup/exit:
* add cursor on/off functions.
 * Default cursor state is off (for framebuffer console).
 * Turn off cursor in each driver's xxxCursorInit() entrypoint.
 * Turn on cursor at the end of each driver's xxxLoadCursor() entrypoint.
works with X11R5 servers shipped with NetBSD 1.3.
1997-11-16 10:17:53 +00:00
carrel
2030b7b104 Turn off reseting and disabling the device by default.
Document the option to turn them back on.
1997-11-15 20:18:50 +00:00
pk
639260ce32 Use DESTDIR consistently when constructing `boot.net'. 1997-11-15 14:29:36 +00:00
mycroft
93b31159bf When fixing up traps 1, 3 and 4, turn off the RF flag. 1997-11-15 04:47:30 +00:00
mycroft
6250567ba0 Make INTO actually work right. 1997-11-14 12:30:06 +00:00
jonathan
0c7ac6dc71 Initialize 3100 cursor to off, for rcons text mode.
(Minimal-distance fix for 1.3 release).
1997-11-14 02:01:22 +00:00
jonathan
a5449ca17c Back out read-side DELAY() in previous revision added on advice of
tech-kern.  Reported by Sean Davidson to cause erroneous doubling of
keyboard input on a 5000/50 under load.

Increasing the DELAY() from 2 to 30 doesn't help. Remove it for the
1.3 release. May cause problems with low-speed serial input, but
console keyboards work properly.
1997-11-14 01:38:57 +00:00
is
ad4c422ef9 Oops. Somehow the code to actually config_find the BBC on A1200s wasn't
committed.
1997-11-13 23:03:10 +00:00
phil
2516dd1548 int -> long in a structure. 1997-11-13 20:57:31 +00:00
mjacob
940f8fcfd1 remove unneeded and conflicting prototype 1997-11-13 18:06:01 +00:00
veego
86086729e7 if NARP -> if NARP > 0 1997-11-13 10:48:19 +00:00
veego
8b485c5962 Add a missing #if NARP > 0 around arpintr(); and add a #include "arp.h"
for NARP. This is for the 'new' arp system.
1997-11-13 10:43:06 +00:00
veego
df6d37534b s/NETHER/NARP/ and s/ether.h/arp.h/ for the 'new' arp system. 1997-11-13 10:37:40 +00:00
mycroft
b1c7e79679 Map NMI in user-level code to SIGBUS. 1997-11-13 10:13:46 +00:00
mycroft
f946a9746d Oops; previous logic was wrong. 1997-11-13 07:21:23 +00:00
mycroft
da60005b96 Only do the Pentium trap fixup when we get a kernel mode page fault. 1997-11-13 05:31:04 +00:00
mhitch
7984f5ce3a The scsi command length was not being set in rz_command(), which caused
the SII driver to fail when trying to get the drive geometry.
Remove extraneous newline when printing out the disk geometry during device
probes.
1997-11-13 03:56:49 +00:00
mycroft
4f8b60c6bb Implement the BSDI kluge for the Pentium `hang'; leave the first 7 IDT
descriptors in an unmapped page, and patch up the trap information inside
the page fault handler if the faulting VA is inside the IDT.
1997-11-13 03:25:27 +00:00
mycroft
6a310175c6 Some general cleanup:
* Call gdt_init() earlier on.
* Don't bother to check for TSS and LDT descriptors in verr_gdt().
* Nuke the sti special case for trace and breakpoint traps.
* Move some variable declarations into more appropriate locations.
1997-11-13 03:16:42 +00:00
thorpej
ce4c770f88 Make sure CPP, AR, AS, and RANLIB are defined. 1997-11-12 23:11:50 +00:00
thorpej
a421995756 Define LORDER, NM, and TSORT here, like we do the rest of the tools. 1997-11-12 22:25:31 +00:00
pk
ff4f5f4528 If necessary, defer console output until TX interrupt handler runs. 1997-11-12 22:18:54 +00:00
pk
a309481f34 Change load address to avoid cache-aliasing on machines with Harvard-style
cache implementations (notably the Hypersparcs).
1997-11-12 00:37:07 +00:00
drochner
b80ad6c934 -point to console(4) manpage for serial console parameters
(suggested by Chuck Cranor)
-insert a reasonable IO base address for "iy at isa"
 (from Ignatios Souvatzis)
1997-11-11 20:31:38 +00:00
scottr
d28cbedf2f Fix typo in last change that causes lossage depending on
whether the MRG_ADB option is used or not.
1997-11-11 17:31:11 +00:00
mhitch
c390c7a5e1 The address used by mips1_FlushICache() is a virtual address, not a physical
address.  This caused DDB to hang the machine hard when trying to set a
breakpoint.
1997-11-11 16:50:57 +00:00
thorpej
6fcc8cd8b1 Add locators for "eg0" device, and enable it. 1997-11-11 05:53:06 +00:00
is
9360bfcc81 Remove remnants from ISA com console attachment code, which caused, due
to missing variable initialization, a panic on the DraCo.
1997-11-10 22:29:03 +00:00
ragge
7b60c8ed11 Fix multivolume installation bug; PR#4454. 1997-11-10 22:14:16 +00:00
mhitch
b0367937cb Fix typo: NRASTERRCONSOLE -> NRASTERCONSOLE 1997-11-10 21:59:18 +00:00
pk
85524f37b3 Set `dvma_cachealign' on Hypersparc. 1997-11-10 21:20:07 +00:00
mjacob
479bc8877c Protect userland applications from the inline splraise function. 1997-11-10 18:23:50 +00:00
is
ff1fd132f3 Forgot this yestereve: s/CV64CONSOLE/CV3DCONSOLE/ 1997-11-10 12:17:20 +00:00
jonathan
9dee06e184 Add px placebo driver to standard pmax options. 1997-11-10 08:26:33 +00:00
phil
b9b9e9752b Remove comment on bim.8 man page. 1997-11-10 01:58:10 +00:00
phil
29bc127e91 Remove unknown .even, complete a string in a macro call. 1997-11-10 01:50:25 +00:00
is
f31e12d69d - recognize CV3D in Zorro-II mode.
- use board address space > 4 MB, instead of iszthreepa(), to detect Z3-mode
  boards. We dont want the bus, but want the address configuration.
- s/CV64CONSOLE/CV3DCONSOLE/
- s/cv3d_zorroIII == 1/cv3d_zorroIII/ and s/cv3d_zorroIII != 1/!cv3d_zorroIII/
1997-11-09 23:30:47 +00:00