summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/stand
diff options
context:
space:
mode:
authorYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2016-12-30 08:26:10 +0000
committerYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2016-12-30 08:26:10 +0000
commit6a86f5af63cfccfa64472e08786beeea95192875 (patch)
tree2c09bd2750387a82c92843a170e8d1f1238aa6cf /sys/arch/amd64/stand
parent881233b6b3a782157122c6c5306daec8ab6c4cdb (diff)
Fix EFI_CALL() to pass the arguments properly when number of arguments is 0.
From pulse.purge at gmail.com
Diffstat (limited to 'sys/arch/amd64/stand')
-rw-r--r--sys/arch/amd64/stand/efiboot/eficall.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/stand/efiboot/eficall.h b/sys/arch/amd64/stand/efiboot/eficall.h
index 74e4db7f086..38b903efa20 100644
--- a/sys/arch/amd64/stand/efiboot/eficall.h
+++ b/sys/arch/amd64/stand/efiboot/eficall.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: eficall.h,v 1.1 2015/09/02 01:52:25 yasuoka Exp $ */
+/* $OpenBSD: eficall.h,v 1.2 2016/12/30 08:26:09 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