Config header file + comment header

This commit is contained in:
2026-02-06 13:59:46 +01:00
parent 7f997f6611
commit 38710653be
33 changed files with 223 additions and 23 deletions

View File

@@ -1,8 +1,13 @@
/*
* @author xamidev <xamidev@riseup.net>
* @brief x64 4-level paging implementation
* @license GPL-3.0-only
*/
#ifndef PAGING_H
#define PAGING_H
#define PAGE_SIZE 4096
#define BITS_PER_ROW 64
#include <stdint.h>
#include <limine.h>
@@ -40,10 +45,4 @@ extern uint64_t hhdm_off;
#define PTE_HUGE (1ULL << 7)
#define PTE_NOEXEC (1ULL << 63)
// Specified in linker.ld
#define KERNEL_BASE 0xFFFFFFFF80000000ULL
// 2 MB should be enough (as of now, the whole kernel ELF is around 75kb)
#define KERNEL_SIZE 0x200000
#endif