diff options
author | Robert Mustacchi <rm@joyent.com> | 2011-07-26 00:29:23 +0000 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2011-07-26 00:29:43 +0000 |
commit | 54f86be87be55bc4745fe34fa4c33473ca94736c (patch) | |
tree | 4b61b42342ef1312102214f78d49129a4c0f1a07 /kvm_x86host.h | |
parent | 85cb0449e660806d679c50fabdcba3c8ea7b9fc1 (diff) | |
download | illumos-kvm-54f86be87be55bc4745fe34fa4c33473ca94736c.tar.gz |
HVM-519 Remove asm.h
Diffstat (limited to 'kvm_x86host.h')
-rw-r--r-- | kvm_x86host.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kvm_x86host.h b/kvm_x86host.h index a060096..b52c518 100644 --- a/kvm_x86host.h +++ b/kvm_x86host.h @@ -828,6 +828,17 @@ enum { #define HF_IRET_MASK (1 << 4) /* + * These definitions used to exist in asm.h. However because most of the file + * was unnecessary, they have been moved into here. + */ +#define __ASM_FORM(x) " " #x " " + +#define __ASM_SEL(a,b) __ASM_FORM(b) + +#define __ASM_SIZE(inst) __ASM_SEL(inst##l, inst##q) +#define _ASM_PTR __ASM_SEL(.long, .quad) + +/* * Hardware virtualization extension instructions may fault if a * reboot turns off virtualization while processes are running. * Trap the fault and ignore the instruction if that happens. |