X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=second%2Fyaboot.c;h=b7b9280b7577dc7ea8606ade10f002c64bc5d0fb;hb=b5f28817d6d68c2cb2a3e5eaefe4633b085557b6;hp=c73348845721ee06eaadaff8bab1e5cb8497e37f;hpb=89aafcfba49a5a302c591b05c7c73d26451dcfda;p=yaboot.git diff --git a/second/yaboot.c b/second/yaboot.c index c733488..b7b9280 100644 --- a/second/yaboot.c +++ b/second/yaboot.c @@ -180,10 +180,10 @@ yaboot_start (unsigned long r3, unsigned long r4, unsigned long r5) prom_print_available(); /* Allocate some memory for malloc'ator */ - malloc_base = prom_claim_chunk((void *)MALLOCADDR, MALLOCSIZE, 0); + malloc_base = prom_claim_chunk_top(MALLOCSIZE, 0); if (malloc_base == (void *)-1) { - prom_printf("Can't claim malloc buffer (%d bytes at 0x%08x)\n", - MALLOCSIZE, MALLOCADDR); + prom_printf("Can't claim malloc buffer of %d bytes\n", + MALLOCSIZE); return -1; } malloc_init(malloc_base, MALLOCSIZE);