mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-08 04:08:32 +00:00
Implement more toolchain fixes
This commit is contained in:
parent
0409096658
commit
226375933a
35 changed files with 69 additions and 31 deletions
|
@ -396,6 +396,13 @@ privileged static size_t kformat(char *b, size_t n, const char *fmt,
|
|||
*p++ = 'm';
|
||||
ansi = 1;
|
||||
}
|
||||
#ifdef __x86_64__
|
||||
} else if (IsLinux()) {
|
||||
asm volatile("syscall"
|
||||
: "=a"(x)
|
||||
: "0"(__NR_getpid)
|
||||
: "rcx", "rdx", "r11", "memory");
|
||||
#endif
|
||||
} else {
|
||||
x = 666;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue