diff options
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/crt_arch.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/powerpc/crt_arch.h b/arch/powerpc/crt_arch.h new file mode 100644 index 00000000..8cc53d98 --- /dev/null +++ b/arch/powerpc/crt_arch.h @@ -0,0 +1,12 @@ +__asm__("\ +.global _start \n\ +.type _start, %function \n\ +_start: \n\ + mr 3, 1 \n\ + clrrwi 1, 1, 4 \n\ + li 0, 0 \n\ + stwu 1, -16(1) \n\ + mtlr 0 \n\ + stw 0, 0(1) \n\ + bl __cstart \n\ +"); |