How to enable AVX in a UEFI application?
Posted: Sun Feb 04, 2018 9:56 pm
I have a simple working UEFI application except avx instructions don't work. Host supports AVX and I'm using the latest version of virtualbox which supports avx and the following works (doesn't hang)
testmem is defined elsewhere as
However the following causes the program to hang up, and not proceed.
I have tried enabling AVX with
But it doesn't help.
What am I missing?
Code: Select all
movdqa xmm0, dqword[testmem]
Code: Select all
align 32
testmem: rb 128
Code: Select all
vmovdqa ymm0, qqword[testmem]
Code: Select all
mov rcx, 0
xgetbv
or rax, 0007h
xsetbv
What am I missing?