KERNEL: Mapping the bios region ( below 1Mib)
Keyboard.h: remove the incorrect use of typedef PhysicalMemoryManager.cpp: Map the Bios region as used. This prevents us from allocation the area used by the bios
This commit is contained in:
parent
15443601a6
commit
a70ae5ca31
@ -1,14 +1,14 @@
|
||||
#pragma once
|
||||
#include <stdint.h>
|
||||
#include "../../Terminal/kterm.h"
|
||||
typedef enum ScanCodeSet{
|
||||
enum ScanCodeSet {
|
||||
None = 0,
|
||||
ScanCodeSet1 = 1,
|
||||
ScanCodeSet2 = 2,
|
||||
ScanCodeSet3 = 3,
|
||||
};
|
||||
|
||||
typedef enum Modifiers{
|
||||
enum Modifiers {
|
||||
LSHIFT = 1,
|
||||
RSHIFT = 2,
|
||||
|
||||
|
@ -53,6 +53,9 @@ void SetupPhysicalMemoryManager( BootInfoBlock* Bootinfo) {
|
||||
|
||||
printf("kernel size in memory: 0x%x\n", kernel_size);
|
||||
allocate_region((uint32_t)&kernel_begin, kernel_size);
|
||||
|
||||
printf("allocate BIOS region");
|
||||
allocate_region (0x0000000, 0x00100000);
|
||||
}
|
||||
|
||||
// NOTE: This can only give blocks of 4kb at a time!
|
||||
|
@ -8,5 +8,3 @@ void FreePage(uint32_t v_addr);
|
||||
|
||||
void Map(uint32_t p_addr, uint32_t v_addr);
|
||||
void Unmap (uint32_t v_addr);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user