blueswirl's sparc32 patches - boots linux.

git-svn-id: svn://coreboot.org/openbios/openbios-devel@35 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Stefan Reinauer
2006-05-28 18:48:47 +00:00
parent 172438f171
commit f7784c1d5d
5 changed files with 20 additions and 719 deletions

View File

@@ -197,8 +197,7 @@ inquiry(esp_private_t *esp, sd_private_t *sd)
esp->buffer[0] = 0x80;
esp->buffer[1] = INQUIRY;
esp->buffer[4] = BUFSIZE & 0xff;
esp->buffer[5] = (BUFSIZE >> 8) & 0xff;
esp->buffer[5] = 36;
if (do_command(esp, sd, 7, 36)) {
sd->present = 0;

View File

@@ -224,7 +224,7 @@ init_mmu_swift(unsigned long base)
PUSH(0);
fword("encode-int");
fword("encode+");
PUSH(va2pa((unsigned long)&_data) - 1);
PUSH(va2pa((unsigned long)&_data) - PAGE_SIZE);
fword("encode-int");
fword("encode+");
push_str("available");
@@ -249,7 +249,7 @@ init_mmu_swift(unsigned long base)
PUSH(0);
fword("encode-int");
fword("encode+");
PUSH(va2pa((unsigned long)&_start) - 1);
PUSH((unsigned long)&_start - PAGE_SIZE);
fword("encode-int");
fword("encode+");

View File

@@ -389,10 +389,11 @@ ob_obio_init(unsigned long slavio_base)
ob_set_obio_ranges(slavio_base);
#endif
ob_zs_init(slavio_base, SLAVIO_ZS, ZS_INTR, 1, 1);
// Must be before zs@0,0 or Linux won't boot
ob_zs_init(slavio_base, SLAVIO_ZS1, ZS_INTR, 0, 0);
ob_zs_init(slavio_base, SLAVIO_ZS, ZS_INTR, 1, 1);
ob_nvram_init(slavio_base, SLAVIO_NVRAM);
ob_fd_init(slavio_base, SLAVIO_FD, FD_INTR);