Explorar o código

Rename "kernel map" concept to just "ksyms"

Andreas Kling %!s(int64=6) %!d(string=hai) anos
pai
achega
de2fb183cc
Modificáronse 2 ficheiros con 4 adicións e 4 borrados
  1. BIN=BIN
      Kernel/_fs_contents
  2. 4 4
      Kernel/init.cpp

BIN=BIN
Kernel/_fs_contents


+ 4 - 4
Kernel/init.cpp

@@ -27,7 +27,7 @@
 #include "RTC.h"
 #include "RTC.h"
 
 
 #define TEST_VFS
 #define TEST_VFS
-#define KERNEL_MAP
+#define KSYMS
 //#define STRESS_TEST_SPAWNING
 //#define STRESS_TEST_SPAWNING
 //#define TEST_ELF_LOADER
 //#define TEST_ELF_LOADER
 
 
@@ -74,7 +74,7 @@ const KSym* ksymbolicate(dword address)
     return nullptr;
     return nullptr;
 }
 }
 
 
-static void loadKernelMap(const ByteBuffer& buffer)
+static void loadKsyms(const ByteBuffer& buffer)
 {
 {
     s_ksyms = new Vector<KSym>;
     s_ksyms = new Vector<KSym>;
     auto* bufptr = (const char*)buffer.pointer();
     auto* bufptr = (const char*)buffer.pointer();
@@ -139,7 +139,7 @@ static void init_stage2()
 
 
     vfs->mountRoot(e2fs.copyRef());
     vfs->mountRoot(e2fs.copyRef());
 
 
-#ifdef KERNEL_MAP
+#ifdef KSYMS
     {
     {
         auto handle = vfs->open("/kernel.map");
         auto handle = vfs->open("/kernel.map");
         if (!handle) {
         if (!handle) {
@@ -147,7 +147,7 @@ static void init_stage2()
         } else {
         } else {
             auto buffer = handle->readEntireFile();
             auto buffer = handle->readEntireFile();
             ASSERT(buffer);
             ASSERT(buffer);
-            loadKernelMap(buffer);
+            loadKsyms(buffer);
         }
         }
     }
     }
 #endif
 #endif