mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-23 00:53:02 -05:00
libkernel exported scePthreadAttrSetschedpolicy and scePthreadAttrSetinheritsched but not the matching getters, scePthreadAttrGetschedpolicy (NID NMyIQ9WgWbU) and scePthreadAttrGetinheritsched (NID lpMP8HhkBbg), so a title that imports either one stopped at startup on the unresolved import. Dragon Ball Xenoverse 2 (PPSA08587) imports both. Implement them as FreeBSD 11.4 libthr implements pthread_attr_getschedpolicy and pthread_attr_getinheritsched (lib/libthr/thread/thr_attr.c): a null or uninitialized attribute returns EINVAL (0x80020016), as does a null output of scePthreadAttrGetschedpolicy; otherwise the attribute's policy or inheritance is stored and 0 is returned. libthr writes through a null output of the inheritance getter unchecked, so that case throws, as pthread_attr_getinheritsched and scePthreadAttrGetsolosched do. Neither getter was measured on a console. The scePthreadAttr entry in docs/dev/debt/libkernel.md, which describes the calls measured on a PS5, now says so and records the throw. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>