diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/crt_arch.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/sh/crt_arch.h b/arch/sh/crt_arch.h index d63ce0d1..948bcb79 100644 --- a/arch/sh/crt_arch.h +++ b/arch/sh/crt_arch.h @@ -4,6 +4,18 @@ __asm__( ".text \n" ".global " START " \n" START ": \n" +" tst r8, r8 \n" +" bf 1f \n" +" mov #68, r3 \n" +" add r3, r3 \n" +" mov #8, r4 \n" +" swap.w r4, r4 \n" +" trapa #31 \n" +" nop \n" +" nop \n" +" nop \n" +" nop \n" +"1: nop \n" #ifndef SHARED " mov r8, r4 \n" " mova 1f, r0 \n" |