This thread contains a patchset. You're looking at the original emails,
but you may wish to use the patch review UI.
Review patch
1
[PATCH 1/2] call init_mmu after ExitBootServices
---
src/main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main.c b/src/main.c
index 164df5d..3e132bc 100644
--- a/src/main.c
+++ b/src/main.c
@@ -55,11 +55,11 @@ efi_main(efi_handle image, efi_system_table *systab)
close(kernel);
- init_mmu();
-
bprintfln("Exit boot services");
systab->BootServices->ExitBootServices(image, map_key);
+ init_mmu();
+
entry();
return EFI_LOAD_ERROR; // Unreachable
--
2.41.0
[PATCH 2/2] Makefile: remove -enable-kvm on nographic targets
---
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 6442515..e72f1b0 100644
--- a/Makefile
+++ b/Makefile
@@ -47,13 +47,13 @@ nographic: boot.img
-m 1G -no-reboot -no-shutdown \
-drive file=boot.img,format=raw \
-display none \
- -serial stdio -enable-kvm
+ -serial stdio
nographic-gdb: boot.img
$(QEMU) -L $(OVMF) -bios $(OVMF_FILE) -s -S \
-m 1G -no-reboot -no-shutdown \
-drive file=boot.img,format=raw \
-display none \
- -serial stdio -enable-kvm
+ -serial stdio
.PHONY: all clean nographic
--
2.41.0