kernel: Remove linux hack

* Breaks many games, only benefits BB. Tbd
This commit is contained in:
IndecisiveTurtle 2024-07-15 14:51:45 +03:00
parent 0599f4e6a5
commit 356b59b041
1 changed files with 0 additions and 10 deletions

View File

@ -1002,17 +1002,7 @@ ScePthread PThreadPool::Create() {
}
}
#ifdef _WIN64
auto* ret = new PthreadInternal{};
#else
// TODO: Linux specific hack
static u8* hint_address = reinterpret_cast<u8*>(0x7FFFFC000ULL);
auto* ret = reinterpret_cast<PthreadInternal*>(
mmap(hint_address, sizeof(PthreadInternal), PROT_READ | PROT_WRITE,
MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, -1, 0));
hint_address += Common::AlignUp(sizeof(PthreadInternal), 4_KB);
#endif
ret->is_free = false;
ret->is_detached = false;
ret->is_almost_done = false;