mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-06 09:31:16 -04:00
Finish smcCpuOff
This commit is contained in:
parent
7a9e031bff
commit
c18af9f3d2
6 changed files with 51 additions and 5 deletions
|
@ -29,6 +29,11 @@ void intr_initialize_gic(void) {
|
|||
GICC_BPR = 7;
|
||||
}
|
||||
|
||||
/* Sets GICC_CTLR to appropriate pre-sleep value. */
|
||||
void intr_prepare_gicc_for_sleep(void) {
|
||||
GICC_CTLR = 0x1E0;
|
||||
}
|
||||
|
||||
/* Sets an interrupt's group in the GICD. */
|
||||
void intr_set_group(unsigned int id, int group) {
|
||||
GICD_IGROUPR[id >> 5] = (GICD_IGROUPR[id >> 5] & (~(1 << (id & 0x1F)))) | ((group & 1) << (id & 0x1F));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue