diff options
author | grehan <grehan@FreeBSD.org> | 2004-02-04 13:23:05 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2004-02-04 13:23:05 +0000 |
commit | 447c6cb5674ef0908dbb1297054688b90b909693 (patch) | |
tree | 197852a09afc679d3fd54b514ca895aeef322185 /sys/powerpc | |
parent | 1671fa54476452a92011938e1284f4472753bc60 (diff) | |
download | FreeBSD-src-447c6cb5674ef0908dbb1297054688b90b909693.zip FreeBSD-src-447c6cb5674ef0908dbb1297054688b90b909693.tar.gz |
- add a description of what .gdbinit should contain.
- add an option for the output device in the hope that this can
be made non-blocking at some stage.
- define an alias for the disk device, required by dev/ofw/ofw_disk.c
- shift iobus to 0x9000000 so as not to clash with the OpenFirmware
entry point of 0x8000400 when address decoding.
- down-tone comments about the disk dev config :-)
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/psim/psim-tree | 34 |
1 files changed, 25 insertions, 9 deletions
diff --git a/sys/powerpc/psim/psim-tree b/sys/powerpc/psim/psim-tree index 6e038d4..62391c5 100644 --- a/sys/powerpc/psim/psim-tree +++ b/sys/powerpc/psim/psim-tree @@ -2,11 +2,27 @@ # # Simple psim h/w description # +# The .gdbinit should contain something like: +# +# target sim -e chirp -r 33554432 -f psim-tree +# load +# +# (The -r option is the amount of physical RAM the simulator has) +# /#address-cells 1 /openprom/options/use-stdio? false #/openprom/options/strict-alignment? true +/options + ./output-device "psim-stdout + +# +# Define the disk device alias so ofwd can identify it +# +/aliases + ./ofwdisk "/phb@0x70000000/ide@1/disk@0 + # # CPU definition. The phandle property is to help nexus.c locate the # interrupt controller. @@ -14,7 +30,7 @@ /cpus/cpu@0 # -# disk file, done via phb crap. maybe there's a better way. +# disk file, done via phb. maybe there's a simpler way. # /phb@0x70000000 ./device_type "pci @@ -41,23 +57,23 @@ i0,0,20,0 8 ./ready-delay 1000 -/phb@0x70000000/ide@1/disk@0/file "PPC.IMG +/phb@0x70000000/ide@1/disk@0/file "../image.iso # # I/O Bus # -/iobus@0x80000000 +/iobus@0x90000000 ./name psim-iobus - ./reg 0x80000000 0x20000000 + ./reg 0x90000000 0x20000000 # # OpenPIC # -/iobus@0x80000000/opic@0x80000000 +/iobus@0x90000000/opic@0x90000000 ./name interrupt-controller ./device_type open-pic ./compatible psim,open-pic - ./reg 0x80000000 0x40000 + ./reg 0x90000000 0x40000 ./interrupt-ranges 0 256 /iobus/opic > intr0 int /cpus/cpu@0x0 @@ -65,10 +81,10 @@ # # IDE1 # -#/iobus@0x80000000/ide@0x80052000 +#/iobus@0x90000000/ide@0x90052000 # ./name ata-4 # ./ioport 1 # ./device_type ata # ./interrupt 12 -# ./reg 0x80052000 8 0x80052010 8 0x80052020 8 0x80052030 1 0x80052040 1 0x80052050 8 -#/iobus@0x80000000/ide@0x80052000 > a irq12 /iobus/opic +# ./reg 0x90052000 8 0x90052010 8 0x90052020 8 0x90052030 1 0x90052040 1 0x90052050 8 +#/iobus@0x90000000/ide@0x90052000 > a irq12 /iobus/opic |