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:
parent
c4c475b49d
commit
6d351bb326
3 changed files with 18 additions and 12 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue