diff options
author | Revo <projectrevotpp@hotmail.com> | 2021-02-25 12:09:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-25 12:09:09 -0500 |
commit | 75dc81c75dc1dc86053303cdae9decdb2f05557d (patch) | |
tree | 002fb738596c50bb67a6dc5204340d2436f81041 /arm9/lib/include/OS_interrupt.h | |
parent | ab4e396b1dac3f2a3a3379f9aa3de4de16fd26e9 (diff) | |
parent | 8fdf73a9f02bf896d4620341f47436160cc008ba (diff) |
Merge pull request #320 from red031000/master
partial CTRDG_flash_AT29LV512.o decomp
Diffstat (limited to 'arm9/lib/include/OS_interrupt.h')
-rw-r--r-- | arm9/lib/include/OS_interrupt.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arm9/lib/include/OS_interrupt.h b/arm9/lib/include/OS_interrupt.h index c3812128..d063b817 100644 --- a/arm9/lib/include/OS_interrupt.h +++ b/arm9/lib/include/OS_interrupt.h @@ -43,6 +43,13 @@ static inline BOOL OS_EnableIrq(void) return (BOOL)prep; } +static inline BOOL OS_RestoreIrq(BOOL enable) +{ + u16 prep = reg_OS_IME; + reg_OS_IME = (u16)enable; + return (BOOL)prep; +} + static inline OSIrqMask OS_GetIrqMask(void) { return reg_OS_IE; |