HV Syscalls: Difference between revisions
Jump to navigation
Jump to search
m (→HV Syscalls) |
|||
Line 563: | Line 563: | ||
|- | |- | ||
| 110 | | 110 | ||
| [[HV Syscall Reference# | | [[HV Syscall Reference#lv1_read_remote_file|lv1_read_remote_file]] | ||
| 5 | | 5 | ||
| 2 | | 2 | ||
|- | |- | ||
| 111 | | 111 | ||
| [[HV Syscall Reference# | | [[HV Syscall Reference#lv1_write_remote_file|lv1_write_remote_file]] | ||
| 5 | | 5 | ||
| 2 | | 2 | ||
|- | |- | ||
| 112 | | 112 | ||
| [[HV Syscall Reference# | | [[HV Syscall Reference#lv1_get_remote_file_size|lv1_get_remote_file_size]] | ||
| 2 | | 2 | ||
| 2 | | 2 | ||
Line 633: | Line 633: | ||
|- | |- | ||
| 124 | | 124 | ||
| [[HV Syscall Reference# | | [[HV Syscall Reference#lv1_read_remote_file_long_name|lv1_read_remote_file_long_name]] | ||
| 6 | | 6 | ||
| 2 | | 2 | ||
|- | |- | ||
| 125 | | 125 | ||
| [[HV Syscall Reference# | | [[HV Syscall Reference#lv1_write_remote_file_long_name|lv1_write_remote_file_long_name]] | ||
| 6 | | 6 | ||
| 2 | | 2 | ||
|- | |- | ||
| 126 | | 126 | ||
| [[HV Syscall Reference# | | [[HV Syscall Reference#lv1_get_remote_file_size_long_name|lv1_get_remote_file_size_long_name]] | ||
| 3 | | 3 | ||
| 2 | | 2 |
Revision as of 13:27, 3 May 2021
LV1/hvcall index
This page is used as an indexpage of the hypercalls listed @ HV Syscall Reference
HV Syscalls
Unofficial Hypercalls added
Number | Function - Added by | Notes |
---|---|---|
16 | Peek - graf | |
20 | Poke - graf |
HV Calls Table Offset
(preliminary table, please help to fill in/expand)
- The address of HV table is stored at -0x6FC8(HSPRG0).
- The address of HV table size is stored at -0x6FD0(HSPRG0).
Function | Notes | 3.55 offset | 3.41 offset | 3.15 offset | 3.10 offset | 3.01 offset | 2.76 offset |
---|---|---|---|---|---|---|---|
HV Syscall Table | Offset to HV Syscall Table from base HV addr. e.g. if you map HV to HV_LV2_BASE_ADDR the Table would be at HV_LV2_BASE_ADDR+0x00365888. | 0x00365888 | 0x00361b08 | 0x00363a08 | |||
set_lv1_hvcall_table | This function sets pointer to HV Call Table and the size of HV Call Table in HSPRG context of a LPAR. | 0x002C2B4C | 0x002C02B4 | 0x002C1F04 | |||
set_lv1_hvcall_table_entry_invalid | This function initializes an entry in HV Call Table to the Invalid HV Call function. | 0x002C2B70 | 0x002C02D8 | 0x002C1F28 | |||
lv1_mm_call function table | Each entry is a pointer to a function TOC entry. Size = 256 | 0x00366088 | 0x00362308 | 0x00364208 | |||
lv1_map_htab | 0x002D595C | ||||||
lv1_unmap_htab | 0x002D56B8 | ||||||
lv1_allocate_memory | 0x002D72F0 | ||||||
lv1_release_memory | 0x002D66A4 | ||||||
lv1_query_logical_partition_address_region_info | 0x002C9B24 | ||||||
lv1_create_repository_node | 0x002DD014 | ||||||
lv1_get_repository_node_value | 0x002DD260 | ||||||
lv1_undocumented_function_231 | 0x0030B560 |
HV Return Values
Status | Code |
---|---|
LV1_SUCCESS | 0 |
not used | -1 |
LV1_RESOURCE_SHORTAGE | -2 |
LV1_NO_PRIVILEGE | -3 |
LV1_DENIED_BY_POLICY | -4 |
LV1_ACCESS_VIOLATION | -5 |
LV1_NO_ENTRY | -6 |
LV1_DUPLICATE_ENTRY | -7 |
LV1_TYPE_MISMATCH | -8 |
LV1_BUSY | -9 |
LV1_EMPTY | -10 |
LV1_WRONG_STATE | -11 |
not used | -12 |
LV1_NO_MATCH | -13 |
LV1_ALREADY_CONNECTED | -14 |
LV1_UNSUPPORTED_PARAMETER_VALUE | -15 |
LV1_CONDITION_NOT_SATISFIED | -16 |
LV1_ILLEGAL_PARAMETER_VALUE | -17 |
LV1_BAD_OPTION | -18 |
LV1_IMPLEMENTATION_LIMITATION | -19 |
LV1_NOT_IMPLEMENTED | -20 |
LV1_INVALID_CLASS_ID | -21 |
LV1_CONSTRAINT_NOT_SATISFIED | -22 |
LV1_ALIGNMENT_ERROR | -23 |
LV1_INTERNAL_ERROR | -32768 |
other sources
http://web.archive.org/web/20100222062305/http://ps3hvdoc.wikispaces.com/lv1+calls+offsets