Skip to content

Commit

Permalink
kernel: Remove linux hack
Browse files Browse the repository at this point in the history
* Breaks many games, only benefits BB. Tbd
  • Loading branch information
raphaelthegreat committed Jul 15, 2024
1 parent 0599f4e commit 356b59b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/core/libraries/kernel/thread_management.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 356b59b

Please sign in to comment.