KTL
KTL copied to clipboard
Kernel Template Library: STL-style containers and tools for Windows kernel space programming
Error "warning treated as error" when trying to build Release version. Warning: Unreachable code at modules\fmt\core.hpp lines 624, 2212 `cmake --build . --config=Release` CMake version 3.22.2
According to ["Guidelines for Writing DPC Routines"](https://learn.microsoft.com/en-us/windows-hardware/drivers/kernel/guidelines-for-writing-dpc-routines), DPC routines that call the [KeStallExecutionProcessor](https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/ntifs/nf-ntifs-kestallexecutionprocessor) routine to delay execution must not specify delays of more than 100 microseconds.
[`KUSER_SHARED_DATA->SystemTime`](https://github.com/DymOK93/KTL/blob/master/runtime/src/chrono_impl.cpp#L49) is 4-byte aligned
See [the following table to replace the calls inside the DPC routine that acquire and release spin locks](https://docs.microsoft.com/en-us/windows-hardware/drivers/kernel/converting-an-ordinary-dpc-to-a-threaded-dpc)
See [`ktl::crt::exc_engine::x64::gs_handler()`](https://github.com/DymOK93/KTL/blob/master/runtime/src/exc_engine/gs_handler.cpp#L18)