Mailing List Archive

BUG_ON test for xmalloc alignment should not be excluded
# HG changeset patch
# User kaf24@firebug.cl.cam.ac.uk
# Node ID 6c252ba7a6396888723ba4a84755646e564b6cbb
# Parent be41d7631c2ffebb3c35ce29a6b7c4ae01161ea1
BUG_ON test for xmalloc alignment should not be excluded
for ia64. SMP_CACHE_BYTES should be increased for uniproc
ia64 systems (how many uniproc ia64 boxes are there?!).

Signed-off-by: Keir Fraser <keir@xensource.com>

diff -r be41d7631c2f -r 6c252ba7a639 xen/common/xmalloc.c
--- a/xen/common/xmalloc.c Wed Nov 23 11:11:05 2005
+++ b/xen/common/xmalloc.c Wed Nov 23 11:22:58 2005
@@ -111,9 +111,7 @@
unsigned long flags;

/* We currently always return cacheline aligned. */
-#ifndef __ia64__
BUG_ON(align > SMP_CACHE_BYTES);
-#endif

/* Add room for header, pad to align next header. */
size += sizeof(struct xmalloc_hdr);

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