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 <reinauer@google.com> Reviewed-on: http://review.coreboot.org/1973 Reviewed-by: David Hendricks <dhendrix@chromium.org> Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
		
				
					committed by
					
						 Ronald G. Minnich
						Ronald G. Minnich
					
				
			
			
				
	
			
			
			
						parent
						
							c269a9b51c
						
					
				
				
					commit
					399486e8fb
				
			| @@ -408,7 +408,7 @@ static __inline__ __attribute__((always_inline)) void writecr4(unsigned long Dat | ||||
| #endif | ||||
|  | ||||
| /* C entry point of secondary cpus */ | ||||
| void __attribute__((regparm(0))) secondary_cpu_init(unsigned int index) | ||||
| void asmlinkage secondary_cpu_init(unsigned int index) | ||||
| { | ||||
| 	atomic_inc(&active_cpus); | ||||
| #if CONFIG_SERIAL_CPU_INIT | ||||
|   | ||||
		Reference in New Issue
	
	Block a user