diff options
author | Nobuyoshi Nakada <[email protected]> | 2021-01-22 23:41:52 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-01-22 23:41:52 +0900 |
commit | 07b4b1b1cbafb73c03d04f25c8f3ae6d70975ed5 (patch) | |
tree | 34fc936e5c66d0d6a7b877555fc8eef1283fce81 /coroutine/universal | |
parent | e34eb58ac71ddac2d90315b35adfb2c0bf880369 (diff) |
Support coroutine on universal binary
Diffstat (limited to 'coroutine/universal')
-rw-r--r-- | coroutine/universal/Context.S | 12 | ||||
-rw-r--r-- | coroutine/universal/Context.h | 17 |
2 files changed, 29 insertions, 0 deletions
diff --git a/coroutine/universal/Context.S b/coroutine/universal/Context.S new file mode 100644 index 0000000000..0fd8c01e7f --- /dev/null +++ b/coroutine/universal/Context.S @@ -0,0 +1,12 @@ +#if 0 +#elif defined __x86_64__ +# include "coroutine/amd64/Context.S" +#elif defined __i386__ +# include "coroutine/x86/Context.S" +#elif defined __ppc64__ +# include "coroutine/ppc64le/Context.S" +#elif defined __arm64__ +# include "coroutine/arm64/Context.S" +#else +# error "Unsupported CPU" +#endif diff --git a/coroutine/universal/Context.h b/coroutine/universal/Context.h new file mode 100644 index 0000000000..9a2ef425db --- /dev/null +++ b/coroutine/universal/Context.h @@ -0,0 +1,17 @@ +#ifndef COROUTINE_UNIVERSAL_CONTEXT_H +#define COROUTINE_UNIVERSAL_CONTEXT_H 1 + +#if 0 +#elif defined __x86_64__ +# include "coroutine/amd64/Context.h" +#elif defined __i386__ +# include "coroutine/x86/Context.h" +#elif defined __ppc64__ +# include "coroutine/ppc64le/Context.h" +#elif defined __arm64__ +# include "coroutine/arm64/Context.h" +#else +# error "Unsupported CPU" +#endif + +#endif /* COROUTINE_UNIVERSAL_CONTEXT_H */ |