mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-08-26 21:44:59 +00:00
kernel: add aarch64 architecture support
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
@@ -108,8 +108,12 @@ export int pthread_rwlockattr_setpshared(pthread_rwlockattr_t *, int);
|
||||
export pthread_t pthread_self(void)
|
||||
{
|
||||
pthread_t tid;
|
||||
#if defined(__amd64__) || defined(__i386__)
|
||||
__asm__ __volatile__("mov %%fs:0, %0"
|
||||
: "=r"(tid));
|
||||
#elif defined(__aarch64__)
|
||||
tid = 0;
|
||||
#endif
|
||||
return tid;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user