From 62512f9f8e246c0f23bbbc464f3bb1db0afab4a8 Mon Sep 17 00:00:00 2001 From: Jeremy Fitzhardinge Date: Sun, 29 Mar 2009 22:57:15 -0700 Subject: [PATCH] --- yaml --- r: 143247 b: refs/heads/master c: 2b2a733447b2bce5fef053df38412e4c0634ec22 h: refs/heads/master i: 143245: de2d9a5d9eea30d1911e281952e230be7bf728e4 143243: 29fd308f00c51394278406aec9cf778c90955294 143239: a08769b614e0d37101c7a70ca8c4540a54237f73 143231: 6f8a5fd88abf5270b3da7c6c91ffe248a0049bdb v: v3 --- [refs] | 2 +- trunk/arch/x86/xen/enlighten.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index b53426226166..233325c4680c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: bc6081ff98eec627919e0c68415e46a78fe51dc4 +refs/heads/master: 2b2a733447b2bce5fef053df38412e4c0634ec22 diff --git a/trunk/arch/x86/xen/enlighten.c b/trunk/arch/x86/xen/enlighten.c index f7d0fd7ff8e1..f09e8c36ee80 100644 --- a/trunk/arch/x86/xen/enlighten.c +++ b/trunk/arch/x86/xen/enlighten.c @@ -428,7 +428,7 @@ static void xen_write_ldt_entry(struct desc_struct *dt, int entrynum, static int cvt_gate_to_trap(int vector, const gate_desc *val, struct trap_info *info) { - if (val->type != 0xf && val->type != 0xe) + if (val->type != GATE_TRAP && val->type != GATE_INTERRUPT) return 0; info->vector = vector; @@ -436,8 +436,8 @@ static int cvt_gate_to_trap(int vector, const gate_desc *val, info->cs = gate_segment(*val); info->flags = val->dpl; /* interrupt gates clear IF */ - if (val->type == 0xe) - info->flags |= 4; + if (val->type == GATE_INTERRUPT) + info->flags |= 1 << 2; return 1; }