]> git.dujemihanovic.xyz Git - nameless-os.git/commit
(VERY BROKEN) Enable paging
authorDuje Mihanović <duje.mihanovic@skole.hr>
Fri, 13 May 2022 12:17:31 +0000 (14:17 +0200)
committerDuje Mihanović <duje.mihanovic@skole.hr>
Wed, 22 Jun 2022 16:05:58 +0000 (18:05 +0200)
commitdecdee1c65279a5f4f8fcc558aff45d6dd1793a3
treed2906e4c9b029f214d8f13410fac19f4b90a67d7
parent6eb079fe83e378a5ac293fc01a3872e95082288e
(VERY BROKEN) Enable paging

This code (somewhat) successfully enables paging and identity maps addresses
0xB8000-0xBFFFF and 0x100000-0x10FFFF. I say somewhat because enabling paging
for some reason completely breaks interrupt and exception handling, making the
CPU triple fault on any keypress or other exception. For that reason, DO NOT USE
THIS.
Makefile
include/arch/x86/mm/paging.h [new file with mode: 0644]
kernel/arch/x86/irq/sample_handler.c
kernel/arch/x86/mm/paging.c [new file with mode: 0644]
kernel/kernel.c