fix(uefi): 128GB identity paging, zero bss, readable gdt64, early lgdt & mb2 entry tag
This commit is contained in:
1 parent
94c45a949d
commit
107fb45103
3 files changed
+39
-16
No files matched your search
+2
-2
@@ -63,7 +63,7 @@ void kernel_main(uint64_t magic, uint64_t addr) {
|
||||
uint32_t h = *(volatile uint32_t*)(tag_ptr + 24);
|
||||
uint8_t bpp = *(volatile uint8_t*)(tag_ptr + 28);
|
||||
|
||||
if (fb_phys != 0 && w >= 320 && h >= 200) {
|
||||
if (fb_phys != 0 && fb_phys < (128ULL * 1024 * 1024 * 1024) && w >= 320 && h >= 200) {
|
||||
vbe_set_physical_framebuffer(fb_phys, w, h, pitch, (uint32_t)bpp);
|
||||
vbe_early_boot_splash();
|
||||
break;
|
||||
@@ -82,7 +82,7 @@ void kernel_main(uint64_t magic, uint64_t addr) {
|
||||
uint32_t h = *(volatile uint32_t*)(addr + 104);
|
||||
uint8_t bpp = *(volatile uint8_t*)(addr + 108);
|
||||
|
||||
if (fb_phys != 0 && w >= 320 && h >= 200) {
|
||||
if (fb_phys != 0 && fb_phys < (128ULL * 1024 * 1024 * 1024) && w >= 320 && h >= 200) {
|
||||
vbe_set_physical_framebuffer(fb_phys, w, h, pitch, (uint32_t)bpp);
|
||||
vbe_early_boot_splash();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user