Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / SLOF / slof / ppc64.h
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
13 #include <cpu.h>
14 #include "types.h"
15
16 #define PAGE_SIZE 4096
17 #define HEAP_SIZE 0x800000
18
19 #ifdef CPU_PPC970
20 #define SET_CI set_ci()
21 #define CLR_CI clr_ci()
22 #else
23 #define SET_CI
24 #define CLR_CI
25 #endif
26
27 // The big Forth source file that contains everything but the core engine.
28 // We include it as a hunk of data into the C part of SLOF; at startup
29 // time, this will be EVALUATE'd.
30 extern char _binary_OF_fsi_start[], _binary_OF_fsi_end[];
31
32 extern cell the_mem[];   /* Space for the dictionary / the HERE pointer */
33
34 extern cell *restrict dp;
35 extern cell *restrict rp;
36
37 void client_entry_point();
38
39 extern unsigned long call_client(cell);
40 extern long c_romfs_lookup(long, long, void *);
41 extern long writeLogByte(long, long);