direct-io.hg

changeset 12924:2bf4257944f4

[XEN][POWERPC] oops on debug build break
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Sun Oct 01 20:40:44 2006 -0400 (2006-10-01)
parents 4ca8abbd89c8
children 6ff313c841db
files xen/arch/powerpc/papr/xlate.c
line diff
     1.1 --- a/xen/arch/powerpc/papr/xlate.c	Sun Oct 01 08:38:38 2006 -0400
     1.2 +++ b/xen/arch/powerpc/papr/xlate.c	Sun Oct 01 20:40:44 2006 -0400
     1.3 @@ -378,7 +378,6 @@ static void h_protect(struct cpu_user_re
     1.4  
     1.5  static void h_clear_ref(struct cpu_user_regs *regs)
     1.6  {
     1.7 -    ulong flags = regs->gprs[4];
     1.8      ulong ptex = regs->gprs[5];
     1.9      struct vcpu *v = get_current();
    1.10      struct domain *d = v->domain;
    1.11 @@ -387,13 +386,13 @@ static void h_clear_ref(struct cpu_user_
    1.12      union pte lpte;
    1.13  
    1.14      DBG_LOW("%s: flags: 0x%lx ptex: 0x%lx\n", __func__,
    1.15 -            flags, ptex);
    1.16 +            regs->gprs[4], ptex);
    1.17  
    1.18  #ifdef DEBUG
    1.19 -    if (flags != 0) {
    1.20 +    if (regs->gprs[4] != 0) {
    1.21          DBG("WARNING: %s: "
    1.22              "flags are undefined and should be 0: 0x%lx\n",
    1.23 -            __func__, flags);
    1.24 +            __func__, regs->gprs[4]);
    1.25      }
    1.26  #endif
    1.27  
    1.28 @@ -421,7 +420,6 @@ static void h_clear_ref(struct cpu_user_
    1.29  
    1.30  static void h_clear_mod(struct cpu_user_regs *regs)
    1.31  {
    1.32 -    ulong flags = regs->gprs[4];
    1.33      ulong ptex = regs->gprs[5];
    1.34      struct vcpu *v = get_current();
    1.35      struct domain *d = v->domain;
    1.36 @@ -430,13 +428,13 @@ static void h_clear_mod(struct cpu_user_
    1.37      union pte lpte;
    1.38  
    1.39      DBG_LOW("%s: flags: 0x%lx ptex: 0x%lx\n", __func__,
    1.40 -           flags, ptex);
    1.41 +          regs->gprs[4], ptex);
    1.42  
    1.43  #ifdef DEBUG
    1.44 -    if (flags != 0) {
    1.45 +    if (regs->gprs[4] != 0) {
    1.46          DBG("WARNING: %s: "
    1.47              "flags are undefined and should be 0: 0x%lx\n",
    1.48 -            __func__, flags);
    1.49 +            __func__, regs->gprs[4]);
    1.50      }
    1.51  #endif
    1.52