fix(libkernel): follow kern_cpuset for the base cpuset, level checks and interrupt targets #7135

Closed
AlexOfTheForest wants to merge 3 commits from upstream-pr/7135 into main
AlexOfTheForest commented 2026-10-17 13:07:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by AlexOfTheForest on 2026-10-17T13:07:54Z.


What

cpuset_getaffinity and cpuset_setaffinity handled only the calling thread and process, threw for any other live thread (although pthread_setaffinity_np already handles one), and differed from FreeBSD 11.4's kern_cpuset_getaffinity/kern_cpuset_setaffinity in several error paths. Four commits:

  1. fix(libkernel): reject an unknown level in cpuset_setaffinity before resolving the target: the setter switches on the level first and only resolves the id inside each level case, so an unknown level is EINVAL whatever the id names. It used to answer ESRCH for an unknown id, and the existing test asserted that; the test is corrected. The getter really does resolve first and is unchanged.
  2. feat(libkernel): read and set another guest thread's affinity through cpuset: LiveGuestThreadAffinity and SetLiveGuestThreadAffinity look a live thread up by id under the registry lock. CPU_WHICH_TID for another thread now reports or records that thread's affinity, with EDEADLK for a mask outside the available CPUs and ESRCH for an unknown id or a thread that finishes in between.
  3. feat(libkernel): answer cpuset_getaffinity for the base cpuset: CPU_LEVEL_CPUSET returns the thread's numbered base set (cpuset_refbase), and so does CPU_WHICH_CPUSET with id -1. Neither moves when a per-thread mask is set. Both report sceKernelGetAvailableCpumask, on the assumption that a title's base set is the CPUs the console makes available to it; that assumption is unverified and recorded in the debt entry. Interrupt and memory-domain targets at the ROOT and CPUSET levels now fail with EINVAL as in the source.
  4. fix(libkernel): follow kern_cpuset_setaffinity for interrupt and domain targets: the setter gets the source's level-then-scope structure. EINVAL for an interrupt or domain at ROOT/CPUSET and for a domain at CPU_LEVEL_WHICH (that switch has no domain case). The interrupt-handler and ithread scopes at CPU_LEVEL_WHICH go to intr_setaffinity in the source, so they now throw instead of answering EINVAL.

Still throwing, with a message naming what was asked: CPU_LEVEL_ROOT (the root set on a console is unknown); changes to the base or root set (cpuset_modify needs PRIV_SCHED_CPUSET, and whether a title holds it is unknown); numbered cpusets; jails; interrupt and domain masks at CPU_LEVEL_WHICH. Both debt entries are updated.

Tested

Linux x86_64:

  • guest_available_cpumask and guest_sched_priority passed 5 of 5 runs. The extended guest_available_cpumask covers: another thread's affinity read and set (clipped bits, EDEADLK, high bits, the caller left unchanged); the base set at both scopes while the caller's own mask is pinned to one CPU; ESRCH for unknown ids; the new EINVAL cases; and every remaining throw.
  • All 140 libkernel tests were built and run: 138 pass. guest_tcp and guest_named_shm_concurrency fail identically on unmodified main in this container.
  • tools/check_conventions.py --base upstream/main passes; the progress report is unchanged.
  • Not run on Windows or macOS; the change is platform-independent.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4900306108 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7135). Originally posted by [AlexOfTheForest](https://github.com/AlexOfTheForest) on 2026-10-17T13:07:54Z. --- ### What `cpuset_getaffinity` and `cpuset_setaffinity` handled only the calling thread and process, threw for any other live thread (although `pthread_setaffinity_np` already handles one), and differed from FreeBSD 11.4's [`kern_cpuset_getaffinity`/`kern_cpuset_setaffinity`](https://github.com/freebsd/freebsd-src/blob/d106002967eff712894ab8b5337bbbff106ce5e0/sys/kern/kern_cpuset.c) in several error paths. Four commits: 1. `fix(libkernel): reject an unknown level in cpuset_setaffinity before resolving the target`: the setter switches on the level first and only resolves the id inside each level case, so an unknown level is `EINVAL` whatever the id names. It used to answer `ESRCH` for an unknown id, and the existing test asserted that; the test is corrected. The getter really does resolve first and is unchanged. 2. `feat(libkernel): read and set another guest thread's affinity through cpuset`: `LiveGuestThreadAffinity` and `SetLiveGuestThreadAffinity` look a live thread up by id under the registry lock. `CPU_WHICH_TID` for another thread now reports or records that thread's affinity, with `EDEADLK` for a mask outside the available CPUs and `ESRCH` for an unknown id or a thread that finishes in between. 3. `feat(libkernel): answer cpuset_getaffinity for the base cpuset`: `CPU_LEVEL_CPUSET` returns the thread's numbered base set (`cpuset_refbase`), and so does `CPU_WHICH_CPUSET` with id -1. Neither moves when a per-thread mask is set. Both report `sceKernelGetAvailableCpumask`, on the assumption that a title's base set is the CPUs the console makes available to it; that assumption is unverified and recorded in the debt entry. Interrupt and memory-domain targets at the ROOT and CPUSET levels now fail with `EINVAL` as in the source. 4. `fix(libkernel): follow kern_cpuset_setaffinity for interrupt and domain targets`: the setter gets the source's level-then-scope structure. `EINVAL` for an interrupt or domain at ROOT/CPUSET and for a domain at `CPU_LEVEL_WHICH` (that switch has no domain case). The interrupt-handler and ithread scopes at `CPU_LEVEL_WHICH` go to `intr_setaffinity` in the source, so they now throw instead of answering `EINVAL`. Still throwing, with a message naming what was asked: `CPU_LEVEL_ROOT` (the root set on a console is unknown); changes to the base or root set (`cpuset_modify` needs `PRIV_SCHED_CPUSET`, and whether a title holds it is unknown); numbered cpusets; jails; interrupt and domain masks at `CPU_LEVEL_WHICH`. Both debt entries are updated. ### Tested Linux x86_64: - `guest_available_cpumask` and `guest_sched_priority` passed 5 of 5 runs. The extended `guest_available_cpumask` covers: another thread's affinity read and set (clipped bits, `EDEADLK`, high bits, the caller left unchanged); the base set at both scopes while the caller's own mask is pinned to one CPU; `ESRCH` for unknown ids; the new `EINVAL` cases; and every remaining throw. - All 140 libkernel tests were built and run: 138 pass. `guest_tcp` and `guest_named_shm_concurrency` fail identically on unmodified `main` in this container. - `tools/check_conventions.py --base upstream/main` passes; the progress report is unchanged. - Not run on Windows or macOS; the change is platform-independent. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
UmillD commented 2026-10-17 14:26:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by UmillD on 2026-10-17T14:26:25Z.


Independent Windows validation of this PR.

  • Windows 11 Home Single Language 10.0.26300, AMD Ryzen 7 9700X; WinLibs GCC 15.2.0 r7 UCRT, Ninja, Release, BUILD_TESTING=ON, bundled dependencies. CPU/library tests; no GPU or title run.
  • PR head 92812410c8c0ff21cecdc80a2d535bf8822eaeac merged cleanly into pinned main 47a266cf975f00f7fba94013467d03bfa5e355e9. Integrated tree 940eb657eb2fcbdf82c468446c46f3d8b45b4cc6; no other open PRs or local game patches added.
  • The control keeps this PR's GuestAvailableCpumask.cpp fixture and uses exactly the pinned main's production sources. The candidate restores only the three integrated Pthread production files. Both selected-target builds succeeded. The libc.prx SHA-256 is identical across phases; libkernel.prx differs as expected.
Test Main production + PR fixture (once) With PR
guest_available_cpumask FAIL, abort 0xc0000409 PASS 5/5
guest_sched_priority PASS PASS 5/5

The same extended affinity fixture therefore detects a production difference on this Windows host. Its candidate run covers reading/setting another live guest thread's affinity, clipping unavailable bits, keeping the caller unchanged, EDEADLK/high-bit error cases, base-set reads while the caller is pinned, unknown/finished thread IDs, and the changed invalid-level/scope cases. The control abort alone does not localize which assertion failed.

Neighboring guest_thread_self, guest_pthread_attr, guest_pthread_attr_errors and guest_pthread_start pass once on each phase (4/4 control, 4/4 candidate). The unchanged start fixture includes its 10,000 thread starts and 100 detach checks. Candidate total: 14/14 test executions, zero skipped. No timeouts or memory-guard terminations. CTest was serial; focused cases used --repeat until-fail:5, with existing individual timeout properties preserved.

Scope: focused Windows API regression testing, not the full suite, a host-scheduler/performance measurement or console validation. In particular, these passes do not establish the unmeasured console assumption about the base cpuset recorded in this PR's debt entry. No local production or fixture changes were needed.

AI-assisted testing and report: yes (Codex).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6235066670 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7135#issuecomment-6235066670). Originally posted by [UmillD](https://github.com/UmillD) on 2026-10-17T14:26:25Z. --- Independent **Windows validation** of this PR. - Windows 11 Home Single Language **10.0.26300**, AMD Ryzen 7 9700X; WinLibs GCC **15.2.0 r7 UCRT**, Ninja, Release, `BUILD_TESTING=ON`, bundled dependencies. CPU/library tests; no GPU or title run. - PR head `92812410c8c0ff21cecdc80a2d535bf8822eaeac` merged cleanly into pinned `main` `47a266cf975f00f7fba94013467d03bfa5e355e9`. Integrated tree `940eb657eb2fcbdf82c468446c46f3d8b45b4cc6`; no other open PRs or local game patches added. - The control keeps this PR's `GuestAvailableCpumask.cpp` fixture and uses exactly the pinned main's production sources. The candidate restores only the three integrated Pthread production files. Both selected-target builds succeeded. The `libc.prx` SHA-256 is identical across phases; `libkernel.prx` differs as expected. | Test | Main production + PR fixture (once) | With PR | |---|---|---| | `guest_available_cpumask` | FAIL, abort `0xc0000409` | PASS 5/5 | | `guest_sched_priority` | PASS | PASS 5/5 | The same extended affinity fixture therefore detects a production difference on this Windows host. Its candidate run covers reading/setting another live guest thread's affinity, clipping unavailable bits, keeping the caller unchanged, `EDEADLK`/high-bit error cases, base-set reads while the caller is pinned, unknown/finished thread IDs, and the changed invalid-level/scope cases. The control abort alone does not localize which assertion failed. Neighboring `guest_thread_self`, `guest_pthread_attr`, `guest_pthread_attr_errors` and `guest_pthread_start` pass once on each phase (**4/4 control, 4/4 candidate**). The unchanged start fixture includes its 10,000 thread starts and 100 detach checks. Candidate total: **14/14 test executions**, zero skipped. No timeouts or memory-guard terminations. CTest was serial; focused cases used `--repeat until-fail:5`, with existing individual timeout properties preserved. Scope: focused Windows API regression testing, **not the full suite**, a host-scheduler/performance measurement or console validation. In particular, these passes do not establish the unmeasured console assumption about the base cpuset recorded in this PR's debt entry. No local production or fixture changes were needed. AI-assisted testing and report: yes (Codex).
blawesom commented 2026-10-18 10:13:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-18T10:13:54Z.


Heads-up before rebase effort goes in: main already implements this PR's core feature. main's cpuset_getaffinity/cpuset_setaffinity resolve any thread id through GetLiveGuestThreadAffinity_nid_no_patch(tid, ...)/SetLiveGuestThreadAffinity_nid_no_patch(tid, ...) (the tid = id == -1 ? self->tid : id path covers other threads directly), and main's test suite exercises remote threads with its own RemoteThread fixture. Your branch predates that landing, so its API surface (LiveGuestThreadAffinity with a pointer out-param, the other self/other split) is a parallel shape of the same feature. What genuinely differs is behaviour your tests pin that main's do not: the EINVAL-vs-ESRCH split for bad ids on some which values, the pinned-self process-affinity coverage, and the which 4-8 error paths — those could be worth carrying as deltas onto main's implementation, or this PR may close as superseded if main's behaviour is what the console does. Your call with the maintainers; happy to carry the reduction if wanted.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6248634928 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7135#issuecomment-6248634928). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-18T10:13:54Z. --- **Heads-up before rebase effort goes in: `main` already implements this PR's core feature.** `main`'s `cpuset_getaffinity`/`cpuset_setaffinity` resolve any thread id through `GetLiveGuestThreadAffinity_nid_no_patch(tid, ...)`/`SetLiveGuestThreadAffinity_nid_no_patch(tid, ...)` (the `tid = id == -1 ? self->tid : id` path covers other threads directly), and `main`'s test suite exercises remote threads with its own `RemoteThread` fixture. Your branch predates that landing, so its API surface (`LiveGuestThreadAffinity` with a pointer out-param, the `other` self/other split) is a parallel shape of the same feature. What genuinely differs is behaviour your tests pin that `main`'s do not: the EINVAL-vs-ESRCH split for bad ids on some `which` values, the pinned-self process-affinity coverage, and the `which` 4-8 error paths — those could be worth carrying as deltas onto `main`'s implementation, or this PR may close as superseded if `main`'s behaviour is what the console does. Your call with the maintainers; happy to carry the reduction if wanted.
AlexOfTheForest commented 2026-10-18 12:03:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by AlexOfTheForest on 2026-10-18T12:03:13Z.


@blawesom thanks, you were right: #6540 already landed the guest-TID lookup. I rebuilt this PR on top of main's GetLiveGuestThreadAffinity_nid_no_patch / SetLiveGuestThreadAffinity_nid_no_patch and dropped my overlapping commit. What remains is the delta:

  1. cpuset_setaffinity checks the level before resolving the id, as kern_cpuset_setaffinity does (an unknown level is EINVAL, not ESRCH).
  2. cpuset_getaffinity answers CPU_LEVEL_CPUSET and CPU_WHICH_CPUSET with id -1 with the base set (taken to be sceKernelGetAvailableCpumask; unverified on a console, noted in the debt entry).
  3. Both calls follow the source's level-then-scope structure for interrupt and domain targets (EINVAL where the source gives EINVAL, throws where it calls intr_*affinity).

guest_available_cpumask and guest_sched_priority pass 5/5 on Linux.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6249683339 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7135#issuecomment-6249683339). Originally posted by [AlexOfTheForest](https://github.com/AlexOfTheForest) on 2026-10-18T12:03:13Z. --- @blawesom thanks, you were right: #6540 already landed the guest-TID lookup. I rebuilt this PR on top of main's GetLiveGuestThreadAffinity_nid_no_patch / SetLiveGuestThreadAffinity_nid_no_patch and dropped my overlapping commit. What remains is the delta: 1. cpuset_setaffinity checks the level before resolving the id, as kern_cpuset_setaffinity does (an unknown level is EINVAL, not ESRCH). 2. cpuset_getaffinity answers CPU_LEVEL_CPUSET and CPU_WHICH_CPUSET with id -1 with the base set (taken to be sceKernelGetAvailableCpumask; unverified on a console, noted in the debt entry). 3. Both calls follow the source's level-then-scope structure for interrupt and domain targets (EINVAL where the source gives EINVAL, throws where it calls intr_*affinity). guest_available_cpumask and guest_sched_priority pass 5/5 on Linux.
AlexOfTheForest commented 2026-10-22 09:03:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by AlexOfTheForest on 2026-10-22T09:03:20Z.


@blawesom thanks, you were right: #6540 already landed the guest-TID lookup. I rebuilt this PR on top of main's GetLiveGuestThreadAffinity_nid_no_patch / SetLiveGuestThreadAffinity_nid_no_patch and dropped my overlapping commit. What remains is the delta:

  1. cpuset_setaffinity checks the level before resolving the id, as kern_cpuset_setaffinity does (an unknown level is EINVAL, not ESRCH).
  2. cpuset_getaffinity answers CPU_LEVEL_CPUSET and CPU_WHICH_CPUSET with id -1 with the base set (taken to be sceKernelGetAvailableCpumask; unverified on a console, noted in the debt entry).
  3. Both calls follow the source's level-then-scope structure for interrupt and domain targets (EINVAL where the source gives EINVAL, throws where it calls intr_*affinity).

Rebased on current main; guest_available_cpumask and guest_sched_priority pass on Linux.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6336955481 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7135#issuecomment-6336955481). Originally posted by [AlexOfTheForest](https://github.com/AlexOfTheForest) on 2026-10-22T09:03:20Z. --- @blawesom thanks, you were right: #6540 already landed the guest-TID lookup. I rebuilt this PR on top of main's GetLiveGuestThreadAffinity_nid_no_patch / SetLiveGuestThreadAffinity_nid_no_patch and dropped my overlapping commit. What remains is the delta: 1. cpuset_setaffinity checks the level before resolving the id, as kern_cpuset_setaffinity does (an unknown level is EINVAL, not ESRCH). 2. cpuset_getaffinity answers CPU_LEVEL_CPUSET and CPU_WHICH_CPUSET with id -1 with the base set (taken to be sceKernelGetAvailableCpumask; unverified on a console, noted in the debt entry). 3. Both calls follow the source's level-then-scope structure for interrupt and domain targets (EINVAL where the source gives EINVAL, throws where it calls intr_*affinity). Rebased on current main; guest_available_cpumask and guest_sched_priority pass on Linux.
ahmadmuj commented 2026-10-25 09:55:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ahmadmuj on 2026-10-25T09:55:13Z.

Review: APPROVED


Reviewed head eb4e07e8a9 merged onto main 16025845e5 (clean merge). Linux x86_64, GCC 13.3, Release.

What I ran:

  • guest_available_cpumask and guest_sched_priority with the PR: pass 5/5.
  • Control, main's Thread.cpp with this PR's test: guest_available_cpumask aborts, guest_sched_priority passes. So the test catches the change on Linux too.
  • tools/check_conventions.py --base 16025845e5: pass.

Source walk against releng/11.4 kern_cpuset.c (d106002967):

  • getter: cpuset_which runs before the level switch (L1113 vs L1116), so a bad id still wins over a bad level, same as here. 7 and 8 are EINVAL at every level because cpuset_which has no case for them (L468). IRQ and domain at ROOT/CPUSET are EINVAL (L1129-1133).
  • setter: the level switch comes first and cpuset_which only runs inside the ROOT/CPUSET case (L1249-1252), so (99, TID, 999999) moving from ESRCH to EINVAL is right. IRQ/7/8/domain at ROOT/CPUSET are EINVAL (L1266-1270). At CPU_LEVEL_WHICH, IRQ/7/8 go to intr_setaffinity (L1297-1300, throws here) and domain falls to default (L1302, EINVAL).
  • I didn't find a branch that disagrees with the source.

Not checked: whether the base set really is sceKernelGetAvailableCpumask on a console. I have no console; the debt entry already says it's unverified.

Two small optional things:

  1. The new cpuset_setaffinity debt line puts "bits outside sceKernelGetAvailableCpumask are dropped, with EDEADLK when none remain" under "Otherwise it follows kern_cpuset_setaffinity". 11.4 doesn't drop bits: cpuset_shadow returns EDEADLK as soon as the mask isn't a subset of the parent set (CPU_SUBSET, L497-498; same check in cpuset_setproc, L568-569). Dropping is main's existing behaviour and fine to keep, it just reads as if FreeBSD does it. Maybe its own sentence, e.g. "Unlike FreeBSD, which returns EDEADLK for any bit outside the parent set, bits outside sceKernelGetAvailableCpumask are dropped, with EDEADLK when none remain".
  2. Thread.cpp L155: the return fail(GuestEinval); after NotImplemented_nid_no_patch(...) can't run, since that function is [[noreturn]] (core/libs/prx/libc/include/General.hpp:15). Could just go.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5642612920 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7135#pullrequestreview-5642612920). Originally posted by [ahmadmuj](https://github.com/ahmadmuj) on 2026-10-25T09:55:13Z. **Review:** APPROVED --- Reviewed head `eb4e07e8a9` merged onto main `16025845e5` (clean merge). Linux x86_64, GCC 13.3, Release. What I ran: - `guest_available_cpumask` and `guest_sched_priority` with the PR: pass 5/5. - Control, main's `Thread.cpp` with this PR's test: `guest_available_cpumask` aborts, `guest_sched_priority` passes. So the test catches the change on Linux too. - `tools/check_conventions.py --base 16025845e5`: pass. Source walk against releng/11.4 `kern_cpuset.c` ([d106002967](https://github.com/freebsd/freebsd-src/blob/d106002967eff712894ab8b5337bbbff106ce5e0/sys/kern/kern_cpuset.c)): - getter: `cpuset_which` runs before the level switch (L1113 vs L1116), so a bad id still wins over a bad level, same as here. 7 and 8 are `EINVAL` at every level because `cpuset_which` has no case for them (L468). IRQ and domain at ROOT/CPUSET are `EINVAL` (L1129-1133). - setter: the level switch comes first and `cpuset_which` only runs inside the ROOT/CPUSET case (L1249-1252), so `(99, TID, 999999)` moving from `ESRCH` to `EINVAL` is right. IRQ/7/8/domain at ROOT/CPUSET are `EINVAL` (L1266-1270). At `CPU_LEVEL_WHICH`, IRQ/7/8 go to `intr_setaffinity` (L1297-1300, throws here) and domain falls to `default` (L1302, `EINVAL`). - I didn't find a branch that disagrees with the source. Not checked: whether the base set really is `sceKernelGetAvailableCpumask` on a console. I have no console; the debt entry already says it's unverified. Two small optional things: 1. The new `cpuset_setaffinity` debt line puts "bits outside `sceKernelGetAvailableCpumask` are dropped, with `EDEADLK` when none remain" under "Otherwise it follows `kern_cpuset_setaffinity`". 11.4 doesn't drop bits: `cpuset_shadow` returns `EDEADLK` as soon as the mask isn't a subset of the parent set (`CPU_SUBSET`, L497-498; same check in `cpuset_setproc`, L568-569). Dropping is main's existing behaviour and fine to keep, it just reads as if FreeBSD does it. Maybe its own sentence, e.g. "Unlike FreeBSD, which returns `EDEADLK` for any bit outside the parent set, bits outside `sceKernelGetAvailableCpumask` are dropped, with `EDEADLK` when none remain". 2. `Thread.cpp` L155: the `return fail(GuestEinval);` after `NotImplemented_nid_no_patch(...)` can't run, since that function is `[[noreturn]]` (`core/libs/prx/libc/include/General.hpp:15`). Could just go.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!7135
No description provided.