switch off interrupts before the PPC bootstrap

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
Laurent Vivier 2009-06-12 01:14:28 +02:00
parent 5f819dde88
commit 80b3fbbec7

View File

@ -260,6 +260,13 @@ retry:
error("EMILE doesn't support your architecture");
#endif
#endif /* ARCH_M68K */
turn_off_interrupts();
asm("ori.w #0x0700,%sr");
/* kick off */
#ifdef ARCH_PPC
if (arch_type == gestaltPowerPC)
{
@ -287,13 +294,6 @@ retry:
else
error("EMILE doesn't support your architecture");
#endif
turn_off_interrupts();
asm("ori.w #0x0700,%sr");
/* kick off */
#ifdef ARCH_M68K
if (arch_type == gestalt68k)
entry(physImage, kernel_size + BI_ALLOC_SIZE, start_mem, entry_point);