summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2018-08-23 15:31:12 +0000
committerpatrick <patrick@openbsd.org>2018-08-23 15:31:12 +0000
commit496ffee030f23ba8b4504f7e4e92ebaf697a38a1 (patch)
tree869c6a439f320596acb5cbfc93c5715c661cb6e7
parentAdd license header. (diff)
downloadwireguard-openbsd-496ffee030f23ba8b4504f7e4e92ebaf697a38a1.tar.xz
wireguard-openbsd-496ffee030f23ba8b4504f7e4e92ebaf697a38a1.zip
Set the pointer to the EFI Runtime Services, otherwise we call into
nowhere. ok kettenis@
-rw-r--r--sys/arch/arm64/stand/efiboot/efiboot.c3
-rw-r--r--sys/arch/armv7/stand/efiboot/efiboot.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/arm64/stand/efiboot/efiboot.c b/sys/arch/arm64/stand/efiboot/efiboot.c
index fa8fefb75bc..3f335f0e7ac 100644
--- a/sys/arch/arm64/stand/efiboot/efiboot.c
+++ b/sys/arch/arm64/stand/efiboot/efiboot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: efiboot.c,v 1.19 2018/08/19 14:09:41 patrick Exp $ */
+/* $OpenBSD: efiboot.c,v 1.20 2018/08/23 15:31:12 patrick Exp $ */
/*
* Copyright (c) 2015 YASUOKA Masahiko <yasuoka@yasuoka.net>
@@ -73,6 +73,7 @@ efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *systab)
ST = systab;
BS = ST->BootServices;
+ RS = ST->RuntimeServices;
IH = image;
/* disable reset by watchdog after 5 minutes */
diff --git a/sys/arch/armv7/stand/efiboot/efiboot.c b/sys/arch/armv7/stand/efiboot/efiboot.c
index 0e95c7dad97..9d2768e196a 100644
--- a/sys/arch/armv7/stand/efiboot/efiboot.c
+++ b/sys/arch/armv7/stand/efiboot/efiboot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: efiboot.c,v 1.21 2018/03/31 18:19:12 patrick Exp $ */
+/* $OpenBSD: efiboot.c,v 1.22 2018/08/23 15:31:12 patrick Exp $ */
/*
* Copyright (c) 2015 YASUOKA Masahiko <yasuoka@yasuoka.net>
@@ -70,6 +70,7 @@ efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *systab)
ST = systab;
BS = ST->BootServices;
+ RS = ST->RuntimeServices;
IH = image;
/* disable reset by watchdog after 5 minutes */