summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2013-05-07 12:58:12 -0500
committerAaron Durbin <adurbin@google.com>2013-05-08 16:17:27 +0200
commit758076cceb450da4848a8ce944fa679d7403147c (patch)
tree1ed3eb857a5f092907741e738165ed34b367fe1d /src
parent37f8c3af0e8a7527eacac4646ef19239413b3328 (diff)
downloadcoreboot-758076cceb450da4848a8ce944fa679d7403147c.tar.xz
x86: use asmlinkage macro for smm_handler_t
The smm_handler_t type was added before the introduction of the asmlinkage macro. Now that asmlinkage is available use it. Change-Id: I85ec72cf958bf4b77513a85faf6d300c781af603 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/3215 Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src')
-rw-r--r--src/include/cpu/x86/smm.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/cpu/x86/smm.h b/src/include/cpu/x86/smm.h
index 62494a9f97..df7e3de5a6 100644
--- a/src/include/cpu/x86/smm.h
+++ b/src/include/cpu/x86/smm.h
@@ -33,6 +33,7 @@
#define SMM_ENTRY_OFFSET 0x8000
#define SMM_SAVE_STATE_BEGIN(x) (SMM_ENTRY_OFFSET + (x))
+#include <arch/cpu.h>
#include <types.h>
typedef struct {
u16 es_selector;
@@ -429,8 +430,8 @@ struct smm_runtime {
u8 apic_id_to_cpu[CONFIG_MAX_CPUS];
} __attribute__ ((packed));
-typedef void __attribute__((cdecl)) (*smm_handler_t)(void *arg, int cpu,
- const struct smm_runtime *runtime);
+typedef void asmlinkage (*smm_handler_t)(void *arg, int cpu,
+ const struct smm_runtime *runtime);
#ifdef __SMM__
/* SMM Runtime helpers. */