powerpc-ofw-boot/entry/boot.c

26 lines
235 B
C
Raw Normal View History

2023-07-01 20:31:17 +00:00
#include <ofw.h>
2023-07-01 11:07:36 +00:00
void (*ofw)();
void __eabi();
2023-07-01 02:52:59 +00:00
void __stack_chk_fail_local(void)
2021-09-23 13:13:49 +00:00
{
2021-09-30 17:18:01 +00:00
}
2023-07-01 02:52:59 +00:00
void __eabi(void)
2021-09-30 17:18:01 +00:00
{
2022-11-30 20:20:40 +00:00
}
2023-07-01 02:52:59 +00:00
void main(void)
2022-11-30 20:20:40 +00:00
{
2023-07-01 15:22:55 +00:00
if (test("open"))
2022-11-30 20:20:40 +00:00
{
2023-07-01 02:52:59 +00:00
asm("mr 27, 28");
asm("b $");
2022-11-30 20:20:40 +00:00
}
2023-07-01 02:52:59 +00:00
else
2021-10-11 09:36:11 +00:00
{
2023-07-01 02:52:59 +00:00
asm("mr 30, 31");
asm("b $");
2021-10-11 09:36:11 +00:00
}
2021-09-23 13:13:49 +00:00
}