summaryrefslogtreecommitdiffstats
path: root/drivers/lguest
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2007-10-25 06:09:53 +0200
committerRusty Russell <rusty@rustcorp.com.au>2007-10-25 06:09:53 +0200
commit25c47bb35355c1e1b2ae325b49441b2c8b201ece (patch)
treeb716ffc014c32fa5f7ba391ad44ee330bdaf72b2 /drivers/lguest
parentlguest: example launcher header cleanup. (diff)
downloadlinux-25c47bb35355c1e1b2ae325b49441b2c8b201ece.tar.xz
linux-25c47bb35355c1e1b2ae325b49441b2c8b201ece.zip
lguest: use defines from x86 headers instead of magic numbers
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/lguest')
-rw-r--r--drivers/lguest/x86/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/lguest/x86/core.c b/drivers/lguest/x86/core.c
index 9eed12d5a395..09d9207420dc 100644
--- a/drivers/lguest/x86/core.c
+++ b/drivers/lguest/x86/core.c
@@ -562,7 +562,7 @@ void lguest_arch_setup_regs(struct lguest *lg, unsigned long start)
* is supposed to always be "1". Bit 9 (0x200) controls whether
* interrupts are enabled. We always leave interrupts enabled while
* running the Guest. */
- regs->eflags = 0x202;
+ regs->eflags = X86_EFLAGS_IF | 0x2;
/* The "Extended Instruction Pointer" register says where the Guest is
* running. */