OSDN Git Service

modify MicroBlaze
authorryuz <ryuz@users.sourceforge.jp>
Tue, 5 Apr 2011 14:45:30 +0000 (23:45 +0900)
committerryuz <ryuz@users.sourceforge.jp>
Tue, 5 Apr 2011 14:45:30 +0000 (23:45 +0900)
kernel/build/common/gmake/knlsrc.inc
kernel/build/mb/mb_v8/gcc/Makefile
kernel/source/arch/proc/mb/mb_v8/gcc/kbrk_hdr.S [new file with mode: 0644]
kernel/source/arch/proc/mb/mb_v8/gcc/khwe_hdr.S [new file with mode: 0644]
kernel/source/object/sys/exe_exc.c [new file with mode: 0644]
sample/mb/mb_v8/gcc/Makefile
sample/mb/mb_v8/gcc/crt0.S
sample/mb/mb_v8/gcc/vectors.S [new file with mode: 0644]

index 3967def..1327e98 100755 (executable)
@@ -184,6 +184,7 @@ CSRCS += $(SYSOBJ_DIR)/ena_dsp.c
 CSRCS += $(SYSOBJ_DIR)/dis_dsp.c
 CSRCS += $(SYSOBJ_DIR)/sns_dsp.c
 CSRCS += $(SYSOBJ_DIR)/sns_ctx.c
+CSRCS += $(SYSOBJ_DIR)/exe_exc.c
 
 
 # Tasks
@@ -346,4 +347,5 @@ CSRCS += $(ISROBJ_DIR)/del_isr.c
 CSRCS += $(ISROBJ_DIR)/exe_isr.c
 
 
+
 # end of file
index 15c24e9..c345e12 100644 (file)
@@ -88,6 +88,8 @@ ASRCS += $(SRC_PROC_CC_DIR)/kswi_ctx.S
 ASRCS += $(SRC_PROC_CC_DIR)/kwai_int.S
 ASRCS += $(SRC_PROC_CC_DIR)/kint_hdr.S
 ASRCS += $(SRC_PROC_CC_DIR)/kexc_hdr.S
+ASRCS += $(SRC_PROC_CC_DIR)/kbrk_hdr.S
+ASRCS += $(SRC_PROC_CC_DIR)/khwe_hdr.S
 
 
 # %jp{C言語ファイルの追加}%en{C sources}
diff --git a/kernel/source/arch/proc/mb/mb_v8/gcc/kbrk_hdr.S b/kernel/source/arch/proc/mb/mb_v8/gcc/kbrk_hdr.S
new file mode 100644 (file)
index 0000000..a534182
--- /dev/null
@@ -0,0 +1,23 @@
+/* ------------------------------------------------------------------------ */
+/* Hyper Operating System V4 Advance                                        */
+/*                                                                          */
+/*                                  Copyright (C) 1998-2011 by Project HOS  */
+/*                                  http://sourceforge.jp/projects/hos/     */
+/* ------------------------------------------------------------------------ */
+
+
+                               .global _kernel_brk_hdr
+
+
+                               .text
+
+
+/************************************************
+  Breakハンドラ
+************************************************/
+                               .align  2
+_kernel_brk_hdr:
+                               bri             _kernel_brk_hdr
+
+
+/* end of file */
diff --git a/kernel/source/arch/proc/mb/mb_v8/gcc/khwe_hdr.S b/kernel/source/arch/proc/mb/mb_v8/gcc/khwe_hdr.S
new file mode 100644 (file)
index 0000000..72bb84e
--- /dev/null
@@ -0,0 +1,23 @@
+/* ------------------------------------------------------------------------ */
+/* Hyper Operating System V4 Advance                                        */
+/*                                                                          */
+/*                                  Copyright (C) 1998-2011 by Project HOS  */
+/*                                  http://sourceforge.jp/projects/hos/     */
+/* ------------------------------------------------------------------------ */
+
+
+                               .global _kernel_hwe_hdr
+
+
+                               .text
+
+
+/************************************************
+  ハードウェア例外ハンドラ
+************************************************/
+                               .align  2
+_kernel_hwe_hdr:
+                               bri             _kernel_hwe_hdr
+
+
+/* end of file */
diff --git a/kernel/source/object/sys/exe_exc.c b/kernel/source/object/sys/exe_exc.c
new file mode 100644 (file)
index 0000000..86e7feb
--- /dev/null
@@ -0,0 +1,21 @@
+/**
+ *  Hyper Operating System V4 Advance
+ *
+ * @file  exe_exc.c
+ * @brief %jp{例外ハンドラの処理}
+ *
+ * Copyright (C) 1998-2011 by Project HOS
+ * http://sourceforge.jp/projects/hos/
+ */
+
+
+#include "core/core.h"
+
+
+/* %jp{例外ハンドラの処理} */
+void _kernel_exe_exc(EXCNO inhno)
+{
+}
+
+
+/* end of file */
index e940ba6..95f547a 100644 (file)
@@ -87,6 +87,7 @@ TARGET_BIN = $(TARGET).$(EXT_BIN)
 # --------------------------------------
 
 # %jp{アセンブラファイルの追加}%en{assembry sources}
+ASRCS += ./vectors.S
 ASRCS += ./crt0.S
 
 
index 32127bb..157c467 100644 (file)
@@ -1,8 +1,8 @@
 /* ------------------------------------------------------------------------ */
 /*  Hyper Operating System V4 Advance                                       */
-/*    Sample program for ADuC7000 series                                    */
+/*    Sample program for MicroBlaze                                         */
 /*                                                                          */
-/*                                  Copyright (C) 1998-2007 by Project HOS  */
+/*                                  Copyright (C) 1998-2011 by Project HOS  */
 /*                                  http://sourceforge.jp/projects/hos/     */
 /* ------------------------------------------------------------------------ */
 
diff --git a/sample/mb/mb_v8/gcc/vectors.S b/sample/mb/mb_v8/gcc/vectors.S
new file mode 100644 (file)
index 0000000..bc7e07d
--- /dev/null
@@ -0,0 +1,32 @@
+/* ------------------------------------------------------------------------ */
+/*  Hyper Operating System V4  サンプルプログラム                           */
+/*    ベクタテーブル                                                        */
+/*                                                                          */
+/*                                  Copyright (C) 1998-2011 by Project HOS  */
+/*                                  http://sourceforge.jp/projects/hos/     */
+/* ------------------------------------------------------------------------ */
+
+
+               /* --- 外部定数宣言 */
+                               .global _reset_handler
+                               .global _kernel_exc_hdr
+                               .global _kernel_int_hdr
+                               .global _kernel_brk_hdr
+                               .global _kernel_hwe_hdr
+
+
+                               .text
+                               .align  2
+
+/* --------------------------------------- */
+/*            ベクタ定義                   */
+/* --------------------------------------- */
+                               .long   _reset_handler
+                               .long   _kernel_exc_hdr
+                               .long   _kernel_int_hdr
+                               .long   _kernel_brk_hdr
+                               .long   _kernel_hwe_hdr
+
+
+
+/* end of file */