disable cache early (resolve bad ramdisk detection

This commit is contained in:
Laurent Vivier 2004-06-09 20:52:14 +00:00
parent e56b1b94fd
commit dd44e86f5e

View File

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