Major libk restructuring, also rewrote drivers/serial.h

This commit is contained in:
2024-10-27 10:23:56 +01:00
parent 4079049242
commit e8a55d72a5
62 changed files with 334 additions and 380 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
#ifndef MEMORY_ADDRESSES_H
#define MEMORY_ADDRESSES_H
#ifndef _MEMORY_ADDRESSES_H
#define _MEMORY_ADDRESSES_H
/*
* Memory layout of addresses 0x0000 - 0x12000
@@ -25,7 +25,7 @@
#define PHYS_MEM_USED_BLOCKS 0x180C
// Some structs 0x2000-0x2fff
#define TERMINAL_INFO_LOC 0x2000
#define CONSOLE_INFO_LOC 0x2000
#define KEYBOARD_STATE_LOC 0x2100
#define DATETIME_LOC 0x2200
+2 -2
View File
@@ -1,5 +1,5 @@
#ifndef MEMORY_MALLOC_H
#define MEMORY_MALLOC_H
#ifndef _MEMORY_MALLOC_H
#define _MEMORY_MALLOC_H
#include <memory/virtual.h>
#include <memory/physical.h>
+2 -2
View File
@@ -1,5 +1,5 @@
#ifndef MEMORY_PHYSICAL_H
#define MEMORY_PHYSICAL_H
#ifndef _MEMORY_PHYSICAL_H
#define _MEMORY_PHYSICAL_H
#include <memory/addresses.h>
#include <string.h>
+3 -3
View File
@@ -1,8 +1,8 @@
#ifndef MEMORY_VIRTUAL_H
#define MEMORY_VIRTUAL_H
#ifndef _MEMORY_VIRTUAL_H
#define _MEMORY_VIRTUAL_H
#include <stdint.h>
#include <memory/physical.h>
#include <stdint.h>
#define PAGES_PER_TABLE 1024
#define TABLES_PER_DIRECTORY 1024