[PATCH] ppc64 boot: use memset to clear bss
[sfrench/cifs-2.6.git] / arch / ppc64 / boot / crt0.S
1 /*
2  * Copyright (C) Paul Mackerras 1997.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version
7  * 2 of the License, or (at your option) any later version.
8  *
9  * NOTE: this code runs in 32 bit mode and is packaged as ELF32.
10  */
11
12 #include "ppc_asm.h"
13
14         .text
15         .globl  _start
16 _start:
17         lis     r9,_start@h
18         lis     r8,_etext@ha
19         addi    r8,r8,_etext@l
20 1:      dcbf    r0,r9
21         icbi    r0,r9
22         addi    r9,r9,0x20
23         cmplwi  0,r9,8
24         blt     1b
25         sync
26         isync
27
28         b       start
29