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
dev
Nigel Barink 2022-09-01 16:42:56 +02:00
parent 15443601a6
commit a70ae5ca31
3 changed files with 5 additions and 4 deletions

View File

@ -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,

View File

@ -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!

View File

@ -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);