Re-wrote boot code, moved to x86 folder

This commit is contained in:
2020-12-09 05:08:55 -06:00
parent 231d6c4464
commit d2eecf95e5
11 changed files with 160 additions and 222 deletions

View File

@@ -4,6 +4,7 @@
#include <stddef.h>
#include "systypes.hpp"
#include "memorymap.hpp"
namespace kernel
{
@@ -12,21 +13,19 @@ class SystemInfo
{
public:
size_t getLowMemory();
SystemInfo();
size_t getHighMemory();
SystemInfo(MemoryMap& memoryMap, const char* commandLine);
physaddr_t getKernelBase();
const MemoryMap& getMemoryMap() const;
const char* getCommandLine() const;
private:
size_t lowMemory;
size_t highMemory;
MemoryMap m_memmap;
physaddr_t kernelBase;
physaddr_t kernelEnd;
char commandLine[128];
};