mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-04 05:50:17 +00:00 
			
		
		
		
	Intention behind this work was elimination of as much assembly-written code as it is possible. In case of ARC we already have relocation fix-up implemented in C so why don't we use C for U-Boot copying, .bss zeroing etc. It turned out x86 uses pretty similar approach so we re-used parts of code in "board_f.c" initially implemented for x86. Now assembly usage during init is limited to stack- and frame-pointer setup before and after relocation. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: Simon Glass <sjg@chromium.org>
		
			
				
	
	
		
			16 lines
		
	
	
		
			362 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			362 B
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * Copyright (C) 2014 Synopsys, Inc. All rights reserved.
 | 
						|
 *
 | 
						|
 * SPDX-License-Identifier:	GPL-2.0+
 | 
						|
 */
 | 
						|
 | 
						|
#ifndef __ASM_ARC_U_BOOT_ARC_H__
 | 
						|
#define __ASM_ARC_U_BOOT_ARC_H__
 | 
						|
 | 
						|
int arch_early_init_r(void);
 | 
						|
 | 
						|
void	board_init_f_r_trampoline(ulong) __attribute__ ((noreturn));
 | 
						|
void	board_init_f_r(void) __attribute__ ((noreturn));
 | 
						|
 | 
						|
#endif	/* __ASM_ARC_U_BOOT_ARC_H__ */
 |