diff options
author | Avi Kivity <avi@redhat.com> | 2010-07-28 19:25:49 +0300 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-07-29 18:30:38 -0300 |
commit | e4484973097c25968083f583a3bb24b89cde8255 (patch) | |
tree | 0624f68ec0243d240fabc7e9a283b76dd8596394 /kvm | |
parent | 7cd64ac0acd42b2a6fcdcf7d665b8b79cb7291e2 (diff) |
test: add cli() and sti() instruction accessors
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'kvm')
-rw-r--r-- | kvm/test/lib/x86/processor.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kvm/test/lib/x86/processor.h b/kvm/test/lib/x86/processor.h index 0376d045a..67d7ca5ac 100644 --- a/kvm/test/lib/x86/processor.h +++ b/kvm/test/lib/x86/processor.h @@ -248,4 +248,14 @@ static inline void pause(void) asm volatile ("pause"); } +static inline void cli(void) +{ + asm volatile ("cli"); +} + +static inline void sti(void) +{ + asm volatile ("sti"); +} + #endif |