mirror of
https://github.com/HyperDbg/HyperDbg.git
synced 2026-08-20 05:54:41 +00:00
Route Spinlock.c's three MSVC intrinsics through the platform
intrinsics layer instead of the Windows builtins:
_mm_pause -> CpuPause (already existed)
_interlockedbittestandset -> CpuInterlockedBitTestAndSet (new)
InterlockedCompareExchange-> CpuInterlockedCompareExchange (new, 32-bit)
Add the two new Cpu* wrappers to the kernel PlatformIntrinsics
{.h,.c} with win + linux arms (Linux uses __atomic_* builtins,
mirroring the existing 64-bit CAS), keeping the Cpu* wrappers the
single intrinsic boundary.
|
||
|---|---|---|
| .. | ||
| command-parser | ||
| hwdbg-tests/scripts | ||
| script-engine-test@3fbd59540f | ||