mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-27 13:14:15 -04:00
all: Make file-scope variables internally linked where applicable (#57)
Narrows the scope of visible symbols to where they're actually used. Also makes it easier to see true globals in source files (ones used from multiple translation units)
This commit is contained in:
parent
c94cfe4898
commit
1de6b336bb
8 changed files with 17 additions and 18 deletions
|
@ -4,7 +4,7 @@
|
|||
#include "timers.h"
|
||||
#include "utils.h"
|
||||
|
||||
saved_cpu_context_t g_cpu_contexts[NUM_CPU_CORES] = {0};
|
||||
static saved_cpu_context_t g_cpu_contexts[NUM_CPU_CORES] = {0};
|
||||
|
||||
void set_core_entrypoint_and_context_id(uint32_t core, uint64_t entrypoint_addr, uint64_t context_id) {
|
||||
g_cpu_contexts[core].ELR_EL3 = entrypoint_addr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue