pk
383448522d
Refer to KERNBASE instead of its current numerical value in comments
...
and some early debugging code.
1997-09-14 19:20:48 +00:00
pk
dc4f93c2a1
Collect sbus status and configuration registers in `struct sbusreg'.
1997-09-14 19:17:25 +00:00
pk
e4a198d193
Move sbus fields to sbusreg.h where they belong.
1997-09-14 19:16:04 +00:00
pk
a3140bf9f2
NetBSD 1.2 and earlier sparc bootblocks have KERNBASE compiled in. This
...
prevents booting DDB kernels that are built with a different value of KERNBASE.
Apply a correction based on the magic number passed in by the bootblocks.
New bootblocks without the hard-coded KERNBASE reference will be assigned
a new magic number.
1997-09-13 20:36:48 +00:00
pk
c635b25325
In kbdattach() (the pseudo-device attach routine) wait for the keyboard
...
reset sequence to complete. Just sending the reset command and rushing
off -- like it used to do -- might cause the keyboard's response to get
lost in case the remaining kernel initialization decides to interact
with the console (RB_ASK!) by calling cngetc(), which goes off polling
within the PROM.
1997-09-13 19:12:18 +00:00
thorpej
e97c5f6c50
Update the model string for current reality.
1997-09-13 10:09:39 +00:00
thorpej
9a5f8236b5
Don't panic if we receive a Processor Correctable Error or a System
...
Correctable Error; report them, instead.
XXX Need a platform-specific machine check handler so we can decode the
logout area on such errors.
1997-09-13 10:01:33 +00:00
thorpej
12b0c2a20a
The Alpha console uses BOOTP for network booting, so the NetBSD kernel
...
should, too. Enable the BOOTP support in nfs_boot().
1997-09-13 07:42:01 +00:00
thorpej
f784e8dc15
Apparently, new AlphaStation 500/600 firmware has the same problem with
...
PCI master aborts as eb164 firmware, so use the same workaround mechanism
on all system types (clear error register's master abort bit, and check
it after accessing configuration space), not just eb164's.
This also fixes a bug on eb164's - when making the Alpha port compile
again, I made an error that caused this to not be used on eb164 systems,
either. Thanks to Matt Jacob for pointing out this goof.
1997-09-13 05:58:07 +00:00
mycroft
a9155c5057
Set the status word as well, and remove a bogus comment.
1997-09-12 10:29:20 +00:00
mycroft
701aa39854
Oops; didn't delete two retval[] usages in setregs().
1997-09-12 09:59:53 +00:00
mycroft
cba224ed23
FPCOPROC is no longer used here.
1997-09-12 09:29:13 +00:00
mycroft
4e5b47eba3
fputype is defined in locore.s now.
1997-09-12 09:27:49 +00:00
mycroft
11393fe5b9
Add and use fputype. Optimize floating point save/restore routines a bit more
...
if only one CPU type is defined. Eliminate FPCOPROC. Merge some of the
68060 floating point stuff from the x68k port.
1997-09-12 09:25:36 +00:00
mycroft
5933da103c
Add and use fputype. Optimize floating point save/restore routines a bit more
...
if only one CPU type is defined. Eliminate FPCOPROC.
1997-09-12 09:23:18 +00:00
pk
27f2065c2c
Update syscall() and setregs() in the wake of the recent execve() changes.
1997-09-12 08:55:01 +00:00
mycroft
cd9a968cb7
Fix a test that should be on fputype rather than cputype.
1997-09-12 08:41:55 +00:00
mycroft
8a42aeac7b
GC old comment.
1997-09-12 08:35:15 +00:00
mycroft
8a8fa1ee59
Eliminate some uses of FPCOPROC.
1997-09-12 08:19:00 +00:00
mycroft
1192cdbe7e
FPCOPROC is already in the Makefile; no need for it here.
1997-09-12 08:14:06 +00:00
mycroft
30073771b6
Move definition of FPCOPROC into the Makefile, since it's always required.
1997-09-12 08:13:26 +00:00
mycroft
e9f392b0a9
Eliminate some uses of FPCOPROC.
1997-09-12 08:08:50 +00:00
mycroft
55582e5bc2
The FPCOPROC option no longer exists.
1997-09-12 08:04:12 +00:00
mycroft
49f0bbb105
Nuke Locore.c. It's way too out of date to be useful at this point.
1997-09-12 07:59:20 +00:00
mycroft
895a1eced4
Fix an error from when Locore.c was removed.
1997-09-12 07:56:37 +00:00
mycroft
50cfb2fcdd
Kill vestiges of Locore.c.
1997-09-12 07:55:17 +00:00
mycroft
982f24e698
Always initialize all registers in setregs().
1997-09-12 07:00:30 +00:00
mycroft
42c101eb00
Fix execve(2) and *setregs() interfaces so emulations can set registers in a
...
more correct way. (See tech-kern.)
1997-09-12 05:48:08 +00:00
mycroft
25f153bb22
Add fe0.
1997-09-12 05:22:55 +00:00
mycroft
73b4fdacad
Initialize all registers in setregs().
1997-09-12 05:01:09 +00:00
mycroft
d0917c65e9
Add an ibcs2_setregs().
...
XXX Current implementation is a horrible kluge.
1997-09-11 23:07:25 +00:00
mycroft
99a6404735
Add an ibcs2_setregs().
1997-09-11 23:05:30 +00:00
mycroft
16a8787248
Fix execve(2) and *setregs() interfaces so emulations can set registers in a
...
more correct way. (See tech-kern.)
1997-09-11 23:01:44 +00:00
chopps
44f6ba6c55
VM_MAX_ADDRESS is the user max address -- adjust
1997-09-11 14:01:07 +00:00
pk
aeec7a4ecc
Turn off "branch folding" in microsparc II processors. This seems to
...
avoid strange panics happening. Patch suggested by Chris Torek.
1997-09-10 19:11:23 +00:00
gwr
b1fe1c2452
Generalize somewhat (now works for alpha too).
1997-09-10 16:25:07 +00:00
scottr
5dd9e25dca
For consistency: VIA_initialize() -> via_init()
1997-09-10 04:38:47 +00:00
scottr
d1feb13390
Move VIA_initialize() from configure() to locore.s, shortly after
...
setting up and enabling the MMU. This has the effect of ensuring
that any stray interrupts that get posted before the IPL is lowered
will be handled gracefully, i.e. without an access fault or illegal
instruction exception.
1997-09-10 04:22:33 +00:00
scottr
eb3c36eb89
Add ROM vectors and I/O info for the IIfx.
1997-09-10 03:43:48 +00:00
mycroft
d766a8aa21
Remove some vestiges of BDB.
1997-09-09 21:42:38 +00:00
pk
0bd088474a
Turn on D_DSBL_WRINVAL on `ledma'.
1997-09-09 20:54:48 +00:00
scottr
01c7934554
Define, implement, and use oss_intr().
1997-09-09 17:37:10 +00:00
mycroft
6da60facfb
GC a bunch of NEWCONFIG stuff.
1997-09-07 13:05:39 +00:00
mycroft
892d336277
Increase FDC_MAXIOSIZE to MAXBSIZE, now that we can handle it.
1997-09-07 13:03:10 +00:00
drochner
fba474f53a
add prototype definition for DHCP support
1997-09-06 14:32:31 +00:00
drochner
969e506de4
Oops, last change made "make depend" work incompletely. Don't define
...
a "depend" rule here.
1997-09-06 14:26:47 +00:00
drochner
281398581a
-Wall fixes
1997-09-06 14:08:27 +00:00
drochner
3b191b29c0
enable -Wall
1997-09-06 14:07:57 +00:00
drochner
be8a78e9b5
-use DHCP extensions in bootp()
...
-enable -Wall
1997-09-06 14:06:53 +00:00
drochner
80d9738db8
-Wall fixes
1997-09-06 14:03:55 +00:00
drochner
d99aa8efc0
Collect prototypes here.
1997-09-06 14:02:51 +00:00
drochner
7546d66094
Make sure the <machine/*.h> includes come from current kernel sources,
...
not from installed userland.
1997-09-06 14:02:13 +00:00
veego
b8b28812be
Add missing keypad entry for '+' and correct a comment. From pr#3893.
1997-09-06 12:41:10 +00:00
scottr
da80f6c913
Catch bus error in sbc_pdma_out() and panic with a reasonable
...
error message.
1997-09-06 07:53:14 +00:00
scottr
18883bf3fc
In itematch(), check to see if the framebuffer PA matches either the
...
$Fssxxxxx 1MB slot space documented in the old Inside Macintosh, or the
$Fs0xxxxx 1MB slot space documented in the new IM and Guide to Macintosh
Family Hardware.
1997-09-06 06:51:54 +00:00
thorpej
ed2ec4869c
Update for Chris Demetriou's changes made to the bus.h interface:
...
- bus_space_copy -> bus_space_copy_region (for consistency)
- "cacheable" argument becomes a "flags" argument instead, with
BUS_SPACE_MAP_CACHEABLE and BUS_SPACE_MAP_LINEAR flags currently
defined.
1997-09-06 05:44:07 +00:00
thorpej
1aa35e94d4
s/BUS_BARRIER/BUS_SPACE_BARRIER/g
1997-09-06 05:21:14 +00:00
thorpej
613ee19c60
Add DDB.
1997-09-06 02:04:18 +00:00
thorpej
1f6a8f7d03
Enable DDB.
1997-09-06 02:03:32 +00:00
thorpej
66fdddf6aa
Add DDB files.
1997-09-06 02:03:11 +00:00
thorpej
9dcf694bd2
Prototype db_register_value().
1997-09-06 02:02:25 +00:00
thorpej
998d79d26a
Add support for DDB (in-kernel debugger) to NetBSD/alpha, based on
...
such code for Mach 3's Alpha port. Initially reworked for NetBSD/alpha
by Chris Demetriou, and then heavily hacked on by me. Works, but is still
a little rough around the edges. Known problems:
- Error recovery could be improved a bit.
- Back traces don't work.
- Single-stepping can be flaky, at times. (Alpha doesn't have hardware
support for single-stepping, and I'm not entirely convinced the
MI DDB software-emulated single-stepping logic is 100% correct.)
- Logic for when to drop into DDB needs some improvement.
1997-09-06 02:00:48 +00:00
thorpej
36f209b762
Split off PALcode functions into their own header file.
1997-09-06 01:23:52 +00:00
chuck
0b471e545e
add bits for %cr4 and cpu_feature [from freebsd and www.sandpile.org]
1997-09-05 22:28:12 +00:00
chuck
302dad0aaa
add invlpg, and rcr4/lcr4
1997-09-05 22:25:20 +00:00
thorpej
7df7a43ce7
When loading a symbol section, make sure it is aligned.
1997-09-05 21:50:34 +00:00
thorpej
ba8becebfc
installbood_cd9660 no longer exists.
1997-09-05 20:20:17 +00:00
gwr
d2e3710fa9
Cosmetic (s/sun3_/_/) to be closer to the sun3x version.
1997-09-05 04:51:06 +00:00
gwr
6220d3efdf
Add a comment about IDPROM_BASE (XXX)
1997-09-05 04:47:43 +00:00
gwr
c04589c8a8
Make stand/Makefile.inc work with obj directories. (Fixes PR 4014)
1997-09-05 04:31:50 +00:00
thorpej
2f657a6266
Add some debugging code to log sgmap activities. Also, make sure that
...
we return "no valid mappings" if there is an error while loading the
sgmap.
1997-09-05 02:21:49 +00:00
thorpej
2ecccdc05f
Define Status 0 and Status 1 registers.
1997-09-05 02:14:31 +00:00
thorpej
55800b610a
Implement bus_dmamem_mmap().
1997-09-05 02:05:37 +00:00
thorpej
dc50e810ea
Implement bus_dmamem_mmap().
1997-09-05 01:44:42 +00:00
scottr
093be63832
Back out last commit; it interfered with NuBus video, and will
...
have to be reworked.
1997-09-04 00:54:04 +00:00
thorpej
6f4f08b8b2
Add a few more PALcode operations, as documented in pages (II-B) 2-1 through
...
(II-B) 2-33 of the Alpha AXP Architecture Reference Manual, Second Edition:
* rdps - Read Processor Status, needed by spl* functions.
* cflush - Cache Flush
* rdval - Read System Value
* wripir - Write Interprocessor Interrupt Request
* wrval - Write System Value
cflush, rdval, wripir, and wrval are used in multi-processor environments.
1997-09-03 23:09:04 +00:00
thorpej
032358ab33
From hp300 pmap: use mycroft's pv_entry allocator (from i386 port).
1997-09-03 19:07:32 +00:00
scottr
7883fba4bf
Two video-related changes:
...
- Only set mac68k_vidphys if we're on a machine that we couldn't get
the Mac OS memory map.
- If we could get the Mac OS memory map, use the framebuffer size found
by get_mapping() rather than the size calculated using the Booter
environment.
1997-09-03 06:40:15 +00:00
scottr
e68adcb18e
Initialize the bus error and address error vectors explicitly for all
...
CPUs, and set up the VBR just to be certain.
1997-09-03 06:34:08 +00:00
scottr
f30496c3f2
When identifying the CPU, print the scaled factor resulting from
...
calibration of the delay() loop.
1997-09-03 06:28:55 +00:00
scottr
c0f620b961
Don't initialize the bus error and address error vectors; as we do that
...
in the startup code already.
1997-09-03 06:16:24 +00:00
scottr
c4ab61a0cf
Eliminate the use of the register keyword, and use standard
...
type names. Also, eliminate an unnecessary DEBUG printf().
1997-09-03 06:14:42 +00:00
thorpej
f03ded039c
Update from hp300 pmap: define an active_user_pmap() macro and use it.
1997-09-03 00:58:13 +00:00
thorpej
0f5f0e115a
Define a cdev_satlink_init(). XXX This should be done in an MI header file.
1997-09-03 00:25:01 +00:00
thorpej
6cf58542f9
PMAP_{,DE}ACTIVATE() are no longer exported from the Utah-derived pmap.
1997-09-02 23:52:55 +00:00
thorpej
243aa23148
Add __KERNEL_RCSID() and definitions for ISA satlink driver.
1997-09-02 23:41:04 +00:00
thorpej
44e33a2f5f
Update for changes to how bus space tags are initialized.
1997-09-02 20:43:07 +00:00
thorpej
90798596fe
Remove references to vm_pmap.
1997-09-02 20:37:23 +00:00
thorpej
e7bb7bdc4b
Remove references to vm_pmap.
1997-09-02 20:11:24 +00:00
thorpej
f203067ae3
Adjust for changes to bus space tag initialization.
1997-09-02 20:10:28 +00:00
thorpej
a71cecbec3
Fix a typo.
1997-09-02 20:08:02 +00:00
thorpej
991f4ebc72
cia_bus_ -> cia_swiz_bus_
1997-09-02 20:07:20 +00:00
thorpej
80e3db443f
Apply a change made to other PCI chipsets:
...
don't expect/provide pci_decompose_tag to be a MI, public function. It
wasn't intended to be to begin with, and uses of it (e.g. the one in the
'de' driver) are quite likely to be incorrect.
1997-09-02 20:05:28 +00:00
thorpej
3735c7d1d7
Fix a think-o.
1997-09-02 19:39:15 +00:00
thorpej
df1dcf81d0
Oops, missed one.
1997-09-02 19:18:20 +00:00
thorpej
cc5eaab25b
More garbage-collection.
1997-09-02 19:16:32 +00:00
thorpej
b2a8424bb5
Garbage-collect loadustp(); the functionality has moved to pmap.old.c
1997-09-02 19:07:22 +00:00
thorpej
2c5c631b71
- Make the pmap_activate() and pmap_deactivate() interfaces consistent my
...
passing them a proc *, which encapsulates all of the information necessary
to activate an address space.
- Garbage-collect pmap->pm_stchanged; it's not really used for anything.
1997-09-02 19:06:13 +00:00
thorpej
bf232f7a37
Make the pmap_activate() and pmap_deactivate() interfaces consistent my
...
passing them a proc *, which encapsulates all of the information necessary
to activate an address space.
1997-09-02 19:04:57 +00:00
thorpej
a47a8a25d6
Adjust for an interface change in a not-NEW_PMAP case in cpu_fork().
1997-09-02 19:03:58 +00:00