Finally, how to call a PS3 Syscall: In computing, a system call (aka Syscall) is how a program requests a service from an operating system’s kernel. This may include hardware related services (e.g. accessing the hard disk), creating and executing new processes, and communicating with integral kernel services (like scheduling). System calls provide the interface between a process and the operating system.
With PSL1GHT we can call all the 989 Syscalls.. it’s really simple to call one, but you need to know how many parameters it needs; there are some syscalls that needs just 1 parameter, there are others that needs 8 parameters.
You can find the list of syscalls with the numbers of the parameters here: ps3devwiki.com/wiki/LV2_Functions_and_Syscalls#Syscalls
Once you know the numbers of the parameter that you need (and the type of the parameters if they are written), you are ready to call one:
first thing add the following include:
Then you can call the syscall:
lv2syscallN(number_of_the_syscall, parameters… );
Change N with the number of the parameters, and put the number of the syscall that you need to call with the parameters.
Shutdown the PS3:
1) Look into the dev wiki and you will see that the syscall to shutdown the PS3 is number 379 ( sys_sm_shutdown ) and it wants 4 parameters:
2) So now i can call the syscall with 4 parameters:
now on the wiki it says, that the shutdown value is 0x1100 or 0x100, so i will write:
now if i call this on a stupid homebrew like:
it will really shutdown the ps3.
now if you are not sure to completely understood this, i will make another example:
Get current time:
now this example comes from the PSL1GHT SDK:
this is the function that get the current time on the ps3.
now it uses 2 parameters so it calls lv2syscall2, then it needs the parameters that will get the value sec and nsec. now, in this function you can see that it ask the return of this syscall; to call any return of a determinate syscall, you can simply ask it by calling:
you need to define the type of the returning variable. in that case it was s32 (aka signed int).
so it calls:
if it was a normal integer, you had to call:
to compile it correctly you need to simply add the following flags:
Stay tuned for more PS3 Hacks and PS3 CFW news, follow us on Twitter and be sure to drop by the PS3 Hacks and PS3 Custom Firmware Forums for the latest PlayStation 3 scene updates and homebrew releases!
Today PlayStation 3 developer aldostools has released updates to his PS3 ConsoleID, RAP Management Tools and LastGAME Customizer v1.0 PS3 homebrew applications alongside http://www.sendspace.com/file/43txml.
This tool displays the PSID and the ConsoleID from a LV2 dump created using multiMAN’s mmOS or Rebug’s Toolbox.
How to use: Make a dump of your LV2 and drap & drop the LV2 dump on the tool’s window. It will show the PSID, ConsoleID and Target ID found in the LV2. You can drag & drop a dump of your flash too, but it only gets the ConsoleID.
RAP Management Tools
Keep your “rap” files collection clean with “remove bad files from exdata.bat” (a batch file that will remove the invalid “rap” files from your “exdata” folder) and delete_dups (a tool that will compare your rap files with the ones stored in another folder; deleting the duplicated files). Use them in conjunction with http://www.aldostools.org/ps3_game_integrity.zip and http://www.sendspace.com/file/43txml to keep your collection of raps organized.
TIP: My PS3 Keys tool can be used to create rap files, just entering the file name and pasting the 32 HEX digits.
LastGAME Customizer 1.0
This new tool takes advantage of the customization options that multiMAN’s lastGAME applet offers, allowing to create PKG files that mount games and AVCHD movies directly from the XMB, without having to launch multiMAN’s GUI (btw lastGAME = multiMAN without GUI).
Current version supports lastGAME 4.1 (loads Hermes payload for firmwares 3.41, 3.55, 4.21, 4.30)
Allows to connect to PS3 via FTP to retrieve the list of games installed on HDD or on external devices
Supports drag & drop of multiple folders (x:GAMES) to create multiple PKGs instantly
Supports command line interface (CLI)
Allows to mount ISOs (PS2, PSP, PSX, DVD, BDM) and load remote backups (DRM dongle is required)
Support direct boot (certain games only). Games that require BD mirror are not supported.
NOTE: Support for PSX ISO and 4.31 CFW (MiralaTijera) are not implemented yet on lastGAME 4.1