[PS2] Move syscall numbers to separate header file

Create a single thread for each patch to be added to the repository. Please try to stay on topic.
Post Reply
misfire
Posts: 110
Joined: Mon Sep 06, 2004 7:53 am
Location: Germany

[PS2] Move syscall numbers to separate header file

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&#40;__NR_ExecPS2&#41;;
SetSyscall&#40;__NR_ExecPS2, my_handler&#41;;
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.
Post Reply