From dd44e86f5edbedf4def1b5c285246fdafcb65dd4 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Wed, 9 Jun 2004 20:52:14 +0000 Subject: [PATCH] disable cache early (resolve bad ramdisk detection --- second/main.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/second/main.c b/second/main.c index 5f55fa6..5a75766 100644 --- a/second/main.c +++ b/second/main.c @@ -180,9 +180,12 @@ int start(struct first_level_info* info) ramdisk_start = 0; printf("no RAMDISK\n"); } - ret = logical2physical((unsigned long)kernel, &physImage); + /* disable and flush cache */ + + disable_cache(); + /* initialize bootinfo structure */ bootinfo_init(info->command_line, @@ -229,10 +232,6 @@ int start(struct first_level_info* info) printf("Physical address of kernel will be 0x%08lx\n", start_mem); printf("Ok, booting the kernel.\n"); - /* disable and flush cache */ - - disable_cache(); - /* kick off */ entry(physImage, uncompressed_size + BI_ALLOC_SIZE, start_mem);