fix for AMD

This commit is contained in:
Andreas Abel
2019-03-13 23:04:53 +01:00
parent fe6cc1c675
commit b04bd228af

View File

@@ -937,6 +937,7 @@ void measurement_FF_template_AMD() {
"lahf \n"
"seto al \n"
"push rax \n"
"push rcx \n"
"push rdx \n"
"push r15 \n"
"mov r15, "STRINGIFY(MAGIC_BYTES_PFC)" \n"
@@ -957,6 +958,7 @@ void measurement_FF_template_AMD() {
"lfence \n"
"pop r15; lfence \n"
"pop rdx; lfence \n"
"pop rcx; lfence \n"
"pop rax; lfence \n"
"cmp al, -127; lfence \n"
"sahf; lfence \n"