python312Packages.types-aiobotocore: 2.15.2 -> 2.15.2.post3 (#361801)
[NixPkgs.git] / pkgs / by-name / sh / shadps4 / bloodborne.patch
blob63eb722eb494e8f608d5b2cf8e61c2f7799ca05b
1 --- a/src/core/libraries/kernel/thread_management.cpp
2 +++ b/src/core/libraries/kernel/thread_management.cpp
3 @@ -1065,7 +1065,16 @@ ScePthread PThreadPool::Create() {
7 +#ifdef _WIN64
8 auto* ret = new PthreadInternal{};
9 +#else
10 + // TODO: Linux specific hack
11 + static u8* hint_address = reinterpret_cast<u8*>(0x7FFFFC000ULL);
12 + auto* ret = reinterpret_cast<PthreadInternal*>(
13 + mmap(hint_address, sizeof(PthreadInternal), PROT_READ | PROT_WRITE,
14 + MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, -1, 0));
15 + hint_address += Common::AlignUp(sizeof(PthreadInternal), 4_KB);
16 +#endif
17 ret->is_free = false;
18 ret->is_detached = false;
19 ret->is_almost_done = false;