diff --git a/sys/boot/alpha/common/main.c b/sys/boot/alpha/common/main.c index 778ce82ba44d..8b5fcffac181 100644 --- a/sys/boot/alpha/common/main.c +++ b/sys/boot/alpha/common/main.c @@ -66,8 +66,8 @@ memsize() /* #define XTRA_PAGES 32 */ #define XTRA_PAGES 64 -static void -extend_heap() +void +extend_heap(void) { struct rpb *hwrpb = (struct rpb *)HWRPB_ADDR; struct mddt *mddtp; @@ -119,7 +119,6 @@ main(void) * alloc() is usable. The stack is buried inside us, so this is * safe. */ - extend_heap(); setheap((void *)end, (void *)(0x20040000 + XTRA_PAGES * 8192)); #ifdef LOADER diff --git a/sys/boot/alpha/libalpha/start.S b/sys/boot/alpha/libalpha/start.S index 1830baf82e4a..6cf30a32aa5b 100644 --- a/sys/boot/alpha/libalpha/start.S +++ b/sys/boot/alpha/libalpha/start.S @@ -52,6 +52,10 @@ NESTED(start, 1, ENTRY_FRAME, ra, 0, 0) Lstartgp: LDGP(pv) +#ifndef BOOT1 + CALL(extend_heap) +#endif + lda a0,_edata lda a1,_end subq a1,a0,a1