Kernel: Make 32bit not use large pages during boot

There is no guarantee that they are supported
This commit is contained in:
Bananymous 2024-04-18 13:33:15 +03:00
parent 061012a268
commit bb061d2a0a
1 changed files with 11 additions and 2 deletions

View File

@ -82,9 +82,18 @@ boot_pdpt:
boot_pd: boot_pd:
.set i, 0 .set i, 0
.rept 512 .rept 512
.long i + (PG_PAGE_SIZE | PG_READ_WRITE | PG_PRESENT) .long V2P(boot_pts) + i + (PG_READ_WRITE | PG_PRESENT)
.long 0 .long 0
.set i, i + 0x200000 .set i, i + 0x1000
.endr
boot_pts:
.set i, 0
.rept 512
.rept 512
.long i + (PG_READ_WRITE | PG_PRESENT)
.long 0
.set i, i + 0x1000
.endr
.endr .endr
boot_gdt: boot_gdt: