]> git.lizzy.rs Git - rust.git/blob - src/rt/arch/arm/regs.h
Support ARM and Android
[rust.git] / src / rt / arch / arm / regs.h
1 #define RUSTRT_RBX   0
2 #define RUSTRT_RSP   1
3 #define RUSTRT_RBP   2
4 // RCX on Windows, RDI elsewhere
5 #define RUSTRT_ARG0  3
6 #define RUSTRT_R12   4
7 #define RUSTRT_R13   5
8 #define RUSTRT_R14   6
9 #define RUSTRT_R15   7
10 #define RUSTRT_IP    8
11
12 #define RUSTRT_MAX  32
13
14 // ARG0 is the register in which the first argument goes.
15 // Naturally this depends on your operating system.
16 #   define RUSTRT_ARG0_S r0
17 #   define RUSTRT_ARG1_S r1
18 #   define RUSTRT_ARG2_S r2
19 #   define RUSTRT_ARG3_S r3
20
21