Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / SLOF / clients / net-snk / oflib / entry.S
1 /******************************************************************************
2  * Copyright (c) 2004, 2011 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
13 #include <macros.h>
14
15         .section        ".toc","aw"     # TOC entries are needed for relocation
16 .prom_entry_toc:
17         .tc             _prom_entry[TC],_prom_entry
18
19
20 C_ENTRY(call_client_interface)
21         ld      r4, .prom_entry_toc@toc(r2)     # Load prom entry point
22         mflr    r0
23         std     r0, 16(r1)
24         ld      r4, 0(r4)
25         stdu    r1, -128(r1)
26         std     r2,40(r1)
27         mtctr   r4
28         bctrl
29         ld      r2,40(r1)
30         addi    r1, r1, 128
31         ld      r0, 16(r1)
32         mtlr    r0
33         blr
34
35
36 C_ENTRY(rtas_call_entry)
37         mtctr   r5
38         bctr