From aa6cdb54ee75d8ad2bb5b8ac2a496b546bee324f Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sun, 15 May 2016 22:48:03 +0000 Subject: Give the 32-bit and 64-bit EFI boatloaders different names such that we can tell which one we're using. ok deraadt@, krw@ --- sys/arch/amd64/stand/efiboot/efiboot.c | 8 ++++++-- 1 file 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 @@ -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 -- cgit v1.2.3