Fix apic build with kvm disabled
[qemu/qemu-dev-zwu.git] / kvm / test / powerpc / cstart.S
blob70a0e9fcd47c95fc8fb13ad455503644292c340c
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License, version 2, as
4  * published by the Free Software Foundation;
5  *
6  * This program is distributed in the hope that it will be useful,
7  * but WITHOUT ANY WARRANTY; without even the implied warranty of
8  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
9  * GNU General Public License for more details.
10  *
11  * You should have received a copy of the GNU General Public License
12  * along with this program; if not, write to the Free Software
13  * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
14  *
15  * Copyright IBM Corp. 2008
16  *
17  * Authors: Hollis Blanchard <hollisb@us.ibm.com>
18  */
20 #define OUTPUT_VADDR 0xf0000000
21 #define OUTPUT_PADDR 0xf0000000
23 .globl _start
24 _start:
25         /* In the future we might need to assign a stack and zero BSS here. */
27         /* Map the debug page 1:1. */
28         lis     r3, OUTPUT_VADDR@h
29         ori     r3, r3, OUTPUT_VADDR@l
30         lis     r4, OUTPUT_PADDR@h
31         ori     r4, r4, OUTPUT_PADDR@l
32         bl      map
34         /* Call main() and pass return code to exit(). */
35         bl      main
36         bl      exit
38         b       .