xen: clean up gate trap/interrupt constants

Use GATE_INTERRUPT/TRAP rather than 0xe/f.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>

+3 -3
+3 -3
arch/x86/xen/enlighten.c
··· 428 static int cvt_gate_to_trap(int vector, const gate_desc *val, 429 struct trap_info *info) 430 { 431 - if (val->type != 0xf && val->type != 0xe) 432 return 0; 433 434 info->vector = vector; ··· 436 info->cs = gate_segment(*val); 437 info->flags = val->dpl; 438 /* interrupt gates clear IF */ 439 - if (val->type == 0xe) 440 - info->flags |= 4; 441 442 return 1; 443 }
··· 428 static int cvt_gate_to_trap(int vector, const gate_desc *val, 429 struct trap_info *info) 430 { 431 + if (val->type != GATE_TRAP && val->type != GATE_INTERRUPT) 432 return 0; 433 434 info->vector = vector; ··· 436 info->cs = gate_segment(*val); 437 info->flags = val->dpl; 438 /* interrupt gates clear IF */ 439 + if (val->type == GATE_INTERRUPT) 440 + info->flags |= 1 << 2; 441 442 return 1; 443 }