From 399486e8fb8f5b402f1833e496dbed11aa0ac669 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Thu, 6 Dec 2012 13:54:29 -0800 Subject: Unify assembler function handling Instead of adding regparm(0) to each assembler function called by coreboot, add an asmlinkage macro (like the Linux kernel does) that can be different per architecture (and that is empty on ARM right now) Change-Id: I7ad10c463f6c552f1201f77ae24ed354ac48e2d9 Signed-off-by: Stefan Reinauer Reviewed-on: http://review.coreboot.org/1973 Reviewed-by: David Hendricks Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/include/cpu/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/cpu/cpu.h b/src/include/cpu/cpu.h index e8ea096a6c..cf2d38997d 100644 --- a/src/include/cpu/cpu.h +++ b/src/include/cpu/cpu.h @@ -7,7 +7,7 @@ void cpu_initialize(unsigned int cpu_index); struct bus; void initialize_cpus(struct bus *cpu_bus); -void __attribute__((regparm(0))) secondary_cpu_init(unsigned int cpu_index); +void asmlinkage secondary_cpu_init(unsigned int cpu_index); #if CONFIG_HAVE_SMI_HANDLER void smm_init(void); -- cgit v1.2.3