Skip to content

ntdll: Implement NtGetCurrentProcessorNumber for macOS on x86_64.

Taken and slightly adapted from https://github.com/apple-oss-distributions/xnu/blob/8d741a5de7ff4191bf97d57b9f54c2f6d4a15585/libsyscall/os/tsd.h#L70 .

The arm and arm64 implementations are not stable across kernel releases (yet). This works as expected under Rosetta 2 as well.

Merge request reports

Loading