From 1bd317067fc30fc34f5ac56e5cdeb7c436347135 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Mon, 5 Sep 2005 21:11:12 +0000 Subject: [PATCH] RAMDISK memory MUST be allocated at top of memory --- second/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/second/main.c b/second/main.c index 21ef37b..7666d36 100644 --- a/second/main.c +++ b/second/main.c @@ -246,7 +246,7 @@ int start(emile_l2_header_t* info) if (info->ramdisk_size != 0) { printf("RAMDISK size is %d Bytes\n", info->ramdisk_size); - ramdisk_start = (unsigned long)malloc_contiguous( + ramdisk_start = (unsigned long)malloc_top( info->ramdisk_size + 4); ramdisk_start = (ramdisk_start + 3) & 0xFFFFFFFC; printf("RAMDISK base at 0x%lx\n", ramdisk_start);