forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[PS2] Move syscall numbers to separate header file

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> Patch Submissions
View previous topic :: View next topic  
Author Message
misfire



Joined: 06 Sep 2004
Posts: 120
Location: Germany

PostPosted: Wed Apr 22, 2009 5:31 am    Post subject: [PS2] Move syscall numbers to separate header file Reply with quote

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
View user's profile Send private message
misfire



Joined: 06 Sep 2004
Posts: 120
Location: Germany

PostPosted: Mon Jun 22, 2009 11:59 pm    Post subject: Reply with quote

Could anyone please commit this and the other PS2 patches?

Looks like there's no PS2 maintainer around anymore...
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Tue Jun 23, 2009 7:36 am    Post subject: Reply with quote

Code:
Adding         ps2sdk/ee/kernel/include/syscallnr.h
Sending        ps2sdk/ee/kernel/src/kernel.S
Transmitting file data ..
Committed revision 1591.
Back to top
View user's profile Send private message
misfire



Joined: 06 Sep 2004
Posts: 120
Location: Germany

PostPosted: Tue Jun 23, 2009 6:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Wed Jun 24, 2009 2:48 am    Post subject: Reply with quote

Yeah, I dunno what happened there. Fixed in rev 1595.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> Patch Submissions All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group