Skip to content

Commit

Permalink
Add syscall 35 to the trace_syscalls payload
Browse files Browse the repository at this point in the history
  • Loading branch information
kakaroto committed Dec 1, 2010
1 parent a8c1136 commit 3f8176e
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions payload_trace_syscalls.S
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,16 @@

#include "pl3.h.S"

#include "send_eth.h.S"
#include "map_open_path.h.S"
#include "memory_patching.h.S"
#include "send_eth.h.S"

RESIDENT_AREA_START()
#include "dev_syscalls.h.S"
#include "open_hook.h.S"
#include "memory_patching_res.h.S"
#include "send_eth_res.h.S"
#include "syscall_handler.h.S"
#include "print_debug.h.S"
#include "syscall_handler.h.S"
RESIDENT_AREA_END()

#include "patch_table.h.S"
Expand All @@ -44,11 +45,17 @@ payload_main:
COPY_RESIDENT_AREA(%r30, %r31)

LOAD_FUNC_PTR(memory_patching)
LOAD_FUNC_PTR(map_open_path)
LOAD_FUNC_PTR(syscall_map_open)
LOAD_FUNC_PTR(send_eth)
INIT_SEND_ETH(%r30)

ADD_SYSCALL (%r30, syscall_peek_desc, 6)
ADD_SYSCALL (%r30, syscall_poke_desc, 7)
ADD_SYSCALL (%r30, syscall_map_open_desc, 35)

// Add default /app_home redirection
addi %r3, %r31, ADDR_IN_PAGE(path_app_home)
addi %r4, %r31, ADDR_IN_PAGE(path_usb_default_app_home)
bl map_open_path

APPLY_PATCHES(%r30, %r31)

Expand All @@ -59,3 +66,8 @@ payload_main:
addi %r1, %r1, 0xa0
mtlr %r0
blr

path_app_home:
.string "/app_home"
path_usb_default_app_home:
.string "/dev_usb000/PS3/HOMEBREW/APP_HOME"

0 comments on commit 3f8176e

Please sign in to comment.