From e79687494bc3b01f42a79b0c355533e6e39e9a9d Mon Sep 17 00:00:00 2001 From: Carlos Maiolino Date: Sun, 14 Sep 2025 12:56:39 +0200 Subject: Add a simple heap implementation Add a simple API implementing a heap memory area. This specifies 2 main data structures: struct heap - Defines a heap: Holds a table with all entries in the specific heap and the initial heap memory address struct heap_table - Describes the usage state of every PAGE within the specific heap. Signed-off-by: Carlos Maiolino --- src/include/toxic/config.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/include/toxic/config.h (limited to 'src/include/toxic/config.h') diff --git a/src/include/toxic/config.h b/src/include/toxic/config.h new file mode 100644 index 0000000..19d05a9 --- /dev/null +++ b/src/include/toxic/config.h @@ -0,0 +1,11 @@ +#ifndef CONFIG_H +#define CONFIG_H + +#define TOTAL_INTERRUPTS 512 +#define KERNEL_CODE_SELECTOR 0x08 +#define KERNEL_DATA_SELECTOR 0x010 + +/* Kernel heap settings */ +#define PAGE_SIZE (4096) + +#endif /* CONFIG_H */ -- cgit v1.2.3