mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:27:46 +00:00
Kernel: Support TLS allocation from userspace
This adds an allocate_tls syscall through which a userspace process can request the allocation of a TLS region with a given size. This will be used by the dynamic loader to allocate TLS for the main executable & its libraries.
This commit is contained in:
parent
5b87904ab5
commit
9ca1a0731f
5 changed files with 57 additions and 1 deletions
|
@ -61,5 +61,6 @@ int mprotect(void*, size_t, int prot);
|
|||
int set_mmap_name(void*, size_t, const char*);
|
||||
int madvise(void*, size_t, int advice);
|
||||
int minherit(void*, size_t, int inherit);
|
||||
void* allocate_tls(size_t);
|
||||
|
||||
__END_DECLS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue