]> 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:03:18 +0000 (18:03 +0200)
commite07e8457b21a82799a8c1931de13718371898675
treed2906e4c9b029f214d8f13410fac19f4b90a67d7
parent39cd7d8aed9f604f2b03570d94cffee45df1451b
(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