Commit graph

6 commits

Author SHA1 Message Date
Max Raulea
4dc132937f Port components/Spinlock.c to Linux kernel module
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.
2026-08-14 11:35:21 +02:00
maxraulea
6c97d86610 Hopefully fix build errors V2 2026-06-10 16:29:35 +02:00
sina
af3b3e2f71 fix compiling error for user and kernel intrinsics in Linux 2026-05-08 18:58:20 +02:00
sina
9bf3916909 add user level modifications for intrinsics support in mock 2026-05-06 00:50:29 +02:00
sina
ef1a9cd1f7 add linux implementation of intrinsics functions 2026-05-05 23:59:31 +02:00
sina
de0c56b466 create platform independent intrinsics functions 2026-05-05 21:25:20 +02:00