diff options
author | red031000 <rubenru09@aol.com> | 2021-02-25 15:34:52 +0000 |
---|---|---|
committer | red031000 <rubenru09@aol.com> | 2021-02-25 15:35:09 +0000 |
commit | f9512bc6c7b8c93a4c72b92825db67718863a200 (patch) | |
tree | e9359ff1d509a2436794e07c61ce60c88de1aab6 /arm9/lib/include/OS_interrupt.h | |
parent | ab4e396b1dac3f2a3a3379f9aa3de4de16fd26e9 (diff) |
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; |