From 1dc9b1329425cd1f33199b7c785aed0ef82ec8bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Tue, 12 Jul 2022 19:02:57 +0100 Subject: [PATCH] Fix a typo in Makefile. --- Development/Makefile | 2 +- Development/hex0.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Development/Makefile b/Development/Makefile index fd95516..aff7942 100644 --- a/Development/Makefile +++ b/Development/Makefile @@ -9,7 +9,7 @@ QEMU = qemu-system-x86_64 QEMU_KVM = -enable-kvm ifneq ($(wildcard /usr/share/OVMF/OVMF_CODE.fd),) - OVMF_IMG=/usr/share/OVMF/OVMF_CODE.fd) + OVMF_IMG = /usr/share/OVMF/OVMF_CODE.fd else OVMF_IMG = /usr/share/edk2-ovmf/OVMF_CODE.fd endif diff --git a/Development/hex0.c b/Development/hex0.c index d414411..646bebf 100644 --- a/Development/hex0.c +++ b/Development/hex0.c @@ -25,7 +25,7 @@ efi_status_t efi_main(efi_handle_t image_handle, struct efi_system_table *system uint16_t *out; do { ++options; - } while (*options != ' '); /* Skip app name */ + } while (*options != ' '); /* Skip application name */ in = ++options; do { ++options; @@ -40,14 +40,14 @@ efi_status_t efi_main(efi_handle_t image_handle, struct efi_system_table *system /* Get root fs */ rootfs->open_volume(rootfs, &rootdir); - /* Open file for reading */ - struct efi_file_protocol *fin; - rootdir->open(rootdir, &fin, in, EFI_FILE_MODE_READ, EFI_FILE_READ_ONLY); - /* Open file for writing */ struct efi_file_protocol *fout; rootdir->open(rootdir, &fout, out, EFI_FILE_MODE_CREATE| EFI_FILE_MODE_WRITE | EFI_FILE_MODE_READ, 0); + /* Open file for reading */ + struct efi_file_protocol *fin; + rootdir->open(rootdir, &fin, in, EFI_FILE_MODE_READ, EFI_FILE_READ_ONLY); + uint8_t c; uint64_t size;