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);