]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] powerpc: Better pmd_bad() and pud_bad() checks
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 6 Mar 2006 01:51:29 +0000 (12:51 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 17 Mar 2006 02:20:40 +0000 (13:20 +1100)
commit1bc4a7b681283d8a9261667b9ea09583392c35af
treea8e8cf9dd90f6778fa29879fee40d04a55cd9b4f
parente76d20067bfdc5bc588fa76804eede9e5499be92
[PATCH] powerpc: Better pmd_bad() and pud_bad() checks

At present, the powerpc pmd_bad() and pud_bad() macros return false
unless the given pmd or pud is zero.  This patch makes these tests
more thorough, checking if the given pmd or pud looks like a plausible
pte page or pmd page pointer respectively.  This can result in helpful
error messages when messing with the pagetable code.

Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/pgtable.h