mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
Do some more aarch64 fixups
This commit is contained in:
parent
86d9323a43
commit
59766efd3e
17 changed files with 63 additions and 89 deletions
|
@ -29,6 +29,9 @@
|
|||
#define DEFAULT_POLICY SCHED_OTHER
|
||||
|
||||
void SetUp(void) {
|
||||
if (IsFreebsd() && getuid() != 0) {
|
||||
exit(0);
|
||||
}
|
||||
if (IsXnu() || IsWindows() || IsOpenbsd() || IsWindows()) {
|
||||
exit(0);
|
||||
}
|
||||
|
|
|
@ -125,7 +125,7 @@ void TestContendedLock(const char *name, int kind) {
|
|||
stk = _mapstack();
|
||||
rc = clone(Worker, stk, GetStackSize() - 16 /* openbsd:stackbound */,
|
||||
CLONE_VM | CLONE_THREAD | CLONE_FS | CLONE_FILES | CLONE_SIGHAND |
|
||||
CLONE_PARENT_SETTID | CLONE_CHILD_SETTID |
|
||||
CLONE_SYSVSEM | CLONE_PARENT_SETTID | CLONE_CHILD_SETTID |
|
||||
CLONE_CHILD_CLEARTID | CLONE_SETTLS,
|
||||
0, &tid, &tib, &tib.tib_tid);
|
||||
if (rc) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue