mirror of
https://github.com/thamugadi/powerpc-ofw-boot.git
synced 2024-06-04 22:29:32 +00:00
27 lines
283 B
C
27 lines
283 B
C
#include <ofw.h>
|
|
|
|
void (*ofw)();
|
|
void __eabi();
|
|
|
|
void __stack_chk_fail_local(void)
|
|
{
|
|
}
|
|
void __eabi(void)
|
|
{
|
|
}
|
|
|
|
void main(void)
|
|
{
|
|
ofw_interpret("blink-screen", 0, 0, 0, 0);
|
|
if (ofw_test("open"))
|
|
{
|
|
asm("mr 27, 28");
|
|
asm("b $");
|
|
}
|
|
else
|
|
{
|
|
asm("mr 30, 31");
|
|
asm("b $");
|
|
}
|
|
}
|