summaryrefslogtreecommitdiffstats
path: root/kexec/arch/ppc/ppc-setup-simple.S
blob: 1317a8d7fda5108464c8a1f578190dde088c31d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
 * ppc-setup-simple.S - (hopefully) setup for simple embedded platforms
 * Copyright (C) 2004 Albert Herranz
 *
 * This source code is licensed under the GNU General Public License,
 * Version 2.  See the file COPYING for more details.
 */

/*
 * Only suitable for platforms booting with MMU turned off.
 * -- Albert Herranz
 */

#include "ppc_asm.h"

	.data
	.globl setup_simple_start
setup_simple_start:

	/* should perform here any required setup */

	RELOC_SYM(setup_simple_regs)
	mr      r9, r3
	lwz     r5, spr8 - setup_simple_regs(r9)

	mtlr    r5
	blr

	.balign 4
	.globl setup_simple_regs
setup_simple_regs:
spr8:	.long 0x00000000

setup_simple_end:

	.globl setup_simple_size
setup_simple_size:	
	.long setup_simple_end - setup_simple_start