hex.S: Fix a bug where store label was called rather than jumped into.

This commit is contained in:
Andrius Štikonas 2022-08-20 23:11:30 +01:00
parent d6800a8a9e
commit 62ba4ba253
3 changed files with 6 additions and 3 deletions

View File

@ -54,7 +54,7 @@ void* memset(void* ptr, int value, int num)
for(s = ptr; 0 < num; num = num - 1)
{
s[0] = value;
s = s + 1;
s = s + 1;
}
return ptr;
@ -401,5 +401,8 @@ efi_status_t efi_main(efi_handle_t image_handle, struct efi_system_table *system
input->close(input);
output->close(output);
rootdir->close(rootdir);
boot->close_protocol(root_device, &guid2, image_handle, 0);
boot->close_protocol(image_handle, &guid1, image_handle, 0);
return 0;
}

View File

@ -32,7 +32,7 @@ $(build_dir)/disk.img: $(build_dir)/esp.img
@echo -e "\nRun 'make qemu' to try it inside QEMU"
qemu: $(build_dir)/disk.img $(OVMF_IMG)
$(QEMU) -cpu qemu64 -net none \
$(QEMU) -cpu qemu64 -net none -m 4G \
$(QEMU_KVM) \
-drive if=pflash,format=raw,unit=0,file=$(OVMF_IMG),readonly=on \
-drive if=ide,format=raw,file=$<

View File

@ -167,7 +167,7 @@ First_pass:
jne First_pass_0
# Deal with label
call StoreLabel
jmp StoreLabel
First_pass_0:
# Check for !