thorpej
ac9eee8693
Take all of the OpenFirmware "stdin" grovelling out of the ADB keyboard
...
driver, as the smarts for this all live somewhere else now.
1999-05-06 19:20:59 +00:00
thorpej
35df607966
Allow pci_init() to be called twice, once just to find the PCI-Host
...
bridges and determine the "pci chipset" values (for making PCI tags),
and again to actually map the configuration space registers.
1999-05-06 19:16:44 +00:00
christos
3cc711cbe0
Well we are functional enough to install from an NTFS volume, so why knot?
1999-05-06 17:12:26 +00:00
christos
d8463798c9
Add NTFS
1999-05-06 16:29:26 +00:00
christos
0c7931917a
recognize ntfs mbr fsid
1999-05-06 15:45:51 +00:00
kleink
6290fed1b6
SVR4-related typo in previous.
1999-05-06 14:16:07 +00:00
kleink
fc1b5041ac
Add a _C_LABEL() macro.
1999-05-06 13:54:06 +00:00
drochner
4479f71283
sync diagnostic printouts in opms_pckbc_probe() with dev/pckbc/psm.c:
...
pmsprobe() -- most notably: put a part inside #ifdef DEBUG
1999-05-06 09:10:51 +00:00
scottr
0179750b00
Correct two more problems of the same type as in rev 1.21: use the length
...
of the buffer you're copying from as the loop interator, not the length
of the buffer you're copying to. Also, rewrite print_single() with
pointer instead of array operators. Appears to correct some ADB-related
`hangs' during autoconfig.
1999-05-06 06:01:27 +00:00
tsubai
661ae33963
Remove unused codes.
1999-05-06 04:37:44 +00:00
thorpej
1f4085fb66
Fix spruious false matches in px_match().
1999-05-06 01:50:56 +00:00
wrstuden
af849de633
MAke this cross-tools happy.
1999-05-06 01:04:48 +00:00
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