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;
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.
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.
15 * Copyright IBM Corp. 2008
17 * Authors: Hollis Blanchard <hollisb@us.ibm.com>
20 #define OUTPUT_VADDR 0xf0000000
21 #define OUTPUT_PADDR 0xf0000000
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
34 /* Call main() and pass return code to exit(). */