hkj code example
Example 1: hkj
@echo off
setlocal enabledelayedexpansion
set x=4
set n=1
set /a result=n
for /l %%a in (1,1,16) do (
if "!result:~0,1!"=="1" set result=!result:16=10!
start /b /wait /affinity 0x!result! "" "C:\Program Files\Debugging Tools for Windows (x64)\kd.exe" -kl -c "wrmsr 0xC0011022 0x510000; wrmsr 0xC001102b 0x1808cc16; wrmsr 0xC0011020 0; wrmsr 0xC0011021 0x40; q"
echo MSR registers for core 0x!result! were applied
set /a result*=x
)
pause
Example 2: hkj
erlang:prepare_loading(Module, Code) -> LoaderState
erlang:finish_loading([LoaderState])