diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sys/sys+osx-x64.myr | 2 | ||||
-rw-r--r-- | lib/thread/spawn+osx.myr | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/sys/sys+osx-x64.myr b/lib/sys/sys+osx-x64.myr index ba97c36..cee1a74 100644 --- a/lib/sys/sys+osx-x64.myr +++ b/lib/sys/sys+osx-x64.myr @@ -888,7 +888,7 @@ const bsdthread_register = {start, wqthread, sz, dummy, targetconc, queueoff } const bsdthread_create = {func , arg , stk , pthr , flags - -> (syscall(Sysbsdthread_create, a(func), a(arg), a(stk), a(pthr)) : void#) + -> (syscall(Sysbsdthread_create, a(func), a(arg), a(stk), a(pthr), a(flags)) : void#) } const bsdthread_terminate = {stk , len , port , sem diff --git a/lib/thread/spawn+osx.myr b/lib/thread/spawn+osx.myr index 1997df4..d3ad5fe 100644 --- a/lib/thread/spawn+osx.myr +++ b/lib/thread/spawn+osx.myr @@ -45,10 +45,10 @@ const spawnstk = {fn, sz ret = sys.bsdthread_create( \ (tramp : void#), \ /* start */ - (tos : void#), \ /* arg */ - (tos : void#), \ /* stack */ - (0 : void#), \ /* pthread struct */ - 0x01000000) /* flags (PTHREAD_START_CUSTOM): don't alloc stack in kernel */ + (tos : void#), \ /* arg */ + (tos : void#), \ /* stack */ + (0 : void#), \ /* pthread struct */ + 0x01000000) /* flags (PTHREAD_START_CUSTOM): don't alloc stack in kernel */ if (ret : std.size) < 0 sys.munmap(stk, sz) |