From fad24f13855643b9410cfcd1045067e842e26f82 Mon Sep 17 00:00:00 2001 From: Aleksa Vučković Date: Tue, 1 Feb 2022 20:59:02 +0100 Subject: Keyboard buffer overflow fix --- src/c/paging.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/c/paging.c') diff --git a/src/c/paging.c b/src/c/paging.c index 9c4875a..4aba4af 100644 --- a/src/c/paging.c +++ b/src/c/paging.c @@ -33,8 +33,8 @@ void set_pt(size_t num,uint32_t address) { // As the address is page aligned, it will always leave 12 bits zeroed. // Those bits are used by the attributes ;) - page_table[num][i] = (address + i * 0x1000) | 3; // attributes: - supervisor level, read/write, present. + page_table[num][i] = (address + i * 0x1000) | 3; + // attributes: supervisor level, read/write, present. } page_directory[num] = ((uint32_t)page_table[num]) | 3; -- cgit v1.2.3