4d956c80ca76f832309ff6ed73211436fb8ada96
[sbcl.git] / src / runtime / globals.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 #if !defined(_INCLUDE_GLOBALS_H_)
17 #define _INCLUDED_GLOBALS_H_
18
19 #ifndef LANGUAGE_ASSEMBLY
20
21 #include "runtime.h"
22
23 extern int foreign_function_call_active;
24
25 extern lispobj *current_control_stack_pointer;
26 extern lispobj *current_control_frame_pointer;
27 #if !defined(ibmrt) && !defined(__i386__)
28 extern lispobj *current_binding_stack_pointer;
29 #endif
30
31 #if !defined(ibmrt) && !defined(__i386__)
32 extern lispobj *dynamic_space_free_pointer;
33 extern lispobj *current_auto_gc_trigger;
34 #endif
35
36 extern void globals_init(void);
37
38 #else  LANGUAGE_ASSEMBLY
39
40 /* These are needed by ./assem.s */
41
42 #ifdef mips
43 #define EXTERN(name,bytes) .extern name bytes
44 #endif
45 #ifdef sparc
46 #ifdef SVR4
47 #define EXTERN(name,bytes) .global name
48 #else
49 #define EXTERN(name,bytes) .global _ ## name
50 #endif
51 #endif
52 #ifdef ibmrt
53 #define EXTERN(name,bytes) .globl _/**/name
54 #endif
55
56 #ifdef __i386__
57 #ifdef __linux__
58 #define EXTERN(name,bytes) .globl _/**/name
59 #else
60 #define EXTERN(name,bytes) .global _ ## name
61 #endif
62 #endif
63
64 EXTERN(foreign_function_call_active, 4)
65
66 EXTERN(current_control_stack_pointer, 4)
67 EXTERN(current_control_frame_pointer, 4)
68 #if !defined(ibmrt) && !defined(__i386__)
69 EXTERN(current_binding_stack_pointer, 4)
70 EXTERN(dynamic_space_free_pointer, 4)
71 #endif
72
73 #ifdef mips
74 EXTERN(current_flags_register, 4)
75 #endif
76
77 #endif LANGUAGE_ASSEMBLY
78
79 #endif _INCLUDED_GLOBALS_H_