Finish bootup_misc_mmio() - Cur build gets to end of pk2ldr.

This commit is contained in:
Michael Scire 2018-03-02 13:44:21 -08:00
parent ca7b441079
commit a292e95c2f
11 changed files with 175 additions and 4 deletions

View file

@ -157,11 +157,15 @@ void restore_current_core_context(void) {
}
}
void set_core_is_active(uint32_t core, bool is_active) {
g_cpu_contexts[core].is_active = (is_active) ? 1 : 0;
}
void set_current_core_active(void) {
g_cpu_contexts[get_core_id()].is_active = 1;
set_core_is_active(get_core_id(), true);
}
void set_current_core_inactive(void) {
g_cpu_contexts[get_core_id()].is_active = 0;
set_core_is_active(get_core_id(), false);
}