OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /eco32/trunk/disk
    from Rev 99 to Rev 112
    Reverse comparison

Rev 99 → Rev 112

/tools/fs-NetBSD/loader/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
/tools/fs-NetBSD/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
16,28 → 16,14
; must be in standalone (headerless) executable
; format, stored at partition relative disk
; sectors 2..15 (i.e., the boot block), and
; gets loaded and started at 0xC0001000.
; gets loaded and started at 0xC0011000.
 
.set stacktop,0xC0001000 ; top of stack
.set loadaddr,0xC0001000 ; where to load the boot loader
.set stacktop,0xC0011000 ; top of stack
.set loadaddr,0xC0011000 ; 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:
/tools/fs-NetBSD/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
/tools/fs-NetBSD/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
/tools/fs-NetBSD/mkboot/stage2/c0.s
41,7 → 41,7
add $8,$8,4
clrtest:
bltu $8,$9,clrloop
add $29,$0,0xC0010000 ; setup stack
add $29,$0,0xC0020000 ; setup stack
stw $16,$0,bootDisk ; make arguments available
stw $17,$0,startSector
stw $18,$0,numSectors
/tools/fs-NetBSD/mkboot/stage2/Makefile
7,7 → 7,7
all: boot.bin
 
boot.bin: c0.o boot.o biolib.o c1.o
$(BUILD)/bin/ld -h -rc 0xC0001000 -o boot.bin \
$(BUILD)/bin/ld -h -rc 0xC0011000 -o boot.bin \
c0.o boot.o biolib.o c1.o
 
c0.o: c0.s

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.