mirror of https://git.musl-libc.org/git/musl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
500 B
19 lines
500 B
#include "pthread_impl.h"
|
|
|
|
void __unmapself_sh_mmu(void *, size_t);
|
|
void __unmapself_sh_nommu(void *, size_t);
|
|
|
|
#if !defined(__SH3__) && !defined(__SH4__)
|
|
#define __unmapself __unmapself_sh_nommu
|
|
#include "../../../src/thread/__unmapself.c"
|
|
#undef __unmapself
|
|
extern __attribute__((__visibility__("hidden"))) unsigned __sh_nommu;
|
|
#else
|
|
#define __sh_nommu 0
|
|
#endif
|
|
|
|
void __unmapself(void *base, size_t size)
|
|
{
|
|
if (__sh_nommu) __unmapself_sh_nommu(base, size);
|
|
else __unmapself_sh_mmu(base, size);
|
|
}
|
|
|