patch-2.1.97 linux/arch/ppc/coffboot/main.c
Next file: linux/arch/ppc/coffboot/misc.S
Previous file: linux/arch/ppc/chrpboot/misc.S
Back to the patch index
Back to the overall index
- Lines: 40
- Date:
Tue Apr 14 17:33:57 1998
- Orig file:
v2.1.96/linux/arch/ppc/coffboot/main.c
- Orig date:
Sat Aug 16 09:51:08 1997
diff -u --recursive --new-file v2.1.96/linux/arch/ppc/coffboot/main.c linux/arch/ppc/coffboot/main.c
@@ -18,9 +18,10 @@
#define get_32be(x) (*(unsigned *)(x))
#define RAM_START 0xc0000000
-#define RAM_END 0xc0800000 /* only 8M mapped with BATs */
+#define PROG_START RAM_START
+#define RAM_END (RAM_START + 0x800000) /* only 8M mapped with BATs */
-#define RAM_FREE 0xc0540000 /* after image of coffboot */
+#define RAM_FREE (RAM_START + 0x540000) /* after image of coffboot */
char *avail_ram;
char *end_avail;
@@ -47,7 +48,7 @@
printf("error getting load-base\n");
exit();
}
- setup_bats();
+ setup_bats(RAM_START);
eh = (struct external_filehdr *) loadbase;
ns = get_16be(eh->f_nscns);
@@ -82,7 +83,7 @@
im = (unsigned char *)(loadbase + get_32be(isect->s_scnptr));
len = get_32be(isect->s_size);
- dst = (void *) RAM_START;
+ dst = (void *) PROG_START;
if (im[0] == 0x1f && im[1] == 0x8b) {
void *cp = (void *) RAM_FREE;
@@ -98,7 +99,7 @@
flush_cache(dst, len);
- sa = *(unsigned *)dst + RAM_START;
+ sa = *(unsigned *)dst + PROG_START;
printf("start address = 0x%x\n", sa);
#if 0
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov