diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-05-16 15:51:37 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-05-16 15:52:09 +0900 |
commit | a160b2f56716f70fa3e485ae89875da48baefc1d (patch) | |
tree | 40509f60a3052683c24bca4f24cac8c7d9f127d5 /coroutine/ppc64le | |
parent | 7069f64c419ebb9a7fd3e48d81454148ed4b2fba (diff) | |
download | ruby-a160b2f56716f70fa3e485ae89875da48baefc1d.tar.gz |
Make COROUTINE_REGISTERS compile-time only not to be a global symbol
Diffstat (limited to 'coroutine/ppc64le')
-rw-r--r-- | coroutine/ppc64le/Context.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/coroutine/ppc64le/Context.h b/coroutine/ppc64le/Context.h index de592f5a46..5971cd8a9b 100644 --- a/coroutine/ppc64le/Context.h +++ b/coroutine/ppc64le/Context.h @@ -9,9 +9,11 @@ extern "C" { #define COROUTINE __attribute__((noreturn)) void -const size_t COROUTINE_REGISTERS = +enum { + COROUTINE_REGISTERS = 19 /* 18 general purpose registers (r14-r31) and 1 return address */ - + 4; /* space for fiber_entry() to store the link register */ + + 4 /* space for fiber_entry() to store the link register */ +}; typedef struct { |