diff options
author | Danny Holman <dholman@gymli.org> | 2024-05-29 00:26:59 -0500 |
---|---|---|
committer | Danny Holman <dholman@gymli.org> | 2024-05-29 00:26:59 -0500 |
commit | ffc782f8740027d21793c37c6094ebed06d1dfd2 (patch) | |
tree | fadd5544ed493d9935d6c4052a442f70c17030fd /arch/i386/kernel/pmem.c | |
parent | 5fb0ba537ab15f9c83afd9a939cf57c84d443856 (diff) |
arch: i386: fix several bugs in paging subsystem
Fix several triple-faulting bugs in the paging initialization routines.
These include causing a page fault during physical memory manager
initialization, causing a page fault during paging initialization and
other double-faulting and triple-faulting bugs.
Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'arch/i386/kernel/pmem.c')
-rw-r--r-- | arch/i386/kernel/pmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/i386/kernel/pmem.c b/arch/i386/kernel/pmem.c index e59c80b..0e53507 100644 --- a/arch/i386/kernel/pmem.c +++ b/arch/i386/kernel/pmem.c @@ -25,7 +25,7 @@ uintptr_t pfa_alloc(void) { if (ret == NULL) return PFA_ALLOC_ERR; - struct pfa_page *temp_map = (struct pfa_page*)0x1000; + struct pfa_page *temp_map = (struct pfa_page*)0xD0000000; map_page(NULL, (uintptr_t)ret, (uintptr_t)temp_map, PD_PRES | PD_RW); memset((char*)temp_map, 0, PAGE_SIZE); unmap_page(NULL, (uintptr_t)temp_map); |