Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145832
b: refs/heads/master
c: 6d02c42
h: refs/heads/master
v: v3
  • Loading branch information
Jeremy Fitzhardinge committed Mar 30, 2009
1 parent 8b66fec commit 07a5e84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 707ebbc81c61eb480d8a51ca61e355e240df1d32
refs/heads/master: 6d02c42698f99eccb290ac53d4f10ca883b9f90c
6 changes: 3 additions & 3 deletions trunk/arch/x86/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,16 +428,16 @@ 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;
info->address = gate_offset(*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;
}
Expand Down

0 comments on commit 07a5e84

Please sign in to comment.