summaryrefslogtreecommitdiff
path: root/coroutine/ppc64le/Context.h
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-05-16 15:51:37 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-05-16 15:52:09 +0900
commita160b2f56716f70fa3e485ae89875da48baefc1d (patch)
tree40509f60a3052683c24bca4f24cac8c7d9f127d5 /coroutine/ppc64le/Context.h
parent7069f64c419ebb9a7fd3e48d81454148ed4b2fba (diff)
Make COROUTINE_REGISTERS compile-time only not to be a global symbol
Diffstat (limited to 'coroutine/ppc64le/Context.h')
-rw-r--r--coroutine/ppc64le/Context.h6
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
{