Create a single thread for each patch to be added to the repository. Please try to stay on topic.
-
misfire
- Posts: 110
- Joined: Mon Sep 06, 2004 7:53 am
- Location: Germany
Post
by misfire »
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: Select all
#include <syscallnr.h>
void *vector = GetSyscall(__NR_ExecPS2);
SetSyscall(__NR_ExecPS2, my_handler);
syscallnr.patch.gz
-
misfire
- Posts: 110
- Joined: Mon Sep 06, 2004 7:53 am
- Location: Germany
Post
by misfire »
Could anyone please commit this and the other PS2 patches?
Looks like there's no PS2 maintainer around anymore...
-
jimparis
- Posts: 1145
- Joined: Fri Jun 10, 2005 4:21 am
- Location: Boston
Post
by jimparis »
Code: Select all
Adding ps2sdk/ee/kernel/include/syscallnr.h
Sending ps2sdk/ee/kernel/src/kernel.S
Transmitting file data ..
Committed revision 1591.
-
misfire
- Posts: 110
- Joined: Mon Sep 06, 2004 7:53 am
- Location: Germany
Post
by misfire »
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.
-
jimparis
- Posts: 1145
- Joined: Fri Jun 10, 2005 4:21 am
- Location: Boston
Post
by jimparis »
Yeah, I dunno what happened there. Fixed in rev 1595.