Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143247
b: refs/heads/master
c: 2b2a733
h: refs/heads/master
i:
  143245: de2d9a5
  143243: 29fd308
  143239: a08769b
  143231: 6f8a5fd
v: v3
  • Loading branch information
Jeremy Fitzhardinge committed Apr 8, 2009
1 parent ee1b494 commit 62512f9
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: bc6081ff98eec627919e0c68415e46a78fe51dc4
refs/heads/master: 2b2a733447b2bce5fef053df38412e4c0634ec22
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 62512f9

Please sign in to comment.