https://bugs.kde.org/show_bug.cgi?id=400538
--- Comment #6 from Doug Johnson <dou...@gmail.com> --- Comment on attachment 118834 --> https://bugs.kde.org/attachment.cgi?id=118834 IRETQ Test Case >#include <stdio.h> >#include <stdlib.h> > >void return_from_iret() { > printf("Hello From IRETQ\n"); > exit(0); >} > > >int main() { > asm ( > "pushfq\n" > "movq 0(%%rsp), %%rbx\n" //rbx contains eflags > "popfq\n" > "subq $40, %%rsp\n" //Allocate our stack area for iret > "movq %%ss, %%rax\n" > "movq %%rax, 32(%%rsp)\n" //SS > "movq %%rsp, %%rax\n" > "movq %%rax, 24(%%rsp)\n" //SP > "movq %%rbx, 16(%%rsp)\n" //EFLAGS > "movq %%cs, %%rax\n" > "movq %%rax, 8(%%rsp)\n" //CS > "movq %0, 0(%%rsp)\n" //RIP > "iretq\n" > ".byte 0xDE, 0xAD, 0xBE, 0xEF\n" > : //no outputs > : "r" (return_from_iret) > : "rax", "rbx" //clobber list > ); > return 1; >} -- You are receiving this mail because: You are watching all bug changes.