1 | $NetBSD$ |
---|
2 | |
---|
3 | --- src/jit/ppc/asm.s.orig 2009-03-08 21:32:42.000000000 +0100 |
---|
4 | +++ src/jit/ppc/asm.s |
---|
5 | @@ -1,25 +1,30 @@ |
---|
6 | .text |
---|
7 | .align 12 |
---|
8 | +#ifdef __linux__ |
---|
9 | .globl _Parrot_ppc_jit_restore_nonvolatile_registers |
---|
10 | _Parrot_ppc_jit_restore_nonvolatile_registers: |
---|
11 | +#else |
---|
12 | + .globl Parrot_ppc_jit_restore_nonvolatile_registers |
---|
13 | +Parrot_ppc_jit_restore_nonvolatile_registers: |
---|
14 | +#endif |
---|
15 | |
---|
16 | - lfd f14,-84(r1) |
---|
17 | - lfd f15,-92(r1) |
---|
18 | - lfd f16,-100(r1) |
---|
19 | - lfd f17,-108(r1) |
---|
20 | - lfd f18,-116(r1) |
---|
21 | - lfd f19,-124(r1) |
---|
22 | - lfd f20,-132(r1) |
---|
23 | - lfd f21,-140(r1) |
---|
24 | - lfd f22,-148(r1) |
---|
25 | - lfd f23,-156(r1) |
---|
26 | - lfd f24,-164(r1) |
---|
27 | - lfd f25,-172(r1) |
---|
28 | - lfd f26,-180(r1) |
---|
29 | - lfd f27,-188(r1) |
---|
30 | - lfd f28,-196(r1) |
---|
31 | - lfd f29,-204(r1) |
---|
32 | - lfd f30,-212(r1) |
---|
33 | - lfd f31,-220(r1) |
---|
34 | + lfd %f14,-84(%r1) |
---|
35 | + lfd %f15,-92(%r1) |
---|
36 | + lfd %f16,-100(%r1) |
---|
37 | + lfd %f17,-108(%r1) |
---|
38 | + lfd %f18,-116(%r1) |
---|
39 | + lfd %f19,-124(%r1) |
---|
40 | + lfd %f20,-132(%r1) |
---|
41 | + lfd %f21,-140(%r1) |
---|
42 | + lfd %f22,-148(%r1) |
---|
43 | + lfd %f23,-156(%r1) |
---|
44 | + lfd %f24,-164(%r1) |
---|
45 | + lfd %f25,-172(%r1) |
---|
46 | + lfd %f26,-180(%r1) |
---|
47 | + lfd %f27,-188(%r1) |
---|
48 | + lfd %f28,-196(%r1) |
---|
49 | + lfd %f29,-204(%r1) |
---|
50 | + lfd %f30,-212(%r1) |
---|
51 | + lfd %f31,-220(%r1) |
---|
52 | |
---|
53 | blr |
---|
54 | $NetBSD$ |
---|
55 | |
---|
56 | --- src/exec_save.c.orig 2009-03-08 21:32:43.000000000 +0100 |
---|
57 | +++ src/exec_save.c |
---|
58 | @@ -30,6 +30,11 @@ static void save_int(FILE *fp, int i); |
---|
59 | static void save_short(FILE *fp, short s); |
---|
60 | static void save_struct(FILE *fp, void *sp, size_t size); |
---|
61 | |
---|
62 | +#if defined(PARROT_PPC) && defined(__NetBSD__) |
---|
63 | +#define R_PPC_ADDR16_HI R_PPC_16_HI |
---|
64 | +#define R_PPC_ADDR16_LO R_PPC_16_LO |
---|
65 | +#endif /* PARROT_PPC && __NetBSD__ */ |
---|
66 | + |
---|
67 | #ifdef EXEC_A_OUT |
---|
68 | |
---|
69 | # include <a.out.h> |
---|