From 30d6e8f850d2fe26fffdeef0c38fc627ef8bab9a Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Wed, 13 Dec 2023 13:24:48 +0100 Subject: initial commit currently with: booted via multiboot 1 protected mode to long mode boostrap code vga used for outputting gdt and idt set up identity paging for the whole memory reported by multiboot pic and ps/2 set up acpi code exists but is broken --- include/memory.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 include/memory.h (limited to 'include/memory.h') diff --git a/include/memory.h b/include/memory.h new file mode 100644 index 0000000..b349e62 --- /dev/null +++ b/include/memory.h @@ -0,0 +1,13 @@ +#ifndef _PAGE_H_ +#define _PAGE_H_ + +#include +#include + +void *kmalloc(size_t size); +void *kmalloc_a(size_t size, size_t alignment); +void kfree(void *ptr); +void print_blocks(); +bool paging_init(); + +#endif -- cgit v1.2.3