diff options
| author | Ahmad Khalifa <vexeduxr@FreeBSD.org> | 2025-09-09 20:19:59 +0300 |
|---|---|---|
| committer | Ahmad Khalifa <vexeduxr@FreeBSD.org> | 2025-09-09 20:19:59 +0300 |
| commit | 101a35e84da311000b9ee12341bbd80bc4c7a721 (patch) | |
| tree | fc0220a6c686649f90c1d23037260722988d0fdb /stand | |
| parent | 18141961df8ce00d44da83989d06a789e8415491 (diff) | |
efi: translate errno to EFI status on exit
Translate the given errno to an efi status instead of always exiting
with EFI_LOAD_ERROR.
Diffstat (limited to 'stand')
| -rw-r--r-- | stand/efi/boot1/boot1.c | 4 | ||||
| -rw-r--r-- | stand/efi/loader/efi_main.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/stand/efi/boot1/boot1.c b/stand/efi/boot1/boot1.c index b93c6b425160..c906b430c0d6 100644 --- a/stand/efi/boot1/boot1.c +++ b/stand/efi/boot1/boot1.c @@ -299,9 +299,9 @@ efi_exit(EFI_STATUS s) } void -exit(int error __unused) +exit(int error) { - efi_exit(EFI_LOAD_ERROR); + efi_exit(errno_to_efi_status(error)); } /* diff --git a/stand/efi/loader/efi_main.c b/stand/efi/loader/efi_main.c index 2a5120dc89d7..6eea6f25c152 100644 --- a/stand/efi/loader/efi_main.c +++ b/stand/efi/loader/efi_main.c @@ -49,7 +49,7 @@ void exit(int status) { - efi_exit(EFI_LOAD_ERROR); + efi_exit(errno_to_efi_status(status)); } static CHAR16 * |
