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/tools/mkmboot/stage2
- from Rev 17 to Rev 86
- ↔ Reverse comparison
Rev 17 → Rev 86
/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 |
/mboot.c
253,10 → 253,10
continue; |
} |
/* load boot sector of selected partition */ |
readDisk(ptr[part].start, (unsigned char *) 0xC0000000, 1); |
readDisk(ptr[part].start, (unsigned char *) 0xC0010000, 1); |
/* check for signature */ |
if ((*((unsigned char *) 0xC0000000 + SECTOR_SIZE - 2) != 0x55) || |
(*((unsigned char *) 0xC0000000 + SECTOR_SIZE - 1) != 0xAA)) { |
if ((*((unsigned char *) 0xC0010000 + SECTOR_SIZE - 2) != 0x55) || |
(*((unsigned char *) 0xC0010000 + SECTOR_SIZE - 1) != 0xAA)) { |
printf("boot sector of partition %d has no signature\n", part); |
continue; |
} |
266,6 → 266,6
/* boot manager finished, now go executing loaded boot sector */ |
startSector = ptr[part].start; |
numSectors = ptr[part].size; |
entryPoint = 0xC0000000; |
entryPoint = 0xC0010000; |
return 0; |
} |
/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 |
/Makefile
7,7 → 7,7
all: mboot.bin |
|
mboot.bin: c0.o mboot.o biolib.o c1.o |
$(BUILD)/bin/ld -h -rc 0xC0001000 -o mboot.bin \ |
$(BUILD)/bin/ld -h -rc 0xC0011000 -o mboot.bin \ |
c0.o mboot.o biolib.o c1.o |
|
c0.o: c0.s |