summaryrefslogtreecommitdiffstats
path: root/sys/boot/efi/loader
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2015-05-10 13:30:21 +0000
committerian <ian@FreeBSD.org>2015-05-10 13:30:21 +0000
commitae16c5888fa9049056aa37f505c476a3d071c4c5 (patch)
tree768a7d71f5300c649a70c42b24eafb9987d5c4af /sys/boot/efi/loader
parent48c15fe2ad6c5f8a5ee8301dbe532d3e5e5faab2 (diff)
downloadFreeBSD-src-ae16c5888fa9049056aa37f505c476a3d071c4c5.zip
FreeBSD-src-ae16c5888fa9049056aa37f505c476a3d071c4c5.tar.gz
Don't check the return value from self_reloc(), it can't fail and doesn't
return a value. Despite what I said in my prior commit, it turns out this one platform was checking the return value from the old self-reloc code (which returned a hard-coded 0).
Diffstat (limited to 'sys/boot/efi/loader')
-rw-r--r--sys/boot/efi/loader/arch/i386/start.S2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/boot/efi/loader/arch/i386/start.S b/sys/boot/efi/loader/arch/i386/start.S
index e9715da..b597f41 100644
--- a/sys/boot/efi/loader/arch/i386/start.S
+++ b/sys/boot/efi/loader/arch/i386/start.S
@@ -54,8 +54,6 @@ ENTRY(_start)
pushl %ebx /* dynamic */
pushl %eax /* ImageBase */
call self_reloc
- cmpl $EFI_SUCCESS, %eax
- jne 1f
popl %ebx /* remove ImageBase from the stack */
popl %ebx /* remove dynamic from the stack */
call efi_main
OpenPOWER on IntegriCloud