mirror of
https://github.com/ps5-linux/ps5-linux-loader.git
synced 2026-05-09 08:28:27 +00:00
clean up
This commit is contained in:
@@ -131,7 +131,6 @@ void boot_linux(void) {
|
||||
}
|
||||
|
||||
void entry(void) {
|
||||
|
||||
disable_intr();
|
||||
|
||||
// Set global interrupt flag.
|
||||
@@ -145,9 +144,7 @@ void entry(void) {
|
||||
|
||||
// Clean up mtrr.
|
||||
wrmsr(MSR_MTRR4kBase + 0, 0);
|
||||
|
||||
wrmsr(MSR_MTRR4kBase + 1, 0);
|
||||
|
||||
wrmsr(MSR_MTRRVarBase + 7 * 2 + 1, 0);
|
||||
|
||||
atomic_add_32(&exited_cpus, 1);
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
#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 MSR_MTRR4kBase 0x00000268
|
||||
#define MSR_MTRRVarBase 0x00000200
|
||||
|
||||
#define VRAM_BASE (0x470000000 - info.vram_size)
|
||||
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
/*
|
||||
* Copyright (C) 2026 Andy Nguyen
|
||||
*
|
||||
* This software may be modified and distributed under the terms
|
||||
* of the MIT license. See the LICENSE file for details.
|
||||
*/
|
||||
|
||||
#ifndef __LINUX_H__
|
||||
#define __LINUX_H__
|
||||
|
||||
|
||||
Reference in New Issue
Block a user