]> git.sur5r.net Git - u-boot/commit
powerpc/85xx: fix definition of MAS register macros
authorTimur Tabi <timur@freescale.com>
Mon, 31 Oct 2011 18:30:41 +0000 (13:30 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 8 Nov 2011 14:30:57 +0000 (08:30 -0600)
commit5c4a3d431e57c6eb9a7663905f47724fbf1f04dd
tree6bad7600a9f759bd251ed48523bb226c39469c6b
parentd37012289df80f3907a54bb01ffc38a394fa0766
powerpc/85xx: fix definition of MAS register macros

Some of the MAS register macros do not protect the parameter with
parentheses, which could cause wrong values if the parameter includes
operators.

Also fix the definition of TSIZE_TO_BYTES() so that it actually uses
the parameter.  This hasn't caused any problems to date because the
parameter was always been 'tsize'.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/include/asm/mmu.h