Qore Programming Language
2.1.3
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
~
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
~
Variables
b
c
d
e
f
i
l
m
n
o
p
s
t
v
w
x
Files
File List
File Members
All
_
a
c
d
f
g
h
i
m
n
p
q
r
s
t
Functions
c
d
f
g
i
m
n
p
q
r
s
t
Variables
d
m
n
q
t
Typedefs
a
i
m
n
q
s
t
Enumerations
Enumerator
Macros
_
d
h
n
p
q
t
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
macros-s390x.h
1
/* -*- mode: c++; indent-tabs-mode: nil -*- */
2
#ifndef _QORE_MACHINE_MACROS_H
3
4
#define _QORE_MACHINE_MACROS_H
5
6
#define STACK_DIRECTION_DOWN 1
7
8
#ifdef __GNUC__
9
#define HAVE_CHECK_STACK_POS
10
11
#define __S390__ 1
12
13
static
inline
size_t
get_stack_pos() {
14
size_t
addr;
15
__asm(
"lgr %0, 15"
:
"=r"
(addr) );
16
return
addr;
17
}
18
#else
19
#error need a way to get the stack pointer with this compiler
20
#endif
21
22
#endif