URL
https://opencores.org/ocsvn/eco32/eco32/trunk
Subversion Repositories eco32
Compare Revisions
- This comparison shows the changes necessary to convert path
/eco32/trunk
- from Rev 88 to Rev 89
- ↔ Reverse comparison
Rev 88 → Rev 89
/disk/tools/fs-EOS32/mkboot/stage1/br.s
4,8 → 4,8
|
; Runtime environment: |
; |
; This code must be loaded and started at 0xC0000000. |
; It allocates a stack from 0xC0001000 downwards. So |
; This code must be loaded and started at 0xC0010000. |
; It allocates a stack from 0xC0011000 downwards. So |
; it must run within 4K (code + data + stack). |
; |
; This code expects the disk number of the boot disk |
18,26 → 18,12
; sectors 1..7 (i.e., the boot block), and |
; gets loaded and started at 0xC0300000. |
|
.set stacktop,0xC0001000 ; top of stack |
.set stacktop,0xC0011000 ; top of stack |
.set loadaddr,0xC0300000 ; where to load the boot loader |
|
.set cout,0xE0000018 ; ROM console output |
.set dskio,0xE0000030 ; ROM disk I/O |
.set cout,0xC0000018 ; the monitor's console output |
.set dskio,0xC0000030 ; the monitor's disk I/O |
|
; reset arrives here |
reset: |
j start |
|
; interrupts arrive here |
intrpt: |
j userMiss |
|
; user TLB misses arrive here |
userMiss: |
add $4,$0,intmsg ; we do not expect any interrupt |
jal msgout |
j halt |
|
; load the boot loader and start it |
start: |
add $29,$0,stacktop ; setup stack |
114,8 → 100,6
j halt1 |
|
; messages |
intmsg: |
.byte "unexpected interrupt", 0x0D, 0x0A, 0 |
strtmsg: |
.byte "BR executing...", 0x0D, 0x0A, 0 |
dremsg: |
/disk/tools/fs-EOS32/mkboot/stage1/Makefile
7,7 → 7,7
all: br.bin |
|
br.bin: br.o |
$(BUILD)/bin/ld -h -rc 0xC0000000 -o br.bin br.o |
$(BUILD)/bin/ld -h -rc 0xC0010000 -o br.bin br.o |
|
br.o: br.s |
$(BUILD)/bin/as -o br.o br.s |
/disk/tools/fs-EOS32/mkboot/stage2/biolib.s
2,9 → 2,9
; biolib.s -- basic I/O library |
; |
|
.set cin,0xE0000010 |
.set cout,0xE0000018 |
.set dskio,0xE0000030 |
.set cin,0xC0000010 |
.set cout,0xC0000018 |
.set dskio,0xC0000030 |
|
.export getc |
.export putc |