Add BSF and BSR instruction wrappers
All checks were successful
Builds / ExectOS (amd64, debug) (push) Successful in 55s
Builds / ExectOS (amd64, release) (push) Successful in 52s
Builds / ExectOS (i686, debug) (push) Successful in 42s
Builds / ExectOS (i686, release) (push) Successful in 40s

This commit is contained in:
2026-06-01 00:36:52 +02:00
parent 7d8b33390a
commit 0aabc206a1
4 changed files with 108 additions and 0 deletions

View File

@@ -42,6 +42,10 @@ namespace AR
STATIC XTCDECL ULONGLONG ReadTimeStampCounter(VOID);
STATIC XTCDECL ULONGLONG ReadTimeStampCounterProcessor(OUT PULONG TscAux);
STATIC XTCDECL VOID ReadWriteBarrier(VOID);
STATIC XTCDECL BOOLEAN ScanForwardBit(OUT PULONG Index,
IN ULONG Mask);
STATIC XTCDECL BOOLEAN ScanReverseBit(OUT PULONG Index,
IN ULONG Mask);
STATIC XTCDECL VOID SetInterruptFlag(VOID);
STATIC XTCDECL VOID StoreGlobalDescriptorTable(OUT PVOID Destination);
STATIC XTCDECL VOID StoreInterruptDescriptorTable(OUT PVOID Destination);

View File

@@ -41,6 +41,10 @@ namespace AR
STATIC XTCDECL ULONGLONG ReadTimeStampCounter(VOID);
STATIC XTCDECL ULONGLONG ReadTimeStampCounterProcessor(OUT PULONG TscAux);
STATIC XTCDECL VOID ReadWriteBarrier(VOID);
STATIC XTCDECL BOOLEAN ScanForwardBit(OUT PULONG Index,
IN ULONG Mask);
STATIC XTCDECL BOOLEAN ScanReverseBit(OUT PULONG Index,
IN ULONG Mask);
STATIC XTCDECL VOID SetInterruptFlag(VOID);
STATIC XTCDECL VOID StoreGlobalDescriptorTable(OUT PVOID Destination);
STATIC XTCDECL VOID StoreInterruptDescriptorTable(OUT PVOID Destination);