Skip to content

Commit cbef208

Browse files
committed
finished comment ...
1 parent bf04659 commit cbef208

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

kernel/hook/source/main.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ int main(int argc, char **argv)
9090
printf("ps4KernelMemoryCopy: %p %p\n", hook2, h2);
9191

9292
// We need to do this manually for now, since llvm code
93-
// does not
93+
// does not currently run in kernel space. Idealy this
94+
// will not be needed and the call below (to hook) does
95+
// will not require a size argument.
9496
s = 12;
9597
r = ps4KernelMachineInstructionSeek(a, &s);
9698
printf("ps4KernelMachineInstructionSeek: %i %zu\n", r, s);
@@ -103,6 +105,7 @@ int main(int argc, char **argv)
103105

104106
sleep(2);
105107

108+
// Will detect size automatically, once llvm is debugged
106109
r = ps4KernelFunctionHookCreateSized(&hh, a, h2, s);
107110
printf("ps4KernelFunctionHookCreateSized: %i %p %p %p %p %zu\n", r, &hh, hh, a, h2, s);
108111

0 commit comments

Comments
 (0)