diff options
Diffstat (limited to 'arch/powerpc/kernel/misc.S')
-rw-r--r-- | arch/powerpc/kernel/misc.S | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/misc.S b/arch/powerpc/kernel/misc.S index 85cb6f340846..2d29752cbe16 100644 --- a/arch/powerpc/kernel/misc.S +++ b/arch/powerpc/kernel/misc.S | |||
@@ -31,11 +31,14 @@ _GLOBAL(reloc_offset) | |||
31 | mflr r0 | 31 | mflr r0 |
32 | bl 1f | 32 | bl 1f |
33 | 1: mflr r3 | 33 | 1: mflr r3 |
34 | LOAD_REG_IMMEDIATE(r4,1b) | 34 | PPC_LL r4,(2f-1b)(r3) |
35 | subf r3,r4,r3 | 35 | subf r3,r4,r3 |
36 | mtlr r0 | 36 | mtlr r0 |
37 | blr | 37 | blr |
38 | 38 | ||
39 | .align 3 | ||
40 | 2: PPC_LONG 1b | ||
41 | |||
39 | /* | 42 | /* |
40 | * add_reloc_offset(x) returns x + reloc_offset(). | 43 | * add_reloc_offset(x) returns x + reloc_offset(). |
41 | */ | 44 | */ |
@@ -43,12 +46,15 @@ _GLOBAL(add_reloc_offset) | |||
43 | mflr r0 | 46 | mflr r0 |
44 | bl 1f | 47 | bl 1f |
45 | 1: mflr r5 | 48 | 1: mflr r5 |
46 | LOAD_REG_IMMEDIATE(r4,1b) | 49 | PPC_LL r4,(2f-1b)(r5) |
47 | subf r5,r4,r5 | 50 | subf r5,r4,r5 |
48 | add r3,r3,r5 | 51 | add r3,r3,r5 |
49 | mtlr r0 | 52 | mtlr r0 |
50 | blr | 53 | blr |
51 | 54 | ||
55 | .align 3 | ||
56 | 2: PPC_LONG 1b | ||
57 | |||
52 | _GLOBAL(kernel_execve) | 58 | _GLOBAL(kernel_execve) |
53 | li r0,__NR_execve | 59 | li r0,__NR_execve |
54 | sc | 60 | sc |