diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-11-05 02:14:26 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2023-11-05 02:14:26 +0900 |
commit | 368a1cb3c40ea7fd17809e6d2e78f6a77f770a29 (patch) | |
tree | 348b6663957c444148006ac053155fa3f41e4ecb /coroutine/ppc | |
parent | 054a4672cb8dbb9edb3f84c14c09ac17fbec1102 (diff) |
Do not use non-ASCII chars in sources
No encodings are guaranteed in C compilers, and other than UTF-8
encodings may be assumed in some platforms, e.g., CP932 on Windows
Japanese edition, and may result in compilation errors.
Diffstat (limited to 'coroutine/ppc')
-rw-r--r-- | coroutine/ppc/Context.S | 2 | ||||
-rw-r--r-- | coroutine/ppc/Context.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/coroutine/ppc/Context.S b/coroutine/ppc/Context.S index cdda93e179..e2431a9250 100644 --- a/coroutine/ppc/Context.S +++ b/coroutine/ppc/Context.S @@ -3,7 +3,7 @@ ; Some relevant examples: https://github.com/gcc-mirror/gcc/blob/master/libphobos/libdruntime/config/powerpc/switchcontext.S ; https://github.com/gcc-mirror/gcc/blob/master/libgcc/config/rs6000/darwin-gpsave.S ; https://www.ibm.com/docs/en/aix/7.2?topic=epilogs-saving-gprs-only -; ppc32 version may be re-written compactly with stmw/lwm, but the code wonʼt be faster, see: https://github.com/ruby/ruby/pull/5927#issuecomment-1139730541 +; ppc32 version may be re-written compactly with stmw/lwm, but the code won't be faster, see: https://github.com/ruby/ruby/pull/5927#issuecomment-1139730541 ; Notice that this code is only for Darwin (macOS). Darwin ABI differs from AIX and ELF. ; To add support for AIX, *BSD or *Linux, please make separate implementations. diff --git a/coroutine/ppc/Context.h b/coroutine/ppc/Context.h index 1fce112579..8035d08556 100644 --- a/coroutine/ppc/Context.h +++ b/coroutine/ppc/Context.h @@ -13,7 +13,7 @@ enum { COROUTINE_REGISTERS = - 20 /* 19 general purpose registers (r13–r31) and 1 return address */ + 20 /* 19 general purpose registers (r13-r31) and 1 return address */ + 4 /* space for fiber_entry() to store the link register */ }; |