diff --git a/core/libs/prx/libSceTEEClient/Export.cpp b/core/libs/prx/libSceTEEClient/Export.cpp index 71faf0cb5f..f550aa63e3 100644 --- a/core/libs/prx/libSceTEEClient/Export.cpp +++ b/core/libs/prx/libSceTEEClient/Export.cpp @@ -1,3 +1,5 @@ +#include "prx/libc/include/general/ExportMacros.hpp" +#include "prx/libSceTEEClient/include/InventoryExports.hpp" #include "prx/libSceTEEClient/include/Api.hpp" #include #include @@ -58,3 +60,32 @@ int APS5_VABI TEEC_RequestCancellation_nid_postfix(void) { } } + +extern "C" { + +int APS5_VABI libSceTEEClientUnknown_H9IE7wXy3qY_nid_no_patch() { + NotImplemented_nid_no_patch(__func__); +} +APS5_EXPORT("H9IE7wXy3qY", libSceTEEClientUnknown_H9IE7wXy3qY_nid_no_patch); + +int APS5_VABI libSceTEEClientUnknown_VaBqpbmaWpc_nid_no_patch() { + NotImplemented_nid_no_patch(__func__); +} +APS5_EXPORT("VaBqpbmaWpc", libSceTEEClientUnknown_VaBqpbmaWpc_nid_no_patch); + +int APS5_VABI libSceTEEClientUnknown_Xn5kfzvPht4_nid_no_patch() { + NotImplemented_nid_no_patch(__func__); +} +APS5_EXPORT("Xn5kfzvPht4", libSceTEEClientUnknown_Xn5kfzvPht4_nid_no_patch); + +int APS5_VABI libSceTEEClientUnknown_ZAJdq_minus_IONZ4_nid_no_patch() { + NotImplemented_nid_no_patch(__func__); +} +APS5_EXPORT("ZAJdq-IONZ4", libSceTEEClientUnknown_ZAJdq_minus_IONZ4_nid_no_patch); + +int APS5_VABI libSceTEEClientUnknown_d_minus_OLk3nvFIA_nid_no_patch() { + NotImplemented_nid_no_patch(__func__); +} +APS5_EXPORT("d-OLk3nvFIA", libSceTEEClientUnknown_d_minus_OLk3nvFIA_nid_no_patch); + +} diff --git a/core/libs/prx/libSceTEEClient/include/InventoryExports.hpp b/core/libs/prx/libSceTEEClient/include/InventoryExports.hpp new file mode 100644 index 0000000000..fa490466d4 --- /dev/null +++ b/core/libs/prx/libSceTEEClient/include/InventoryExports.hpp @@ -0,0 +1,13 @@ +#pragma once + +#include "SceTypes.hpp" + +extern "C" { + +int APS5_VABI libSceTEEClientUnknown_H9IE7wXy3qY_nid_no_patch(); +int APS5_VABI libSceTEEClientUnknown_VaBqpbmaWpc_nid_no_patch(); +int APS5_VABI libSceTEEClientUnknown_Xn5kfzvPht4_nid_no_patch(); +int APS5_VABI libSceTEEClientUnknown_ZAJdq_minus_IONZ4_nid_no_patch(); +int APS5_VABI libSceTEEClientUnknown_d_minus_OLk3nvFIA_nid_no_patch(); + +} diff --git a/core/libs/prx/libSceTEEClient/libSceTEEClient.hpp b/core/libs/prx/libSceTEEClient/libSceTEEClient.hpp index 7b3b5682b7..254509fed0 100644 --- a/core/libs/prx/libSceTEEClient/libSceTEEClient.hpp +++ b/core/libs/prx/libSceTEEClient/libSceTEEClient.hpp @@ -1,3 +1,4 @@ #pragma once #include "prx/libSceTEEClient/include/Api.hpp" +#include "prx/libSceTEEClient/include/InventoryExports.hpp" diff --git a/docs/dev/debt/libSceTEEClient.md b/docs/dev/debt/libSceTEEClient.md index 04823e75e6..9fb36e3b99 100644 --- a/docs/dev/debt/libSceTEEClient.md +++ b/docs/dev/debt/libSceTEEClient.md @@ -3,3 +3,15 @@ ### Unknown function info - [libSceTEEClient pending exports](../../../core/libs/prx/libSceTEEClient/Export.cpp) - 10 named callable exports are listed in the [PS5 3.20 export table](https://github.com/DNNDHH/PS5-3.20_Libs/blob/b2a77c09cd71c01f34c790cfbe98c751a13262ad/libSceTEEClient.c) and were cross-checked against the same module in PS5 firmware 13.60. Their signatures and behaviour are unverified; the declarations use the no-parameter unknown-signature convention and throw through `NotImplemented_nid_no_patch`. + +### Additional callable exports + +- [Additional callable exports](../../../core/libs/prx/libSceTEEClient/Export.cpp) - 5 entries present in both version-labelled images are import-resolution declarations only. Neither label independently authenticates retail firmware provenance. These NIDs are absent from the pinned public 3.20 catalogue. Parameter lists, return types and behavior are unverified; parameterless `int` declarations are placeholders, not verified ABI contracts. Every entry throws through `NotImplemented_nid_no_patch`. Unidentified names use literal NID aliases. No runtime functionality is implemented. Identified candidate names match their NIDs in the [public symbol database](https://github.com/zecoxao/sce_symbols/blob/2883963a0a514ba6e77407a08ef4730a65e88254/aerolib.csv) or [supplemental catalog](https://github.com/claimore22/ps5rs/blob/2304be5131221bae0dac24b9767cabffda33f747/data/nids.csv). + +| Name | NID | +| --- | --- | +| `Unknown` | `H9IE7wXy3qY` | +| `Unknown` | `VaBqpbmaWpc` | +| `Unknown` | `Xn5kfzvPht4` | +| `Unknown` | `ZAJdq-IONZ4` | +| `Unknown` | `d-OLk3nvFIA` |