summaryrefslogtreecommitdiff
path: root/sys/arch/socppc/stand/boot/start.S
blob: 94b44424ae3e676c4031dfc610908980069abfa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <machine/asm.h>
	
#define STACKSIZE	8192

        .globl  _C_LABEL(fdtaddrsave)
        .type   _C_LABEL(fdtaddrsave),@object
	.data
_C_LABEL(fdtaddrsave):       .long   0

ENTRY(_start)
	lis	%r1, fdtaddrsave@ha
	stw	%r3, fdtaddrsave@l(%r1)

	lis	%r1, stack@ha
	addi	%r1, %r1, stack@l
	addi	%r1, %r1, STACKSIZE
	
	b	_C_LABEL(main)

	.data
.lcomm	stack,STACKSIZE,8