KProcess: Difference between revisions
Added the 2 new fields in the KProcess |
Updated all of the KProcess for n3ds |
||
Line 279: | Line 279: | ||
|- | |- | ||
| 0x22C | | 0x22C | ||
| | | u32 | ||
| Unknown | | Unknown | ||
|} | |} | ||
Line 321: | Line 321: | ||
| u32 | | u32 | ||
| Unknown new | | Unknown new | ||
|- | |||
| 0x34 | |||
| u32 | |||
| Count of KMemoryBlocks owned by the process | |||
|- | |||
| 0x38 | |||
| KLinkedListNode* | |||
| Pointer to first KLinkedListNode in list of KMemoryBlocks used by the process | |||
|- | |||
| 0x3C | |||
| KLinkedListNode* | |||
| Pointer to last KLinkedListNode in list of KMemoryBlocks used by the process | |||
|- | |||
| 0x48 | |||
| u32 | |||
| Translation table base | |||
|- | |||
| 0x4C | |||
| u8 | |||
| Context ID | |||
|- | |||
| 0x54 | |||
| u32 | |||
| End of userland virtual memory for the process | |||
|- | |||
| 0x58 | |||
| u32* | |||
| [[Memory_layout|LINEAR]] memory virtual address(userland) base for this process. | |||
|- | |||
| 0x60 | |||
| u32 | |||
| Size of the MMU table | |||
|- | |- | ||
| 0x64 | | 0x64 | ||
| u32 | | u32 | ||
| Virtual address of the MMU table for this process | | Virtual address of the MMU table for this process | ||
|- | |||
| 0x68 | |||
| u32 | |||
| Total size of all thread context pages (0xFF4xxxxx) owned by threads that belong to this process | |||
|- | |||
| 0x6C | |||
| u32 | |||
| Number of KThreadLocalPages used by this KProcess | |||
|- | |||
| 0x70 | |||
| KLinkedListNode* | |||
| Pointer to first KLinkedListNode in the list of KThreadLocalPages | |||
|- | |||
| 0x74 | |||
| KLinkedListNode* | |||
| Pointer to last KLinkedListNode in the list of KThreadLocalPages | |||
|- | |- | ||
| 0x7C | | 0x7C | ||
Line 333: | Line 381: | ||
| KResourceLimit* | | KResourceLimit* | ||
| Pointer to resource limits for process. | | Pointer to resource limits for process. | ||
|- | |||
| 0x8C | |||
| u32 | |||
| Number of threads which belong to this process. | |||
|- | |||
| 0x90 | |||
| 0x10-bytes | |||
| SVC access control mask from the exheader kernel descriptors. | |||
|- | |- | ||
| 0xA0 | | 0xA0 | ||
Line 345: | Line 401: | ||
| u16 | | u16 | ||
| Handle table size from the exheader kernel descriptors. When this is 0, handle table is stored in WRAM. | | Handle table size from the exheader kernel descriptors. When this is 0, handle table is stored in WRAM. | ||
|- | |||
| 0xB6 | |||
| u16 | |||
| Kernel release version field, from the exheader kernel descriptors. | |||
|- | |- | ||
| 0xB8 | | 0xB8 | ||
Line 369: | Line 429: | ||
| HandleData[0x28] | | HandleData[0x28] | ||
| These internal HandleData entries are only used if the exheader's handle table size is 0 | | These internal HandleData entries are only used if the exheader's handle table size is 0 | ||
|- | |||
| 0x234 | |||
| u32 | |||
| Unknown | |||
|} | |} | ||