On Wed Mar 19 22:07:13 2025 +0000, Brendan Shanks wrote:
We could, but there's no guarantee of stability for the syscall number. The syscall number hasn't changed since introduction (in 2016's 10.12) though, so it's probably safe to depend on.
We can probably check that the `_thread_set_tsd_base` machine code matches the expected byte sequence. We can either dynamically extract the syscall number, or hard-code it and check against the system value.