fb: map as WC

This commit is contained in:
Matheus
2025-08-24 10:33:24 -03:00
parent c84aa086dd
commit a3f376c1d6
4 changed files with 13 additions and 1 deletions
+1
View File
@@ -2,6 +2,7 @@
#define _TERM_H
void term_init();
void term_update_framebuffer(void *fb);
void term_putchar(char c);
void term_write(char *str, size_t count);
void term_getsize(size_t *x, size_t *y, size_t *fbx, size_t *fby);
+1
View File
@@ -21,6 +21,7 @@
#define ARCH_MMU_FLAGS_WB 0
#define ARCH_MMU_FLAGS_WT (1 << 3)
#define ARCH_MMU_FLAGS_UC (1 << 4)
#define ARCH_MMU_FLAGS_WC ((1 << 12) | (1 << 3)) // PAT5 (limine sets up the 5th PAT entry as WC)
#define ARCH_MMU_REQUIRED_FLAGS ARCH_MMU_FLAGS_READ