projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74ef740
)
KVM: ia64: Remove some macro definitions in asm-offsets.c.
author
Xiantao Zhang
<xiantao.zhang@intel.com>
Fri, 24 Oct 2008 03:47:57 +0000
(11:47 +0800)
committer
Avi Kivity
<avi@redhat.com>
Wed, 31 Dec 2008 14:52:25 +0000
(16:52 +0200)
Use kernel's corresponding macro instead.
Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/ia64/kvm/asm-offsets.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/ia64/kvm/asm-offsets.c
b/arch/ia64/kvm/asm-offsets.c
index 4e3dc13a619c6782f94337a4a2873a4a208058c1..0c3564a7a033a25b2df4996c3b7f14169dcc8064 100644
(file)
--- a/
arch/ia64/kvm/asm-offsets.c
+++ b/
arch/ia64/kvm/asm-offsets.c
@@
-24,19
+24,10
@@
#include <linux/autoconf.h>
#include <linux/kvm_host.h>
+#include <linux/kbuild.h>
#include "vcpu.h"
-#define task_struct kvm_vcpu
-
-#define DEFINE(sym, val) \
- asm volatile("\n->" #sym " (%0) " #val : : "i" (val))
-
-#define BLANK() asm volatile("\n->" : :)
-
-#define OFFSET(_sym, _str, _mem) \
- DEFINE(_sym, offsetof(_str, _mem));
-
void foo(void)
{
DEFINE(VMM_TASK_SIZE, sizeof(struct kvm_vcpu));
This page took
0.025057 seconds
and
5
git commands to generate.