1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:07:43 +00:00

Kernel: Move RAM size detection to MemoryManager and use what we learn.

This commit is contained in:
Andreas Kling 2019-01-27 10:17:27 +01:00
parent c4c475b49d
commit 6d351bb326
3 changed files with 18 additions and 12 deletions

View file

@ -6,7 +6,6 @@
#include "Process.h"
#include "system.h"
#include "PIC.h"
#include "CMOS.h"
#include "IDEDiskDevice.h"
#include "KSyms.h"
#include <Kernel/NullDevice.h>
@ -165,12 +164,6 @@ void init()
memset(&system, 0, sizeof(system));
word base_memory = (CMOS::read(0x16) << 8) | CMOS::read(0x15);
word ext_memory = (CMOS::read(0x18) << 8) | CMOS::read(0x17);
kprintf("%u kB base memory\n", base_memory);
kprintf("%u kB extended memory\n", ext_memory);
auto procfs = ProcFS::create();
procfs->initialize();