Implemented paging

This commit is contained in:
2025-03-29 12:06:56 +01:00
parent 9d931f9e9d
commit dd7e621640
5 changed files with 235 additions and 13 deletions
+3 -2
View File
@@ -62,8 +62,9 @@ section .data
align 4096
global init_pagedir
init_pagedir:
dd 0b10000011
times 768-1 dd 0
dd 0b10000011 ; Identity map first 4MB
times 768-1 dd 0
; Map first 16MB of kernel to 0xC0000000
dd (0 << 22) | 0b10000011
dd (1 << 22) | 0b10000011
dd (2 << 22) | 0b10000011