hex.S: Fix a bug where store label was called rather than jumped into.
This commit is contained in:
parent
d6800a8a9e
commit
62ba4ba253
|
@ -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;
|
||||
}
|
||||
|
|
2
Makefile
2
Makefile
|
@ -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=$<
|
||||
|
|
|
@ -167,7 +167,7 @@ First_pass:
|
|||
jne First_pass_0
|
||||
|
||||
# Deal with label
|
||||
call StoreLabel
|
||||
jmp StoreLabel
|
||||
|
||||
First_pass_0:
|
||||
# Check for !
|
||||
|
|
Loading…
Reference in New Issue