to allow serial console, move last printf before cache flush and interrupt disabling

This commit is contained in:
Laurent Vivier 2004-06-23 19:09:11 +00:00
parent 4898661e76
commit 524e4e046b

View File

@ -190,9 +190,11 @@ int start(emile_l2_header_t* info)
set_kernel_bootinfo(kernel + uncompressed_size);
/* disable interrupt */
start_mem = boot_info.memory[0].addr + PAGE_SIZE;
asm("ori.w #0x0700,%sr");
printf("\n");
printf("Physical address of kernel will be 0x%08lx\n", start_mem);
printf("Ok, booting the kernel.\n");
ret = logical2physical(enter_kernel, (unsigned long*)&entry);
@ -209,11 +211,9 @@ int start(emile_l2_header_t* info)
memcpy((char*)entry, (char*)enter_kernel, size);
}
start_mem = boot_info.memory[0].addr + PAGE_SIZE;
/* disable interrupt */
printf("\n");
printf("Physical address of kernel will be 0x%08lx\n", start_mem);
printf("Ok, booting the kernel.\n");
asm("ori.w #0x0700,%sr");
/* kick off */