Skip to content

Commit

Permalink
system: remove declaration of builtins
Browse files Browse the repository at this point in the history
It interferes with address spaces, since the pointers can have any
address space for these builtins, and so the declaration is "impossible"
to write
  • Loading branch information
yuri91 committed Oct 14, 2024
1 parent fa75abe commit 9c6cf91
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions system/threads.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ _Thread_local int *clear_child_tid = nullptr;

extern "C" {

void __builtin_cheerp_set_thread_pointer(unsigned int);
int __builtin_cheerp_atomic_wait(void *address, int expected, int64_t timeout);
int __builtin_cheerp_atomic_notify(void *address, int count);
void __builtin_cheerp_stack_restore(void *stack);


long __syscall_futex(int32_t* uaddr, int futex_op, ...)
{
bool isPrivate = futex_op & FUTEX_PRIVATE;
Expand Down

0 comments on commit 9c6cf91

Please sign in to comment.