summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2016-05-15 22:48:03 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2016-05-15 22:48:03 +0000
commitaa6cdb54ee75d8ad2bb5b8ac2a496b546bee324f (patch)
tree41b5cb8e387ab91e7b61b5c7ab600c7729417285
parentb080edfc9a3614586e91ee57b8de9d94b1e6c14b (diff)
Give the 32-bit and 64-bit EFI boatloaders different names such that we can
tell which one we're using. ok deraadt@, krw@
-rw-r--r--sys/arch/amd64/stand/efiboot/efiboot.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/amd64/stand/efiboot/efiboot.c b/sys/arch/amd64/stand/efiboot/efiboot.c
index 0b78c6139c4..8114d6fef6f 100644
--- a/sys/arch/amd64/stand/efiboot/efiboot.c
+++ b/sys/arch/amd64/stand/efiboot/efiboot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: efiboot.c,v 1.11 2016/02/04 09:19:39 kettenis Exp $ */
+/* $OpenBSD: efiboot.c,v 1.12 2016/05/15 22:48:02 kettenis Exp $ */
/*
* Copyright (c) 2015 YASUOKA Masahiko <yasuoka@yasuoka.net>
@@ -108,7 +108,11 @@ efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *systab)
/* can't use sa_cleanup since printf is used after sa_cleanup() */
/* sa_cleanup = efi_cleanup; */
- progname = "EFIBOOT";
+#ifdef __amd64__
+ progname = "BOOTX64";
+#else
+ progname = "BOOTIA32";
+#endif
/*
* Move the stack before calling boot(). UEFI on some machines