Skip to content
Browse files

fix the stupid prolog/epilog mixup

  • Loading branch information...
1 parent e9ce6fd commit ad982d88b38d992a448e6be8786b4d114e3e6f2a @kakaroto committed Nov 28, 2010
View
4 default_payload.S
@@ -42,7 +42,7 @@ RESIDENT_AREA_END()
*
*/
payload_main:
- // epilog
+ // prolog
mflr %r0
stdu %r1, -0xa0(%r1)
std %r30, 0x90(%r1)
@@ -68,7 +68,7 @@ payload_main:
APPLY_PATCHES(%r30, %r31)
- // prolog
+ // epilog
ld %r30, 0x90(%r1)
ld %r31, 0x98(%r1)
ld %r0, 0xb0(%r1)
View
4 map_open_path.h.S
@@ -87,7 +87,7 @@ set_new_path:
*/
.align 4
map_open_path_start:
- // epilog
+ // prolog
mflr %r0
stdu %r1, -0xc0(%r1)
std %r24, 0x70(%r1)
@@ -219,7 +219,7 @@ l_map_open_return_0:
li %r3, 0 // return 0
b l_map_open_return
l_map_open_return:
- // prolog
+ // epilog
ld %r24, 0x70(%r1)
ld %r25, 0x78(%r1)
ld %r26, 0x80(%r1)
View
2 open_hook.h.S
@@ -41,7 +41,7 @@ DEFINE_FUNC_PTR(map_open_path)
* @new_path or if @new_path is #NULL, it will remove the mapping
*/
syscall_map_open:
- // epilog
+ // prolog
mflr %r0
stdu %r1, -0xc0(%r1)
std %r26, 0x70(%r1)
View
4 payload_dev.S
@@ -31,7 +31,7 @@ RESIDENT_AREA_END()
#include "patch_table.h.S"
payload_main:
- // epilog
+ // prolog
mflr %r0
stdu %r1, -0xa0(%r1)
std %r30, 0x90(%r1)
@@ -58,7 +58,7 @@ payload_main:
APPLY_PATCHES(%r30, %r31)
- // prolog
+ // epilog
ld %r30, 0x90(%r1)
ld %r31, 0x98(%r1)
ld %r0, 0xb0(%r1)
View
4 payload_dump_elfs.S
@@ -258,7 +258,7 @@ RESIDENT_AREA_END()
#include "patch_table.h.S"
payload_main:
- // epilog
+ // prolog
mflr %r0
stdu %r1, -0xa0(%r1)
std %r30, 0x90(%r1)
@@ -276,7 +276,7 @@ payload_main:
LOAD_FUNC_PTR(send_eth)
INIT_SEND_ETH(%r30)
- // prolog
+ // epilog
ld %r30, 0x90(%r1)
ld %r31, 0x98(%r1)
ld %r0, 0xb0(%r1)
View
4 payload_no_unauth_syscall.S
@@ -41,7 +41,7 @@ RESIDENT_AREA_END()
*
*/
payload_main:
- // epilog
+ // prolog
mflr %r0
stdu %r1, -0xa0(%r1)
std %r30, 0x90(%r1)
@@ -67,7 +67,7 @@ payload_main:
APPLY_PATCHES(%r30, %r31)
- // prolog
+ // epilog
ld %r30, 0x90(%r1)
ld %r31, 0x98(%r1)
ld %r0, 0xb0(%r1)
View
4 payload_trace_all_sc_calls.S
@@ -32,7 +32,7 @@ RESIDENT_AREA_END()
#include "patch_table.h.S"
payload_main:
- // epilog
+ // prolog
mflr %r0
stdu %r1, -0xa0(%r1)
std %r30, 0x90(%r1)
@@ -55,7 +55,7 @@ payload_main:
// screwed
bl hook_hvsc
- // prolog
+ // epilog
ld %r30, 0x90(%r1)
ld %r31, 0x98(%r1)
ld %r0, 0xb0(%r1)
View
4 payload_trace_hypercalls.S
@@ -32,7 +32,7 @@ RESIDENT_AREA_END()
payload_main:
- // epilog
+ // prolog
mflr %r0
stdu %r1, -0xa0(%r1)
std %r30, 0x90(%r1)
@@ -56,7 +56,7 @@ payload_main:
// screwed
bl hook_hvsc
- // prolog
+ // epilog
ld %r30, 0x90(%r1)
ld %r31, 0x98(%r1)
ld %r0, 0xb0(%r1)
View
4 payload_trace_syscalls.S
@@ -29,7 +29,7 @@ RESIDENT_AREA_END()
#include "patch_table.h.S"
payload_main:
- // epilog
+ // prolog
mflr %r0
stdu %r1, -0xa0(%r1)
std %r30, 0x90(%r1)
@@ -47,7 +47,7 @@ payload_main:
APPLY_PATCHES(%r30, %r31)
- // prolog
+ // epilog
ld %r30, 0x90(%r1)
ld %r31, 0x98(%r1)
ld %r0, 0xb0(%r1)
View
4 payload_trace_vuart.S
@@ -30,7 +30,7 @@ RESIDENT_AREA_END()
#include "patch_table.h.S"
payload_main:
- // epilog
+ // prolog
mflr %r0
stdu %r1, -0xa0(%r1)
std %r30, 0x90(%r1)
@@ -54,7 +54,7 @@ payload_main:
// screwed
bl hook_hvsc
- // prolog
+ // epilog
ld %r30, 0x90(%r1)
ld %r31, 0x98(%r1)
ld %r0, 0xb0(%r1)

0 comments on commit ad982d8

Please sign in to comment.
Something went wrong with that request. Please try again.