View previous topic :: View next topic |
Author |
Message |
misfire
Joined: 06 Sep 2004 Posts: 120 Location: Germany
|
Posted: Wed Apr 22, 2009 5:31 am Post subject: [PS2] Move syscall numbers to separate header file |
|
|
This patch moves all system call numbers from kernel.S to a separate header file named syscallnr.h. This is similar to asm/unistd.h on Linux.
The defines can then be passed to SetSyscall() and GetSyscall() or any other code.
For example:
Code: | #include <syscallnr.h>
void *vector = GetSyscall(__NR_ExecPS2);
SetSyscall(__NR_ExecPS2, my_handler); |
syscallnr.patch.gz |
|
Back to top |
|
|
misfire
Joined: 06 Sep 2004 Posts: 120 Location: Germany
|
Posted: Mon Jun 22, 2009 11:59 pm Post subject: |
|
|
Could anyone please commit this and the other PS2 patches?
Looks like there's no PS2 maintainer around anymore... |
|
Back to top |
|
|
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Tue Jun 23, 2009 7:36 am Post subject: |
|
|
Code: | Adding ps2sdk/ee/kernel/include/syscallnr.h
Sending ps2sdk/ee/kernel/src/kernel.S
Transmitting file data ..
Committed revision 1591.
|
|
|
Back to top |
|
|
misfire
Joined: 06 Sep 2004 Posts: 120 Location: Germany
|
Posted: Tue Jun 23, 2009 6:09 pm Post subject: |
|
|
It looks like you applied the patch twice to ps2sdk/ee/kernel/include/syscallnr.h
I'll try to get SVN write access in order to fix it myself.
Anyway, thank you. |
|
Back to top |
|
|
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Wed Jun 24, 2009 2:48 am Post subject: |
|
|
Yeah, I dunno what happened there. Fixed in rev 1595. |
|
Back to top |
|
|
|