OSDN Git Service

Change the directry name to hirado
[trx-305dsp/dsp.git] / trx305 / kernel / config / blackfin / _common_bf533 / chip_debugboot.c
diff --git a/trx305/kernel/config/blackfin/_common_bf533/chip_debugboot.c b/trx305/kernel/config/blackfin/_common_bf533/chip_debugboot.c
deleted file mode 100644 (file)
index c7b9fc3..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-#include "jsp_kernel.h"
-#include "sil.h"
-
-/*
-* gdbserverがターゲットのリセット機能を提供しないため、gdb経由でターゲット
-* にアプリッケーションをダウンロードすると正しく動作しないことがある。
-* このルーチンはターゲットを一度だけリセットする。
-*
-* なお、パラメータ debugが FALSEの場合、リセットはしない
-*/
-void boot_for_gdb(void)
-{
-    // SYSTEM_RESET     0x0007
-    // DOUBLE_FAULT     0x0008
-    // RESET_DOUBLE     0x2000
-    // RESET_WDOG       0x4000
-    // RESET_SOFTWARE   0x8000
-    if ( enable_boot_for_gdb ){
-        enable_boot_for_gdb = 0;            /* 次はブートしない */
-        *__pSWRST = 0x07;                     /* 内蔵ペリフェラルのリセット */
-        asm volatile( "ssync;" );
-        *__pSWRST = 0x00;                     /* 内蔵ペリフェラルのリセット解除。 */
-        asm volatile( "ssync;" );
-        *__pSYSCR |= 0x10;                    /* no boot on core reset */
-        asm volatile( "ssync;" );
-        asm volatile( "raise 1;" );         /* コアリセット */
-        while( 1 )
-            ;                               /*リセットが発生するまでループ*/
-    }
-}