Restore RBV macintosh compatibility

This commit is contained in:
Laurent Vivier 2005-05-14 01:12:46 +00:00
parent 506df41cdc
commit d7cc164486

View File

@ -255,10 +255,10 @@ int start(emile_l2_header_t* info)
}
#ifdef ARCH_M68K
ret = logical2physical((unsigned long)kernel, &physImage);
if (arch_type == gestalt68k)
{
ret = logical2physical((unsigned long)kernel, &physImage);
/* disable and flush cache */
disable_cache();
@ -286,6 +286,11 @@ int start(emile_l2_header_t* info)
start_mem = boot_info.memory[0].addr + PAGE_SIZE;
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);
if ( (ret == 0) && (enter_kernel != (unsigned long)entry) )
@ -299,10 +304,6 @@ int start(emile_l2_header_t* info)
memcpy((char*)logi, (char*)enter_kernel, size);
memcpy((char*)entry, (char*)enter_kernel, size);
}
printf("\n");
printf("Physical address of kernel will be 0x%08lx\n",
start_mem);
}
else
#ifndef ARCH_PPC
@ -331,11 +332,12 @@ int start(emile_l2_header_t* info)
printf("\n");
printf("Physical address of kernel will be 0x%08lx\n",
(unsigned long)kernel);
printf("Ok, booting the kernel.\n");
}
else
error("EMILE doesn't support your architecture");
#endif
printf("Ok, booting the kernel.\n");
/* kick off */
#ifdef ARCH_M68K