mirror of
https://github.com/ps5-linux/ps5-linux-loader.git
synced 2026-05-09 00:24:16 +00:00
cleaning + notifications + autosleep
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
#include "main.h"
|
||||
#include "../include/config.h"
|
||||
#include "boot_linux.h"
|
||||
#include "utils.h"
|
||||
#include <sys/types.h>
|
||||
#include <cpuid.h>
|
||||
#include <machine/atomic.h>
|
||||
#include <machine/cpufunc.h>
|
||||
#include <stdint.h>
|
||||
#include <sys/types.h>
|
||||
#include "main.h"
|
||||
#include "../include/config.h"
|
||||
#include "boot_linux.h"
|
||||
#include "utils.h"
|
||||
|
||||
__attribute__((section(".entry_point"), naked)) uint32_t main(void) {
|
||||
|
||||
@@ -31,7 +31,7 @@ __attribute__((section(".entry_point"), naked)) uint32_t main(void) {
|
||||
"movq %%rsp, %%rbp \n\t"
|
||||
:
|
||||
: "r"(new_rsp)
|
||||
: "rsp", "rbp", "memory");
|
||||
: "rbp", "memory");
|
||||
|
||||
entry();
|
||||
}
|
||||
@@ -5,8 +5,8 @@
|
||||
extern shellcode_hypervisor_args args;
|
||||
|
||||
__attribute__((noinline, optimize("O0"))) uint32_t putc_uart(uint8_t tx_byte) {
|
||||
volatile uint32_t *uart_tx = 0xc1010104ULL;
|
||||
volatile uint32_t *uart_busy = 0xc101010cULL;
|
||||
volatile uint32_t *uart_tx = (volatile uint32_t *) 0xc1010104ULL;
|
||||
volatile uint32_t *uart_busy = (volatile uint32_t *) 0xc101010cULL;
|
||||
uint64_t timeout = 0xFFFFFFFF;
|
||||
do {
|
||||
timeout--;
|
||||
|
||||
Reference in New Issue
Block a user