import preliminary ppc work by rdp.

This commit is contained in:
Richard Pennington
2012-11-13 18:15:10 +01:00
committed by rofl0r
parent 1e717ea3d2
commit 7669d1e334
38 changed files with 2124 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#include <bits/asm.h>
.global _longjmp
.global longjmp
.type _longjmp,@function
.type longjmp,@function
_longjmp:
longjmp:
cmpi 7, 0, r3, 0
bne 7, 1f
addi r3, r3, 1
1: lmw r8, 4(r3) // load r8-r31
mr r6, r4
mtlr r11
mtcr r12
mr r2, r9
mr r1, r10
blr
+18
View File
@@ -0,0 +1,18 @@
#include <bits/asm.h>
.global __setjmp
.global _setjmp
.global setjmp
.type __setjmp,@function
.type _setjmp,@function
.type setjmp,@function
__setjmp:
_setjmp:
setjmp:
mflr r11
mfcr r12
mr r10, r1
mr r9, r2
stmw r8, 0(r3) // save r8-r31
li r3,0
blr