diff options
| author | Carlos Maiolino <[email protected]> | 2025-09-14 12:56:39 +0200 |
|---|---|---|
| committer | Carlos Maiolino <[email protected]> | 2025-09-14 12:56:39 +0200 |
| commit | e79687494bc3b01f42a79b0c355533e6e39e9a9d (patch) | |
| tree | f25713cee9d69a61c26756c9784bb16ef5c8011d /src/include/toxic/config.h | |
| parent | bbba609cd83cc99fe65feb6230347d164f621b30 (diff) | |
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 <[email protected]>
Diffstat (limited to 'src/include/toxic/config.h')
| -rw-r--r-- | src/include/toxic/config.h | 11 |
1 files changed, 11 insertions, 0 deletions
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 */ |
