[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tyndur-devel] [PATCH] kernel2: Bedingte Kompilierung für ARCH_I386 gefixt



! kernel2: #ifdef ARCH_I386 bringt nichts, weil das Symbol immer
  definiert ist. Entscheidend ist, was CONFIG_ARCH sagt.

Signed-off-by: Kevin Wolf <kevin@xxxxxxxxxx>
---
 src/kernel2/include/tasks.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/kernel2/include/tasks.h b/src/kernel2/include/tasks.h
index 4ae09cd..d4b4334 100644
--- a/src/kernel2/include/tasks.h
+++ b/src/kernel2/include/tasks.h
@@ -91,10 +91,10 @@ typedef struct pm_process {
     /// Eine Liste von geoeffneten SHM-Bereichen
     list_t* shm;
 
-#ifdef ARCH_I386
+#if CONFIG_ARCH == ARCH_I386
     /// IO-Bitmap
     void* io_bitmap;
-#elif ARCH_AMD64
+#elif CONFIG_ARCH == ARCH_AMD64
 #else
 #error Architektur nicht unterstuetzt
 #endif
-- 
1.6.0.2