mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-09-04 20:19:47 +08:00 
			
		
		
		
	 d2912cb15b
			
		
	
	
		d2912cb15b
		
	
	
	
	
		
			
			Based on 2 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation # extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 4122 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Enrico Weigelt <info@metux.net> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
		
			
				
	
	
		
			34 lines
		
	
	
		
			802 B
		
	
	
	
		
			ArmAsm
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			802 B
		
	
	
	
		
			ArmAsm
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0-only */
 | |
| /*
 | |
|  *  Copyright (c) 2003 ARM Limited
 | |
|  *  Copyright (c) u-boot contributors
 | |
|  *  Copyright (c) 2012 Pavel Machek <pavel@denx.de>
 | |
|  */
 | |
| #include <linux/linkage.h>
 | |
| #include <linux/init.h>
 | |
| #include <asm/memory.h>
 | |
| #include <asm/assembler.h>
 | |
| 
 | |
| 	.arch	armv7-a
 | |
| 	.arm
 | |
| 
 | |
| ENTRY(secondary_trampoline)
 | |
| 	/* CPU1 will always fetch from 0x0 when it is brought out of reset.
 | |
| 	 * Thus, we can just subtract the PAGE_OFFSET to get the physical
 | |
| 	 * address of &cpu1start_addr. This would not work for platforms
 | |
| 	 * where the physical memory does not start at 0x0.
 | |
| 	*/
 | |
| ARM_BE8(setend	be)
 | |
| 	adr	r0, 1f
 | |
| 	ldmia	r0, {r1, r2}
 | |
| 	sub	r2, r2, #PAGE_OFFSET
 | |
| 	ldr	r3, [r2]
 | |
| 	ldr	r4, [r3]
 | |
| ARM_BE8(rev	r4, r4)
 | |
| 	bx	r4
 | |
| 
 | |
| 	.align
 | |
| 1:	.long	.
 | |
| 	.long	socfpga_cpu1start_addr
 | |
| ENTRY(secondary_trampoline_end)
 |