Files
AnyPS5/core/libs/prx/libkernel
LeandroLP23andClaude Opus 5.5 86709434fa test(libkernel): gate the raise-in-system-call hold on the raise sampling the writer
The reader held the pipe for a fixed 100 ms after the main thread flagged
the raise, so a main thread descheduled before sceKernelRaiseException let
the write finish first and the test passed without the system-call path.
The reader now waits until the writer is suspended (NtQueryInformationThread
ThreadSuspendCount), which only the raise does while the write is blocked,
then holds 100 ms.

The handler checked that the write had returned through a flag the writer
sets after fwrite, so a correct delivery between the two failed. It now
checks that the interrupted rip lies in the test's own image.

Two more registrations run the same test with a 200 ms pause before the
raise and with a guest-code spin between fwrite and the flag.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-25 10:10:01 +01:00
..