treat OS_IF2 as 16-bit register

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@16 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
yutaka 2007-09-07 07:07:28 +00:00
parent 9f2bdac23f
commit 64fe254191

View File

@ -11,8 +11,8 @@
in whole or in part, without the prior written consent of Nintendo. in whole or in part, without the prior written consent of Nintendo.
$Date:: $ $Date:: $
$Rev:$ $Rev$
$Author:$ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#include <firm/os.h> #include <firm/os.h>
#include <firm/mi.h> #include <firm/mi.h>
@ -36,7 +36,7 @@ void OSi_Finalize(void)
reg_OS_IF = 0xffffffff; reg_OS_IF = 0xffffffff;
#ifdef SDK_ARM7 #ifdef SDK_ARM7
reg_OS_IE2 = 0; reg_OS_IE2 = 0;
reg_OS_IF2 = 0xffffffff; reg_OS_IF2 = 0xffff;
#else // SDK_ARM9 #else // SDK_ARM9
(void)OS_DisableInterrupts(); (void)OS_DisableInterrupts();
DC_Disable(); DC_Disable();