powerpc/fsl-booke: Don't hard-code size of struct tlbcam
authorTrent Piepho <tpiepho@freescale.com>
Tue, 9 Dec 2008 03:34:55 +0000 (19:34 -0800)
committerKumar Gala <galak@kernel.crashing.org>
Wed, 7 Jan 2009 21:33:06 +0000 (15:33 -0600)
Some assembly code in head_fsl_booke.S hard-coded the size of struct tlbcam
to 20 when it indexed the TLBCAM table.  Anyone changing the size of struct
tlbcam would not know to expect that.

The kernel already has a system to get the size of C structures into
assembly language files, asm-offsets, so let's use it.

The definition of the struct gets moved to a header, so that asm-offsets.c
can include it.

Signed-off-by: Trent Piepho <tpiepho@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>

No differences found