Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151451
b: refs/heads/master
c: 6d9609c
h: refs/heads/master
i:
  151449: 2abe333
  151447: 2d9a53e
v: v3
  • Loading branch information
Pekka Enberg authored and Vegard Nossum committed Jun 15, 2009
1 parent b47ed2c commit 6945db0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: 0c33cacd8672ef034ba414510f71ea2bd9370111
refs/heads/master: 6d9609c13250631c1d0c55a29a64d5687fd91293
9 changes: 7 additions & 2 deletions trunk/arch/x86/mm/kmemcheck/opcode.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,17 @@ static bool opcode_is_prefix(uint8_t b)
|| b == 0x67;
}

#ifdef CONFIG_X86_64
static bool opcode_is_rex_prefix(uint8_t b)
{
return (b & 0xf0) == 0x40;
}
#else
static bool opcode_is_rex_prefix(uint8_t b)
{
return false;
}
#endif

#define REX_W (1 << 3)

Expand All @@ -40,7 +47,6 @@ void kmemcheck_opcode_decode(const uint8_t *op, unsigned int *size)
operand_size_override = 2;
}

#ifdef CONFIG_X86_64
/* REX prefix */
if (opcode_is_rex_prefix(*op)) {
uint8_t rex = *op;
Expand Down Expand Up @@ -72,7 +78,6 @@ void kmemcheck_opcode_decode(const uint8_t *op, unsigned int *size)
return;
}
}
#endif

/* escape opcode */
if (*op == 0x0f) {
Expand Down

0 comments on commit 6945db0

Please sign in to comment.