mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-22 10:29:31 +00:00
Add BAT mapping for nubus, move interrupts deisabling to enter_kernel
This commit is contained in:
parent
a3d2b674e2
commit
470a2a6315
@ -322,7 +322,11 @@ int start(emile_l2_header_t* info)
|
||||
regs.GPR[2] = 0;
|
||||
regs.GPR[3] = 'BooX';
|
||||
regs.GPR[4] = (u_int32_t)&bootx_infos;
|
||||
regs.GPR[5] = 0;
|
||||
|
||||
/* Set up the info for BAT mapping on Nubus */
|
||||
|
||||
regs.GPR[5] = vga_get_videobase() & 0xFF800000UL;
|
||||
regs.GPR[11] = 1;
|
||||
|
||||
printf("\n");
|
||||
printf("Physical address of kernel will be 0x%08lx\n",
|
||||
@ -332,10 +336,6 @@ int start(emile_l2_header_t* info)
|
||||
|
||||
printf("Ok, booting the kernel.\n");
|
||||
|
||||
/* disable interrupt */
|
||||
|
||||
asm("ori.w #0x0700,%sr");
|
||||
|
||||
/* kick off */
|
||||
|
||||
#ifdef ARCH_M68K
|
||||
@ -347,5 +347,7 @@ int start(emile_l2_header_t* info)
|
||||
enter_kernelPPC((unsigned long)kernel, ®s);
|
||||
#endif
|
||||
|
||||
error("Kernel startup failed");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user