aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/debugger.h
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-03-08 15:02:43 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-03-08 15:02:43 +0100
commit510fced78b2df0c174000891c993f41b37529e33 (patch)
tree5aa950792ca235efdf7613b0275d7a8587900cd8 /xen/include/asm-x86/debugger.h
parent3d4188af3d1065572017a7287456d163d8e103d3 (diff)
downloadxen-510fced78b2df0c174000891c993f41b37529e33.tar.gz
xen-510fced78b2df0c174000891c993f41b37529e33.tar.bz2
xen-510fced78b2df0c174000891c993f41b37529e33.zip
Lower-casify some macros, and rename kernel_mode() to guest_kernel_mode().
Fix the macro so that it evaluates false if the given register context is not a valid guest context. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/asm-x86/debugger.h')
-rw-r--r--xen/include/asm-x86/debugger.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/include/asm-x86/debugger.h b/xen/include/asm-x86/debugger.h
index d11cc85366..3e5debebd8 100644
--- a/xen/include/asm-x86/debugger.h
+++ b/xen/include/asm-x86/debugger.h
@@ -88,7 +88,7 @@ static inline int debugger_trap_entry(
{
struct vcpu *v = current;
- if ( KERNEL_MODE(v, regs) &&
+ if ( guest_kernel_mode(v, regs) &&
test_bit(_DOMF_debugging, &v->domain->domain_flags) &&
((vector == TRAP_int3) || (vector == TRAP_debug)) )
{