diff options
author | Russ Cox <rsc@swtch.com> | 2020-01-19 20:57:09 -0500 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2020-01-19 21:26:30 -0500 |
commit | 52397aaf2b240015533fa46f1767c20f45296465 (patch) | |
tree | 1161cae9ad0b09a50b5d69861b72611ece159fca /src/libthread/Darwin-power.c | |
parent | 8dcb18f71b1917713d4743ab10968c527acdc62e (diff) | |
download | plan9port-52397aaf2b240015533fa46f1767c20f45296465.tar.gz plan9port-52397aaf2b240015533fa46f1767c20f45296465.tar.bz2 plan9port-52397aaf2b240015533fa46f1767c20f45296465.zip |
libthread: rm Darwin pre-11.0.0 support
Darwin 11.0.0 was Mac OS X 10.7.0 aka Lion.
The previous version was Snow Leopard, which
has been unsupported by Apple since February 2014.
Diffstat (limited to 'src/libthread/Darwin-power.c')
-rw-r--r-- | src/libthread/Darwin-power.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/libthread/Darwin-power.c b/src/libthread/Darwin-power.c deleted file mode 100644 index 3f2bf566..00000000 --- a/src/libthread/Darwin-power.c +++ /dev/null @@ -1,24 +0,0 @@ -#include "threadimpl.h" - -void -makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...) -{ - ulong *sp, *tos; - va_list arg; - - tos = (ulong*)ucp->uc_stack.ss_sp+ucp->uc_stack.ss_size/sizeof(ulong); - sp = tos - 16; - ucp->mc.pc = (long)func; - ucp->mc.sp = (long)sp; - va_start(arg, argc); - ucp->mc.r3 = va_arg(arg, long); - va_end(arg); -} - -int -swapcontext(ucontext_t *oucp, ucontext_t *ucp) -{ - if(getcontext(oucp) == 0) - setcontext(ucp); - return 0; -} |