From a160b2f56716f70fa3e485ae89875da48baefc1d Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 16 May 2019 15:51:37 +0900 Subject: Make COROUTINE_REGISTERS compile-time only not to be a global symbol --- coroutine/ppc64le/Context.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'coroutine/ppc64le') 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 { -- cgit v1.2.3