mirror of
https://github.com/ps5-linux/ps5-linux-loader.git
synced 2026-05-09 00:24:16 +00:00
initial commit support 3.xx and 4.xx
This commit is contained in:
43
shellcode_hypervisor/boot_linux.h
Normal file
43
shellcode_hypervisor/boot_linux.h
Normal file
@@ -0,0 +1,43 @@
|
||||
|
||||
#define MSR_EFER 0xc0000080
|
||||
#define EFER_SVM (1ULL << 12) // Bit 12: Secure Virtual Machine Enable
|
||||
|
||||
// // Virtual Machine Control Register (VM_CR)
|
||||
#define MSR_VM_CR 0xc0010114
|
||||
#define VM_CR_R_INIT (1ULL << 1) // Bit 1: Intercept INIT
|
||||
|
||||
// // MTRRs (Memory Type Range Registers)
|
||||
#define MSR_MTRR4kBase 0x00000268 // MSR_MTRRfix4K_C0000 (primer registro 4k)
|
||||
#define MSR_MTRRVarBase 0x00000200 // MTRR variable base (MSR_MTRRphysBase0)
|
||||
|
||||
#define VRAM_BASE (0x470000000 - info.vram_size)
|
||||
|
||||
#define FB_BASE 0xf400000000
|
||||
|
||||
#define ACPI_RSDP_ADDRESS 0x7fd8e014
|
||||
|
||||
#define AMDGPU_MMIO_BASE 0xe0600000
|
||||
|
||||
#define RCC_CONFIG_MEMSIZE 0x378c
|
||||
|
||||
#define GCMC_VM_FB_OFFSET 0xa5ac
|
||||
#define GCMC_VM_LOCAL_HBM_ADDRESS_START 0xa5d4
|
||||
#define GCMC_VM_LOCAL_HBM_ADDRESS_END 0xa5d8
|
||||
#define GCMC_VM_FB_LOCATION_BASE 0xa600
|
||||
#define GCMC_VM_FB_LOCATION_TOP 0xa604
|
||||
|
||||
#define MMMC_VM_FB_OFFSET 0x6a15c
|
||||
#define MMMC_VM_LOCAL_HBM_ADDRESS_START 0x6a184
|
||||
#define MMMC_VM_LOCAL_HBM_ADDRESS_END 0x6a188
|
||||
#define MMMC_VM_FB_LOCATION_BASE 0x6a1b0
|
||||
#define MMMC_VM_FB_LOCATION_TOP 0x6a1b4
|
||||
|
||||
#define MMHUBBUB_WHITELIST_BASE_ADDR_0 0x24850
|
||||
#define MMHUBBUB_WHITELIST_TOP_ADDR_0 0x24854
|
||||
#define DCHUBBUB_WHITELIST_BASE_ADDR_0 0x24878
|
||||
#define DCHUBBUB_WHITELIST_TOP_ADDR_0 0x2487c
|
||||
|
||||
#define MAXCPU 16
|
||||
|
||||
void entry(void);
|
||||
void boot_linux(void);
|
||||
Reference in New Issue
Block a user