WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [IA64] Fix thash_init()

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] Fix thash_init()
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 23 Mar 2007 05:30:37 -0700
Delivery-date: Fri, 23 Mar 2007 05:30:55 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User awilliam@xxxxxxxxxxxx
# Date 1174403769 21600
# Node ID e014b94333aa5ff5420c7a533f12ccd028139fa0
# Parent  1584263f9fc50d16cfc5e060e996eb8025de3d31
[IA64] Fix thash_init()

Lost initializating page_flag of the last member in cch.

Signed-off-by: Zhang Xin <xing.z.zhang@xxxxxxxxx>
---
 xen/arch/ia64/vmx/vtlb.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff -r 1584263f9fc5 -r e014b94333aa xen/arch/ia64/vmx/vtlb.c
--- a/xen/arch/ia64/vmx/vtlb.c  Thu Mar 15 09:04:23 2007 -0600
+++ b/xen/arch/ia64/vmx/vtlb.c  Tue Mar 20 09:16:09 2007 -0600
@@ -642,7 +642,7 @@ void thash_init(thash_cb_t *hcb, u64 sz)
     }while(num);
     
     hcb->cch_freelist = p = hcb->cch_buf;
-    num = (hcb->cch_sz/sizeof(thash_data_t))-1;
+    num = hcb->cch_sz / sizeof(thash_data_t);
     do{
         p->page_flags = 0;
         p->itir = 0;
@@ -650,6 +650,6 @@ void thash_init(thash_cb_t *hcb, u64 sz)
         p++;
         num--;
     }while(num);
-    p->itir = 0;
-    p->next = NULL;
-}
+
+    (p - 1)->next = NULL;
+}

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64] Fix thash_init(), Xen patchbot-unstable <=