OSDN Git Service

デバッグ制御モジュール(トレースログ管理サブモジュール)追加
[mochi/master.git] / src / kernel / ProcMng / ProcMngTss.c
index ba2448d..813c3a5 100644 (file)
@@ -1,12 +1,13 @@
 /******************************************************************************/
 /* src/kernel/ProcMng/ProcMngTss.c                                            */
-/*                                                                 2017/03/01 */
+/*                                                                 2017/03/11 */
 /* Copyright (C) 2017 Mochi.                                                  */
 /******************************************************************************/
 /******************************************************************************/
 /* インクルード                                                               */
 /******************************************************************************/
 /* 共通ヘッダ */
+#include <stdarg.h>
 #include <string.h>
 #include <hardware/IA32/IA32.h>
 #include <hardware/IA32/IA32Descriptor.h>
 #include <hardware/IA32/IA32Tss.h>
 
 /* 外部モジュールヘッダ */
+#include <Cmn.h>
+#include <Debug.h>
 #include <MemMng.h>
 
 /* 内部モジュールヘッダ */
 
 
 /******************************************************************************/
+/* 定義                                                                       */
+/******************************************************************************/
+/* デバッグトレースログ出力マクロ */
+#ifdef DEBUG_LOG_ENABLE
+#define DEBUG_LOG( ... )                    \
+    DebugLogOutput( CMN_MODULE_PROCMNG_TSS, \
+                    __LINE__,               \
+                    __VA_ARGS__ )
+#else
+#define DEBUG_LOG( ... )
+#endif
+
+
+/******************************************************************************/
 /* 変数定義                                                                   */
 /******************************************************************************/
 /** TSS */