wip on pagetable

compiles&runs now
This commit is contained in:
2026-02-24 04:38:16 +01:00
parent dc1c98c091
commit c92b15e2a6
6 changed files with 40 additions and 28 deletions

View File

@@ -38,13 +38,13 @@ typedef struct {
//} __attribute__((__packed__)) pagedirectory_entry_t;
typedef struct {
alignas(4096) pagetable_t l4;
alignas(4096) pagetable_t l3;
alignas(4096) pagetable_t l2;
//pagetable_t l1_kernel;
alignas(4096) pagetable_t l2_apic;
alignas(4096) pagetable_t ioapic;
alignas(4096) pagetable_t lapic;
pagetable_t* l4;
pagetable_t* l3;
pagetable_t* l2;
pagetable_t* l1_kernel;
pagetable_t* l2_apic;
pagetable_t* ioapic;
pagetable_t* lapic;
} four_lvl_paging_t;
void write_identity_map(pagetable_t* identity_table, uint64_t size);