I'm trying to run "invd" instruction on SMP system. I'm on Linux. I have a kernel module where I'm trying to run this "invd" instruction like the following,
asm ("wbinvd"); asm ("invd");
However, upon running the instruction I'm getting
general protection fault: 0000 [#1] SMP PTI
I have also boot my kernel with no SMP support but the same error persists. This makes me think that maybe there are some other configurations that I need to setup before running this instruction. I was wondering if I can get some help regarding this, like what is the ideal setup for running "indv"