Merge into main the new state of the operating system/kernel #1
@ -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);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user