mirror of
https://github.com/vivier/EMILE.git
synced 2025-08-15 07:27:41 +00:00
more error cases for wrong architecture
This commit is contained in:
@@ -124,6 +124,10 @@ int start(emile_l2_header_t* info)
|
|||||||
else
|
else
|
||||||
error("Unknown MMU");
|
error("Unknown MMU");
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
#ifndef ARCH_PPC
|
||||||
|
error("EMILE doesn't support your architecture");
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#ifdef ARCH_PPC
|
#ifdef ARCH_PPC
|
||||||
if (arch_type == gestaltPowerPC)
|
if (arch_type == gestaltPowerPC)
|
||||||
@@ -131,6 +135,8 @@ int start(emile_l2_header_t* info)
|
|||||||
enter_kernel = (unsigned long)enter_kernelPPC;
|
enter_kernel = (unsigned long)enter_kernelPPC;
|
||||||
end_enter_kernel = (unsigned long)&end_enter_kernelPPC;
|
end_enter_kernel = (unsigned long)&end_enter_kernelPPC;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
error("EMILE doesn't support your architecture");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* load kernel */
|
/* load kernel */
|
||||||
@@ -286,6 +292,10 @@ int start(emile_l2_header_t* info)
|
|||||||
memcpy((char*)entry, (char*)enter_kernel, size);
|
memcpy((char*)entry, (char*)enter_kernel, size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
#ifndef ARCH_PPC
|
||||||
|
error("EMILE doesn't support your architecture");
|
||||||
|
#endif
|
||||||
#endif /* ARCH_M68K */
|
#endif /* ARCH_M68K */
|
||||||
#ifdef ARCH_PPC
|
#ifdef ARCH_PPC
|
||||||
if (arch_type == gestaltPowerPC)
|
if (arch_type == gestaltPowerPC)
|
||||||
@@ -295,6 +305,8 @@ int start(emile_l2_header_t* info)
|
|||||||
physImage = kernel;
|
physImage = kernel;
|
||||||
start_mem = 0x200000;
|
start_mem = 0x200000;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
error("EMILE doesn't support your architecture");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
Reference in New Issue
Block a user