mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
ブート時のアンマウント処理の追加。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@357 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
698853c42d
commit
87902441b5
@ -28,7 +28,9 @@ TWL_PROC = ARM7
|
||||
|
||||
SRCDIR = ./src
|
||||
|
||||
INCDIR = ../common/include
|
||||
INCDIR = ../common/include \
|
||||
$(TWLSDK_ROOT)/build/libraries/fatfs/ARM7.TWL/include \
|
||||
$(TWLSDK_ROOT)/build/libraries/fatfs/ARM7.TWL/include/twl/fatfs/ARM7 \
|
||||
|
||||
SRCS = bootAPI.c boot.c
|
||||
|
||||
|
||||
@ -18,6 +18,8 @@
|
||||
#include <twl.h>
|
||||
#include <twl/mcu.h>
|
||||
#include <twl/cdc.h>
|
||||
#include <symbols.h>
|
||||
#include <twl/rtfs.h>
|
||||
#include <sysmenu.h>
|
||||
#include "reboot.h"
|
||||
|
||||
@ -54,6 +56,14 @@ void BOOT_Init( void )
|
||||
|
||||
BOOL BOOT_WaitStart( void )
|
||||
{
|
||||
char drv;
|
||||
|
||||
// unmount drives
|
||||
for ( drv = 'A'; drv <= 'Z'; drv++ )
|
||||
{
|
||||
rtfs_detach( drv );
|
||||
}
|
||||
|
||||
if( (reg_PXI_MAINPINTF & 0x000f ) == 0x000f ) {
|
||||
(void)OS_DisableIrq(); // ここで割り込み禁止にしないとダメ。
|
||||
(void)OS_SetIrqMask(0); // SDKバージョンのサーチに時間がかかると、ARM9がHALTにかかってしまい、ARM7のサウンドスレッドがARM9にFIFOでデータ送信しようとしてもFIFOが一杯で送信できない状態で無限ループに入ってしまう。
|
||||
|
||||
Loading…
Reference in New Issue
Block a user