Initial revision
[sbcl.git] / src / runtime / core.h
1 /*
2  * This software is part of the SBCL system. See the README file for
3  * more information.
4  *
5  * This software is derived from the CMU CL system, which was
6  * written at Carnegie Mellon University and released into the
7  * public domain. The software is in the public domain and is
8  * provided with absolutely no warranty. See the COPYING and CREDITS
9  * files for more information.
10  */
11
12 /*
13  * $Header$
14  */
15
16 #ifndef _CORE_H_
17 #define _CORE_H_
18
19 #include "runtime.h"
20
21 #define CORE_PAGESIZE OS_VM_DEFAULT_PAGESIZE
22 #define CORE_END 3840
23 #define CORE_NDIRECTORY 3861
24 #define CORE_VALIDATE 3845
25 #define CORE_VERSION 3860
26 #define CORE_MACHINE_STATE 3862
27 #define CORE_INITIAL_FUNCTION 3863
28
29 #define DYNAMIC_SPACE_ID (1)
30 #define STATIC_SPACE_ID (2)
31 #define READ_ONLY_SPACE_ID (3)
32
33 struct ndir_entry {
34 #ifndef alpha
35         long identifier;
36         long nwords;
37         long data_page;
38         long address;
39         long page_count;
40 #else
41         u32 identifier;
42         u32 nwords;
43         u32 data_page;
44         u32 address;
45         u32 page_count;
46 #endif
47 };
48
49 extern lispobj load_core_file(char *file);
50
51 #endif