feat(libkernel): declare sceKernelGetProcessAbiType #8255

Merged
Nixitov merged 1 commit from upstream-pr/8255 into main 2026-10-21 07:20:38 +00:00
Nixitov commented 2026-10-20 07:13:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Nixitov on 2026-10-20T07:13:05Z.


What

Declares sceKernelGetProcessAbiType (Ai+CmAO2w54) in libkernel as a throwing export, like the neighbouring unimplemented sceKernelUnknown* declarations.

No measured value, prototype or documented consumer of the process ABI type was found, and returning a guessed constant would let a title branch on a value the console never answered with. The debt entry records that together with the title that reaches it.

Tested

Relinked against main dd4b76525. PS5_MihawkOS (PPSA99170, mihawk-99/PS5_MihawkOS v1.0.0-alpha-1), Windows, MinGW-w64 GCC 15.2:

  • Before: FAIL: unresolved ELF import Ai+CmAO2w54 from libkernel.prx, exits at load.
  • With this PR: loads and runs — its splash is dismissed, the pad opens, and it proceeds to its own missing-asset check, Could not find asset path in "/mnt/sandbox/PPSA99170_000/app0/assets/", with no library stop; the declaration is never actually called.

No test: this is a declaration-only export, like the existing sceKernelUnknown* ones; there is no behaviour to assert beyond the throw. check_conventions.py --base origin/main passes.

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: PPSA99170
  • GPUs tested: n/a (kernel declaration; no AGC, shader recompiler or VideoOut change)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4932319939 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8255). Originally posted by [Nixitov](https://github.com/Nixitov) on 2026-10-20T07:13:05Z. --- ### What Declares `sceKernelGetProcessAbiType` (`Ai+CmAO2w54`) in libkernel as a throwing export, like the neighbouring unimplemented `sceKernelUnknown*` declarations. No measured value, prototype or documented consumer of the process ABI type was found, and returning a guessed constant would let a title branch on a value the console never answered with. The debt entry records that together with the title that reaches it. ### Tested Relinked against `main` `dd4b76525`. PS5_MihawkOS (PPSA99170, `mihawk-99/PS5_MihawkOS` v1.0.0-alpha-1), Windows, MinGW-w64 GCC 15.2: - Before: `FAIL: unresolved ELF import Ai+CmAO2w54 from libkernel.prx`, exits at load. - With this PR: loads and runs — its splash is dismissed, the pad opens, and it proceeds to its own missing-asset check, `Could not find asset path in "/mnt/sandbox/PPSA99170_000/app0/assets/"`, with no library stop; the declaration is never actually called. No test: this is a declaration-only export, like the existing `sceKernelUnknown*` ones; there is no behaviour to assert beyond the throw. `check_conventions.py --base origin/main` passes. ### 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: PPSA99170 - [x] GPUs tested: n/a (kernel declaration; no AGC, shader recompiler or VideoOut change) - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-20 07:13:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-20T07:13:52Z.


Progress report (b77bd58 → 4d83fec)

➖ System libraries: 49.93% (+0.0%, +1 declared functions)

🆕 1 declared as stubs
Library Name
libkernel sceKernelGetProcessAbiType
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6285514973 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8255#issuecomment-6285514973). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-20T07:13:52Z. --- <!-- progress-report --> ### Progress report (b77bd58 → 4d83fec) ➖ **System libraries**: 49.93% (+0.0%, +1 declared functions) <details> <summary>🆕 1 declared as stubs</summary> | Library | Name | | - | - | | libkernel | `sceKernelGetProcessAbiType` | </details>
github-actions[bot] commented 2026-10-20 07:20:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-20T07:20:52Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 8553 docs/dev/debt/libkernel.md L236

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 4630 docs/dev/debt/libkernel.md
PR 5021 docs/dev/debt/libkernel.md
PR 6149 docs/dev/debt/libkernel.md
PR 6469 docs/dev/debt/libkernel.md
PR 6519 docs/dev/debt/libkernel.md
PR 6740 docs/dev/debt/libkernel.md
PR 6936 docs/dev/debt/libkernel.md
PR 6977 core/libs/prx/libkernel/Unimplemented.cpp
docs/dev/debt/libkernel.md
PR 7049 docs/dev/debt/libkernel.md
PR 7088 docs/dev/debt/libkernel.md
PR 7105 docs/dev/debt/libkernel.md
PR 7121 docs/dev/debt/libkernel.md
PR 7149 docs/dev/debt/libkernel.md
PR 7192 docs/dev/debt/libkernel.md
PR 7509 docs/dev/debt/libkernel.md
PR 7532 docs/dev/debt/libkernel.md
PR 7965 docs/dev/debt/libkernel.md
PR 8520 docs/dev/debt/libkernel.md
PR 8523 docs/dev/debt/libkernel.md
PR 8658 docs/dev/debt/libkernel.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6285622463 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8255#issuecomment-6285622463). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-20T07:20:52Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 8553](https://www.github.com/boykopovar/AnyPS5/pull/8553) | `docs/dev/debt/libkernel.md` [L236](https://github.com/boykopovar/AnyPS5/blob/b77bd58806a5d9a7ecc91ee7290728a4d2ff4d6d/docs/dev/debt/libkernel.md#L236) | | | Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 4630](https://www.github.com/boykopovar/AnyPS5/pull/4630) | `docs/dev/debt/libkernel.md` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `docs/dev/debt/libkernel.md` | | [PR 6149](https://www.github.com/boykopovar/AnyPS5/pull/6149) | `docs/dev/debt/libkernel.md` | | [PR 6469](https://www.github.com/boykopovar/AnyPS5/pull/6469) | `docs/dev/debt/libkernel.md` | | [PR 6519](https://www.github.com/boykopovar/AnyPS5/pull/6519) | `docs/dev/debt/libkernel.md` | | [PR 6740](https://www.github.com/boykopovar/AnyPS5/pull/6740) | `docs/dev/debt/libkernel.md` | | [PR 6936](https://www.github.com/boykopovar/AnyPS5/pull/6936) | `docs/dev/debt/libkernel.md` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `core/libs/prx/libkernel/Unimplemented.cpp`<br>`docs/dev/debt/libkernel.md` | | [PR 7049](https://www.github.com/boykopovar/AnyPS5/pull/7049) | `docs/dev/debt/libkernel.md` | | [PR 7088](https://www.github.com/boykopovar/AnyPS5/pull/7088) | `docs/dev/debt/libkernel.md` | | [PR 7105](https://www.github.com/boykopovar/AnyPS5/pull/7105) | `docs/dev/debt/libkernel.md` | | [PR 7121](https://www.github.com/boykopovar/AnyPS5/pull/7121) | `docs/dev/debt/libkernel.md` | | [PR 7149](https://www.github.com/boykopovar/AnyPS5/pull/7149) | `docs/dev/debt/libkernel.md` | | [PR 7192](https://www.github.com/boykopovar/AnyPS5/pull/7192) | `docs/dev/debt/libkernel.md` | | [PR 7509](https://www.github.com/boykopovar/AnyPS5/pull/7509) | `docs/dev/debt/libkernel.md` | | [PR 7532](https://www.github.com/boykopovar/AnyPS5/pull/7532) | `docs/dev/debt/libkernel.md` | | [PR 7965](https://www.github.com/boykopovar/AnyPS5/pull/7965) | `docs/dev/debt/libkernel.md` | | [PR 8520](https://www.github.com/boykopovar/AnyPS5/pull/8520) | `docs/dev/debt/libkernel.md` | | [PR 8523](https://www.github.com/boykopovar/AnyPS5/pull/8523) | `docs/dev/debt/libkernel.md` | | [PR 8658](https://www.github.com/boykopovar/AnyPS5/pull/8658) | `docs/dev/debt/libkernel.md` |
fogydes commented 2026-10-20 07:31:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fogydes on 2026-10-20T07:31:19Z.

Review: COMMENTED


Looked at the diff and CI status.

Code: The export follows the established NotImplemented_nid_no_patch(__func__) pattern identically to the neighbouring sceKernelUnknown* declarations — correct approach when the console return value is unknown. The debt entry in docs/dev/debt/libkernel.md documents the reasoning (no measured value, no prototype, only one known consumer) and records the title that reaches it.

CI: conventions, intake, labels, eligibility and report all pass. Build/platform jobs skip as expected for a kernel declaration change.

Conventions: return 0 after the throw is consistent with the rest of Unimplemented.cpp. No comments in code, no added notes files, PR body fills every template item including the Unblocks: PPSA99170 line. Clean.

No issues found. This follows the project's declaration-only export pattern exactly.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5582004924 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8255#pullrequestreview-5582004924). Originally posted by [fogydes](https://github.com/fogydes) on 2026-10-20T07:31:19Z. **Review:** COMMENTED --- Looked at the diff and CI status. **Code**: The export follows the established `NotImplemented_nid_no_patch(__func__)` pattern identically to the neighbouring `sceKernelUnknown*` declarations — correct approach when the console return value is unknown. The debt entry in `docs/dev/debt/libkernel.md` documents the reasoning (no measured value, no prototype, only one known consumer) and records the title that reaches it. **CI**: `conventions`, `intake`, `labels`, `eligibility` and `report` all pass. Build/platform jobs skip as expected for a kernel declaration change. **Conventions**: `return 0` after the throw is consistent with the rest of `Unimplemented.cpp`. No comments in code, no added notes files, PR body fills every template item including the `Unblocks: PPSA99170` line. Clean. No issues found. This follows the project's declaration-only export pattern exactly.
dantdmdarealguy commented 2026-10-21 02:12:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by dantdmdarealguy on 2026-10-21T02:12:34Z.


Independent Windows check of head 4cbaa5ce2f against its merge base 434e965d46, built one after the other in the same build directory, plus current main 3b5a24c0d. Windows 11 Pro, Intel Core i9-14900K, 128 GB RAM, NVIDIA GeForce RTX 5080 (driver 32.0.16.1742), WinLibs GCC 15.2.0, Ninja, Release, BUILD_TESTING=ON.

PS5_MihawkOS (PPSA99170) v1.0.0-alpha-1: PS5_MihawkOS-v1.0.0-alpha-1-PPSA99170.zip from the mihawk-99/PS5_MihawkOS GitHub release. It is not in the catalog. Its sha256, eeb2de04…34b78bd, matches the digest GitHub lists for the asset. eboot.bin and sce_module/libc.prx unwrapped with tools/unwrap_self.py, relinked with relinker --windows --registry, package as app0. 60 s runs, no input.

  • Base: exits after 3.2 s with 0xC0000139:
    FAIL: unresolved ELF import Ai+CmAO2w54 from libkernel.prx
    GetLastError: 127 - The specified procedure could not be found.
    
  • Current main 3b5a24c0d: the same stop after 3.5 s.
  • Head: loads, then exits by itself with code 0 after 0.6 s, before opening a window. The log matches your description:
    [MihawkOS] splash dismissed: 0
    [MihawkOS] pad: opened for user 268435456
    [MihawkOS] sample ps5proton: starts
    [MihawkOS] Could not find asset path in "/mnt/sandbox/PPSA99170_000/app0/assets/"
    
    There is no sceKernelGetProcessAbiType not implemented line, so the declaration isn't called before that point.
  • main 3b5a24c0d with this PR merged (together with #8080, #8119 + #8113 and #8083, which touch other libraries): the same, exit 0 at the same asset check.

Checks

  • There is no test and so no negative control. That fits a declaration that only throws.
  • patched_libraries passes on main + this PR. The incremental head build has no warnings. tools/check_conventions.py --base 434e965d46 passes, and the branch merges into current main 3b5a24c0d without conflicts.
  • Two small things in the PR:
    • the Tested section quotes the loader line as Ai+CmAo2w54; the loader prints Ai+CmAO2w54, which is what the What section has and what tools/nid_names.py computes for sceKernelGetProcessAbiType;
    • Unimplemented.cpp gets two blank lines before the new function where the file uses one.
  • I didn't look into the next stop. app0/assets/ exists in the run directory, and no file under core/ mentions /mnt/sandbox.

Verdict: works on Windows. The load stop is gone on the merge base and on current main, and the title gets to its own asset check.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6306298207 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8255#issuecomment-6306298207). Originally posted by [dantdmdarealguy](https://github.com/dantdmdarealguy) on 2026-10-21T02:12:34Z. --- Independent Windows check of head `4cbaa5ce2f` against its merge base `434e965d46`, built one after the other in the same build directory, plus current `main` `3b5a24c0d`. Windows 11 Pro, Intel Core i9-14900K, 128 GB RAM, NVIDIA GeForce RTX 5080 (driver 32.0.16.1742), WinLibs GCC 15.2.0, Ninja, Release, `BUILD_TESTING=ON`. **PS5_MihawkOS (PPSA99170) v1.0.0-alpha-1**: `PS5_MihawkOS-v1.0.0-alpha-1-PPSA99170.zip` from the `mihawk-99/PS5_MihawkOS` GitHub release. It is not in the catalog. Its sha256, `eeb2de04…34b78bd`, matches the digest GitHub lists for the asset. `eboot.bin` and `sce_module/libc.prx` unwrapped with `tools/unwrap_self.py`, relinked with `relinker --windows --registry`, package as `app0`. 60 s runs, no input. - Base: exits after 3.2 s with `0xC0000139`: ``` FAIL: unresolved ELF import Ai+CmAO2w54 from libkernel.prx GetLastError: 127 - The specified procedure could not be found. ``` - Current `main` `3b5a24c0d`: the same stop after 3.5 s. - Head: loads, then exits by itself with code 0 after 0.6 s, before opening a window. The log matches your description: ``` [MihawkOS] splash dismissed: 0 [MihawkOS] pad: opened for user 268435456 [MihawkOS] sample ps5proton: starts [MihawkOS] Could not find asset path in "/mnt/sandbox/PPSA99170_000/app0/assets/" ``` There is no `sceKernelGetProcessAbiType not implemented` line, so the declaration isn't called before that point. - `main` `3b5a24c0d` with this PR merged (together with #8080, #8119 + #8113 and #8083, which touch other libraries): the same, exit 0 at the same asset check. **Checks** - There is no test and so no negative control. That fits a declaration that only throws. - `patched_libraries` passes on `main` + this PR. The incremental head build has no warnings. `tools/check_conventions.py --base 434e965d46` passes, and the branch merges into current `main` `3b5a24c0d` without conflicts. - Two small things in the PR: - the Tested section quotes the loader line as `Ai+CmAo2w54`; the loader prints `Ai+CmAO2w54`, which is what the What section has and what `tools/nid_names.py` computes for `sceKernelGetProcessAbiType`; - `Unimplemented.cpp` gets two blank lines before the new function where the file uses one. - I didn't look into the next stop. `app0/assets/` exists in the run directory, and no file under `core/` mentions `/mnt/sandbox`. Verdict: works on Windows. The load stop is gone on the merge base and on current `main`, and the title gets to its own asset check.
Nixitov commented 2026-10-21 07:01:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Nixitov on 2026-10-21T07:01:44Z.


Thanks for the independent Windows check, and for the two catches. Both are fixed in 4d83fece6:

  • the Tested line now quotes the loader's Ai+CmAO2w54 (the What section and tools/nid_names.py already had that spelling);
  • Unimplemented.cpp now has a single blank line before the new function, matching the rest of the file.

Rebuilt libkernel after the change and python tools/check_conventions.py --base origin/main still passes. The declaration and the debt entry are otherwise unchanged.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6310111128 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8255#issuecomment-6310111128). Originally posted by [Nixitov](https://github.com/Nixitov) on 2026-10-21T07:01:44Z. --- Thanks for the independent Windows check, and for the two catches. Both are fixed in `4d83fece6`: - the **Tested** line now quotes the loader's `Ai+CmAO2w54` (the **What** section and `tools/nid_names.py` already had that spelling); - `Unimplemented.cpp` now has a single blank line before the new function, matching the rest of the file. Rebuilt `libkernel` after the change and `python tools/check_conventions.py --base origin/main` still passes. The declaration and the debt entry are otherwise unchanged. AI-assisted: yes
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!8255
No description provided.