aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/enlighten.c
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2009-03-30 01:57:15 -0400
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2009-03-30 12:25:36 -0400
commit6d02c42698f99eccb290ac53d4f10ca883b9f90c (patch)
tree0bfe27688a397b311e93dd430a23557be9fb9b69 /arch/x86/xen/enlighten.c
parent707ebbc81c61eb480d8a51ca61e355e240df1d32 (diff)
xen: clean up gate trap/interrupt constants
Use GATE_INTERRUPT/TRAP rather than 0xe/f. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'arch/x86/xen/enlighten.c')
-rw-r--r--arch/x86/xen/enlighten.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index 80f4c534349..12a3159333b 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -428,7 +428,7 @@ static void xen_write_ldt_entry(struct desc_struct *dt, int entrynum,
428static int cvt_gate_to_trap(int vector, const gate_desc *val, 428static int cvt_gate_to_trap(int vector, const gate_desc *val,
429 struct trap_info *info) 429 struct trap_info *info)
430{ 430{
431 if (val->type != 0xf && val->type != 0xe) 431 if (val->type != GATE_TRAP && val->type != GATE_INTERRUPT)
432 return 0; 432 return 0;
433 433
434 info->vector = vector; 434 info->vector = vector;
@@ -436,8 +436,8 @@ static int cvt_gate_to_trap(int vector, const gate_desc *val,
436 info->cs = gate_segment(*val); 436 info->cs = gate_segment(*val);
437 info->flags = val->dpl; 437 info->flags = val->dpl;
438 /* interrupt gates clear IF */ 438 /* interrupt gates clear IF */
439 if (val->type == 0xe) 439 if (val->type == GATE_INTERRUPT)
440 info->flags |= 4; 440 info->flags |= 1 << 2;
441 441
442 return 1; 442 return 1;
443} 443}