mirror of
https://github.com/thamugadi/powerpc-ofw-boot.git
synced 2024-06-02 09:41:29 +00:00
24 lines
221 B
C
24 lines
221 B
C
void (*ofw)();
|
|
void __eabi();
|
|
|
|
void __stack_chk_fail_local(void)
|
|
{
|
|
}
|
|
void __eabi(void)
|
|
{
|
|
}
|
|
|
|
void main(void)
|
|
{
|
|
if (ofw_test("open"))
|
|
{
|
|
asm("mr 27, 28");
|
|
asm("b $");
|
|
}
|
|
else
|
|
{
|
|
asm("mr 30, 31");
|
|
asm("b $");
|
|
}
|
|
}
|