mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-27 13:14:15 -04:00
Use the boot critical section
This commit is contained in:
parent
92d2abaf1c
commit
93864f2289
6 changed files with 69 additions and 18 deletions
|
@ -1,11 +1,13 @@
|
|||
#ifndef EXOSPHERE_CPU_CTX_H
|
||||
#define EXOSPHERE_CPU_CTX_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include "utils.h"
|
||||
#include "synchronization.h"
|
||||
|
||||
/* Exosphere CPU Management functionality. */
|
||||
|
||||
extern critical_section_t g_boot_critical_section;
|
||||
|
||||
typedef struct {
|
||||
uint64_t argument;
|
||||
uint64_t ELR_EL3;
|
||||
|
@ -54,6 +56,7 @@ void set_current_core_inactive(void);
|
|||
|
||||
void use_core_entrypoint_and_argument(uint32_t core, uintptr_t *entrypoint_addr, uint64_t *argument);
|
||||
void set_core_entrypoint_and_argument(uint32_t core, uintptr_t entrypoint_addr, uint64_t argument);
|
||||
void core_jump_to_lower_el(void);
|
||||
|
||||
uint32_t cpu_on(uint32_t core, uintptr_t entrypoint_addr, uint64_t argument);
|
||||
uint32_t cpu_off(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue