mycroft
e6548e54bd
Enable interrupts *after* reading the fault address and status. This is
...
necessary because some interrupt handlers may cause additional faults (e.g.
through R/M emulation) and thereby trash the previous fault state.
From Richard Earnshaw.
1999-05-05 22:06:15 +00:00
pk
4cb2198a44
Declare `bootinfo' also if !DDB.
1999-05-05 15:32:33 +00:00
minoura
db3bdbe86c
Shut up gcc -Wall.
1999-05-05 14:31:16 +00:00
minoura
ad762a0b97
Use mvme68k-derived delay routine.
...
Now that we support various models, the old constant-loop delay routine
may cause problems.
1999-05-05 13:46:20 +00:00
minoura
3fe3e5261b
Add missing ia_size argument.
1999-05-05 13:41:44 +00:00
minoura
7cebd447fb
Move config_console to ensure that it is always called.
1999-05-05 13:41:19 +00:00
minoura
63a9944d93
mem_exists was called with wrong 2nd argument.
...
Because of this, >12MB high memory was not detected.
1999-05-05 13:38:51 +00:00
tsubai
0e57d44e45
Add missing CPU_MAXID definition.
1999-05-05 11:20:54 +00:00
christos
22de25977b
Argh, removed last ELF induced problem. We used to have syscall: in locore.s
...
and _C_LABEL(syscall) in trap.c. In ELF they are the same. Change the label
in locore.s to be _C_LABEL(_syscall).
While I am there, move the register save and restoral code used in the
*sigcode trampolines into two macros and use them instead of copying 100
lines of assembly each time.
Now everything ELF works.
1999-05-05 10:53:00 +00:00
christos
952f511570
Use -n for ELF. Using -N might work, but produces only one section.
...
No flags will not work, because it will produce a kernel loaded at 0xf0000000.
This is because the bfd ELF pagesize (in elf32-sparc.c) is 0x10000. Since
we need to load at 0xf0004000, we use -n.
1999-05-05 10:50:02 +00:00
tsubai
6168467392
Add cpu.h.
1999-05-05 10:15:53 +00:00
tsubai
9042054e51
Fix a small bug to make both IO and MEM enable bits in csr are set.
1999-05-05 08:43:53 +00:00
chs
9528f61050
in vmapbuf(), use pmap_enter() instead of poking PTEs directly.
1999-05-05 05:25:32 +00:00
chs
39a7993efb
update resident_count and wired_count properly in pmap_kenter_*()
...
and pmap_kremove().
1999-05-05 05:21:13 +00:00
thorpej
fc645b996a
- Always config_found() PCI busses, so we know if present PCI busses
...
aren't configured.
- Grab the bus's memory space tag from the pci_bridge structure for
the bus.
1999-05-05 04:40:00 +00:00
thorpej
654b0fff46
- Completely rewrite how bus space tags for PCI space are set up. Instead
...
of hard-coding them, decode the "ranges" property of the PCI bus node in
OpenFirmware.
- Do a little cleanup, and share some more code between the Bandit/Chaos
and MPC106.
XXX The bus_space(9) implementation for macppc really needs to be
rewritten.
1999-05-05 04:37:19 +00:00
thorpej
c448c97f2b
- Add come comments.
...
- Do a little cleanup.
- Protect the entirety of pci_conf_{read,write}() with splhigh()/splx().
1999-05-05 04:32:28 +00:00
thorpej
341f87673b
Add a bus space tag for PCI memory space to the pci_bridge structure.
1999-05-05 04:26:48 +00:00
thorpej
742e477ae0
Fix msgbuf handling.
1999-05-05 00:03:10 +00:00
thorpej
dbe4c0c061
Make this compile again.
1999-05-04 23:55:27 +00:00
thorpej
c2c47b0da9
Toss contents, and just pull in <powerpc/pmap.h>.
1999-05-04 23:49:18 +00:00
thorpej
da4b05fa8e
Pull in <powerpc/reg.h>.
1999-05-04 23:46:32 +00:00
christos
caa41a7d21
Fix panic and panicstr to use _C_LABEL.
...
Statuc: ELF kernel loads symbols properly, hangs in syscall while running init.
1999-05-04 17:29:22 +00:00
fvdl
4fbaa0b272
Restrict "out of CHS range" check to harddisks.
1999-05-04 17:14:55 +00:00
leo
38029cf240
If the floppy has no label, fake one.
1999-05-04 14:29:44 +00:00
christos
62a2dac0d8
whitespace...
1999-05-04 13:57:19 +00:00
christos
361f7917c8
clean up old GCC.1 stuff; move common definitions to the top.
1999-05-04 13:36:44 +00:00
christos
7d5c65239e
clean up old GCC.1 stuff.
1999-05-04 13:36:10 +00:00
pk
f499d38511
Gain one instruction..
1999-05-03 20:56:11 +00:00
scottr
a4adbf2f86
Move initialization of the iomem extent struct from mac68k_set_io_offset()
...
to mac68k_init(), so that we're through frobbing the MMU in special ways
by the time we get there. While it doesn't actually cause a problem with
the current structure of our initialization code, it probably would have
in the future.
1999-05-03 19:10:54 +00:00
pk
a554ffdde0
Better pad the artificial header to exactly 32 bytes.
1999-05-03 18:59:08 +00:00
christos
c596c324e3
Define __builtin_*() for lint
1999-05-03 16:30:31 +00:00
christos
b70c3eb0ca
Define __extension__ if __GNUC__ < 2
...
Define __builtin_*() for lint
1999-05-03 16:21:28 +00:00
christos
f890155a87
Define __extension__ if __GNUC__ < 2
...
Define __builtin_* for lint.
1999-05-03 16:20:28 +00:00
christos
6207471740
remove unused msgbufaddr
1999-05-03 16:17:57 +00:00
christos
3c86ce132b
s/\<0x4000\>/PROM_LOADADDR
...
remove unused cputypvallen, and _msgbufaddr
1999-05-03 16:17:08 +00:00
christos
b0c181d290
move PROM_LOADADDR from promlib.h to param.h and remove its cast.
1999-05-03 16:14:02 +00:00
christos
6fc35c7fc8
Casts for PROM_LOADADDR which is not casted anymore.
1999-05-03 16:13:16 +00:00
tsubai
fdabab77f2
PT_{STEP,GETREGS,SETREGS} support.
1999-05-03 10:02:19 +00:00
matthias
6a9785dfc6
Fix symbol loading. esym is passed as an offset to loadaddress.
1999-05-03 09:19:29 +00:00
pk
bc1a121cfe
Missing initialization of getbootfile() method for `old' monitors.
1999-05-03 07:32:50 +00:00
tsubai
28b7777fd0
Provide CACHELINESIZE when _STANDALONE is defined too.
1999-05-03 05:19:59 +00:00
kleink
5cbe23baad
Garbage-collect VM_MBUF_SIZE leftover.
1999-05-02 18:12:32 +00:00
ragge
a5ce96e985
EEEK! The signal changes a while ago caused the user struct to be
...
on top of the "red zone" in the kernel stack. This phenomenon has
caused many unexplainable things to happen the last year.
1999-05-02 17:28:43 +00:00
scottr
b997ba8fa3
g/c some useless calculation on avail_remaining after its last reference.
1999-05-02 17:26:14 +00:00
scottr
2f45ab494c
Remove a (harmless) duplicated line.
1999-05-02 17:23:07 +00:00
pk
e3a15d4321
* Add missing label.
...
* Avoid harmful delay-slot instruction, if we did not get a `bootinfo' thing.
* Compute correct location of `esym' for all three methods of debug
symbol loading we support.
1999-05-02 14:47:33 +00:00
christos
797c581bbc
Add bootinfo.h
1999-05-02 13:50:17 +00:00
fvdl
ec559f688b
Be more careful with saving registers around the "out of CHS range" check.
1999-05-02 12:44:34 +00:00
kleink
d34d0ccf51
* Change multiple inclusion protection symbols to use the standard naming
...
convention (not that it should matter for assembly).
* Provide an additional set of _C_LABEL() macros for ELF.
* Provide a PIC_PLT() macro for the benefit of ELF.
1999-05-01 19:20:52 +00:00