Re: recent fix for pgd_addr_end

From: Peter Chubb <peter_at_chubb.wattle.id.au>
Date: 2005-03-18 17:26:12
>>>>> "Tony" == Tony Luck <Luck> writes:

Tony> Here's the version that handles region 5 correctly too.  -Tony

Is it always OK to evaluate addr and end more than once?

Or would something like
({ unsigned long __boundary = ((addr) + PGDIR_SIZE) & PGD_MASK;
   unsigend long __region  = __boundary >> 61;
   if (region ==5)
      ...
   else
     ...
})
be better?
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri Mar 18 01:28:05 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:37 EST