Editing VSH
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
VSH is the internal name used by Sony for the VShell aka VirtualShell. It then loads up the XMB you know. [ | [[Category:Software]] | ||
VSH is the internal name used by Sony for the VShell aka VirtualShell. It then loads up the XMB you know.[http://www.ps3devwiki.com/wiki/XMB XrossMediaBar (XMB)]. This, is a user space executable (vsh.self), loaded by lv2_kernel/sys_init_osd. | |||
from here several other functions/syscalls to other modules are made, e.g. lv2 ([ | from here several other functions/syscalls to other modules are made, e.g. lv2 ([http://www.ps3devwiki.com/index.php?title=Talk:SELF_File_Format_and_Decryption SELF decryption]), lv1 ([http://www.ps3devwiki.com/index.php?title=Hypervisor_Reverse_Engineering#0x3000_-_Secure_RTC Secure_RTC], [http://www.ps3devwiki.com/index.php?title=Hypervisor_Reverse_Engineering#0x5000_-_Storage_Manager Storage_Manager], [http://www.ps3devwiki.com/index.php?title=Hypervisor_Reverse_Engineering#Gelic_Device Gelic_Device], [http://www.ps3devwiki.com/index.php?title=Hypervisor_Reverse_Engineering#BD_Drive BD_Drive]) etc. | ||
not much is documented (yet) about this module. Please fill in where possible. | not much is documented (yet) about this module. Please fill in where possible. | ||
Line 21: | Line 22: | ||
=== Exports === | === Exports === | ||
{| class="wikitable" | |||
! Export Library !! Export NID !! Notes !! Usage | |||
|- | |||
| sys_io || - || - || - | |||
|- | |||
| sys_fs || - || - || - | |||
|- | |||
| sys_fs_ps2disc || 0x8160A811|| switches /dev_ps2disc(1) mount? || | |||
|- | |||
{| class="wikitable | | vsh || - || - || | ||
! | |- | ||
| vsh || 0xF48562D || cellSsAimIsCEX || | |||
|- | |||
| vsh || 0x145991B4|| cellSsAimIsArcade || | |||
|- | |||
| vsh || 0x172B05CD|| update_mgr_write_eprom syscall || | |||
|- | |||
| vsh || 0x1B890AD2|| update_mgr_get_token_seed syscall || | |||
|- | |||
| vsh || 0x1F80E287|| cellSsAimIsTool || | |||
|- | |||
| vsh || 0x2C563C92|| update_mgr_read_eprom syscall || | |||
|- | |||
| vsh || 0x3231E012|| vtrm_Decrypt_Master syscall || | |||
|- | |||
| vsh || 0x349F1535|| update_mgr_set_token syscall || | |||
|- | |||
| vsh || 0x3B4A1AC4|| AIM GetDeviceId syscall || | |||
|- | |||
| vsh || 0x3F062337|| AIM GetPsCode syscall || | |||
|- | |||
| vsh || 0xE44F29F4|| cellFsUtilMount syscall || | |||
|- | |||
| vsh || 0xE932A8C0|| reboot and show minimum version || int vsh_E932A8C0("text whatever you like") | |||
|- | |||
| vsh || 0xFF4A1633|| cellFsUtilMount syscall || | |||
|- | |||
| vsh || 0x7D73E7CD || inflate_init || | |||
|- | |||
| vsh || 0x4DB8DD87 || inflate_end || | |||
|- | |||
| vsh || 0x20215547 || inflate_buffer || | |||
|- | |||
| vsh || 0x1C68CC75 || inflate || | |||
|- | |||
| sdk || - || - || | |||
|- | |||
| sdk || 0x5FAFE92B|| cellCryptoPuSha1Hash || | |||
|- | |||
| sdk || 0xB45387CD|| AesCbcCfb128Decrypt || | |||
|- | |||
| sdk || 0x55ACAB8A || sha1_init || | |||
|- | |||
| sdk || 0x831E89EE || sha1_update || | |||
|- | |||
| sdk || 0x3CABD075 || sha1_final || | |||
|- | |||
| sdk || 0x4484A101 || sha1_hmac_update || | |||
|- | |||
| sdk || 0x547B602C || sha1_hmac_init || | |||
|- | |||
| sdk || 0x300B99F2 || sha1_hmac_final || | |||
|- | |||
| sdk || 0x74A2A1FE || sha1_hmac_buffer || | |||
|- | |||
| sdk || 0x68B630D5 || aes_omac_mode1 || | |||
|- | |||
| paf || - || - || | |||
|- | |||
| paf || 0x23AFB290 || gets Interface from plugin, should allow calling its exports/funcs || uint32_t plugin->GetInterface(uint32_t return from paf_F21655F3) | |||
|- | |||
| paf || 0x3A8454FC || finds/gets Texture/Resource || Example: out: uint32_t*, return from paf_F21655F3, "tex_notification_info" | |||
|- | |||
| paf || 0xF21655F3 || finds a loaded plugin || Example: uint32_t paf::View::Find("system_plugin") | |||
|- | |||
| vshcommon || - || - || | |||
|- | |||
| x3 || - || - || | |||
|- | |||
| x3 || 0x11409ED3|| xRegistryGetDefaultInstance|| int xRegistryGetDefaultInstance (1, &handle) | |||
|- | |||
| x3 || 0xCB1D791D|| Obtains SS Key|| | |||
|- | |||
| x3 || 0xECACA8AD|| xRegistry SetValue|| Example: int SetValue(handle, "/setting/categoryVersion", 0,0,0) | |||
|- | |- | ||
| | | vshnet || - || - || | ||
|- | |- | ||
| | | vshmain || - || - || | ||
|- | |- | ||
| | | vshmain || 0x981D7E9F || Gets ScreenShot Flag || int vshmain_981D7E9F() | ||
|- | |- | ||
| | | vshtask || - || - || | ||
|- | |- | ||
| | | vshtask || 0xA02D46E7 || Displays a notification in XMB || int vshtask_A02D46E7(0 /*ignored*/<!--//or icon? (refered by his number from 0 to 12 availables, or by his name)?//-->, "your text" ) | ||
|- | |- | ||
|} | |} | ||
To help documenting offsets+exports, you can use [http://www.ps3devwiki.com/index.php?title=Dev_Tools#vsh_dumper this dumper tool for vsh] (actually,no need to dump anymore). | |||
= | |||
===Display Buffers=== | ===Display Buffers=== | ||
Line 224: | Line 126: | ||
{{Keyboard|content=<syntaxhighlight lang="bash"> | {{Keyboard|content=<syntaxhighlight lang="bash"> | ||
GCMBUFINFO 0 | GCMBUFINFO 0 | ||
offset: 0xdc80000 | |||
pitch: 0x2000 | pitch: 0x2000 | ||
width: 0x780 | width: 0x780 | ||
Line 230: | Line 132: | ||
GCMBUFINFO 1 | GCMBUFINFO 1 | ||
offset: 0xe500000 | |||
pitch: 0x2000 | pitch: 0x2000 | ||
width: 0x780 | width: 0x780 | ||
height: 0x438 | height: 0x438 | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||