ia64/xen-unstable

changeset 18359:de736eefb6e1

[IA64] add one BUG_ON() to allocate_metaphysical_rr()

add one BUG_ON() to allocate_metaphysical_rr() to make sure
that rid for metaphysical address isn't collided.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Mon Aug 25 19:04:37 2008 +0900 (2008-08-25)
parents 2ec019301ad8
children 8f00ddcd1c47
files xen/arch/ia64/xen/regionreg.c
line diff
     1.1 --- a/xen/arch/ia64/xen/regionreg.c	Thu Aug 21 15:18:05 2008 +0100
     1.2 +++ b/xen/arch/ia64/xen/regionreg.c	Mon Aug 25 19:04:37 2008 +0900
     1.3 @@ -80,6 +80,7 @@ ia64_set_rr (unsigned long rr, unsigned 
     1.4  static unsigned long allocate_metaphysical_rr(struct domain *d, int n)
     1.5  {
     1.6  	ia64_rr rrv;
     1.7 +	BUG_ON(d->arch.starting_mp_rid + n >= d->arch.ending_mp_rid);
     1.8  
     1.9  	rrv.rrval = 0;	// Or else may see reserved bit fault
    1.10  	rrv.rid = d->arch.starting_mp_rid + n;