Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / SLOF / board-js2x / llfw / stage_s.S
1 /******************************************************************************
2  * Copyright (c) 2004, 2008 IBM Corporation
3  * All rights reserved.
4  * This program and the accompanying materials
5  * are made available under the terms of the BSD License
6  * which accompanies this distribution, and is available at
7  * http://www.opensource.org/licenses/bsd-license.php
8  *
9  * Contributors:
10  *     IBM Corporation - initial implementation
11  *****************************************************************************/
12         .text
13         .org    0 /* after loading to mem this is at slaveloop_base */
14 #       . = 0x3f00 loaded to this addr
15         .globl __stage_s_entry
16
17 __stage_s_entry:
18         bl      $+4
19         mflr    r4
20         li      r3, 0xff
21         not     r3, r3
22         and     r4, r4, r3
23         li 0,1 ; std 0,0xf8(4)
24         li 0,0 ; std 0,0xa0(4)
25 slaveloop:
26         ori 28,28,0x100
27         lis 0,10
28         mtctr 0
29         bdnz $          # do some waiting, to prevent flooding the buses
30         lwz 0,0xa0(4)
31         cmpw 0,28
32         bne $-20        # wait for our flag
33
34         lwz 0,0x80(4)
35         lwz 3,0xc0(4)
36         mtctr 0
37         bctr            # jump to specified address, with specified GPR3
38
39 #       .quad   0       
40 #       .quad   0       
41
42
43