summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2016-12-30 09:43:19 +0000
committerYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2016-12-30 09:43:19 +0000
commita88e6fbf086fae2c0e3d237d93422e2109bb22b9 (patch)
tree37ba62300e0b3c3b64363e2d33e875a35e51ffd3
parent6a86f5af63cfccfa64472e08786beeea95192875 (diff)
Fix EFI_CALL() to pass the arguments properly when number of arguments is 0.
From pulse.purge at gmail.com
-rw-r--r--sys/arch/arm64/stand/efiboot/eficall.h4
-rw-r--r--sys/arch/armv7/stand/efiboot/eficall.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/arm64/stand/efiboot/eficall.h b/sys/arch/arm64/stand/efiboot/eficall.h
index 25e0d3042c5..6f4c2168acc 100644
--- a/sys/arch/arm64/stand/efiboot/eficall.h
+++ b/sys/arch/arm64/stand/efiboot/eficall.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: eficall.h,v 1.1 2016/12/17 23:38:33 patrick Exp $ */
+/* $OpenBSD: eficall.h,v 1.2 2016/12/30 09:43:18 yasuoka Exp $ */
/*
* Copyright (c) 2015 YASUOKA Masahiko <yasuoka@yasuoka.net>
@@ -49,5 +49,5 @@ extern uint64_t efi_call(int, void *, ...);
#define EFI_CALL(...) \
_efi_call_fn(__VA_ARGS__, _call_9, _call_8, _call_7, _call_6, _call_5, \
- _call_4, _call_3, _call_2, _call_1, _call_1)(__VA_ARGS__)
+ _call_4, _call_3, _call_2, _call_1, _call_0)(__VA_ARGS__)
#endif
diff --git a/sys/arch/armv7/stand/efiboot/eficall.h b/sys/arch/armv7/stand/efiboot/eficall.h
index ac9d028d350..245e90c7eb3 100644
--- a/sys/arch/armv7/stand/efiboot/eficall.h
+++ b/sys/arch/armv7/stand/efiboot/eficall.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: eficall.h,v 1.1 2016/05/14 17:55:15 kettenis Exp $ */
+/* $OpenBSD: eficall.h,v 1.2 2016/12/30 09:43:17 yasuoka Exp $ */
/*
* Copyright (c) 2015 YASUOKA Masahiko <yasuoka@yasuoka.net>
@@ -49,5 +49,5 @@ extern uint64_t efi_call(int, void *, ...);
#define EFI_CALL(...) \
_efi_call_fn(__VA_ARGS__, _call_9, _call_8, _call_7, _call_6, _call_5, \
- _call_4, _call_3, _call_2, _call_1, _call_1)(__VA_ARGS__)
+ _call_4, _call_3, _call_2, _call_1, _call_0)(__VA_ARGS__)
#endif