lkml.org 
[lkml]   [2014]   [Sep]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] x86 : Ensure X86_FLAGS_NT is cleared on syscall entry
On 09/25/2014 04:00 PM, Chuck Ebbert wrote:
> #include <stdio.h>
> #include <unistd.h>
>
> int main()
> {
> asm volatile("pushfq \n\t" \
> "pop %rax \n\t" \
> "or $0x4000,%rax \n\t" \
> "push %rax \n\t" \
> "popfq \n\t");

You're missing clobbers here. But fixing that has no effect.

> sleep(1);
>
> return 0;
> }



\
 
 \ /
  Last update: 2014-09-29 20:01    [W:0.115 / U:0.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site