powerpc: Add self-tests of the feature fixup code
authorMichael Ellerman <michael@ellerman.id.au>
Tue, 24 Jun 2008 01:33:03 +0000 (11:33 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 1 Jul 2008 01:28:30 +0000 (11:28 +1000)
commit362e7701fd183d990e0863883461edef61392710
treea39d5466e2a6b68dd16187da8fad27ea50fb9851
parent9b1a735de64cc975c31a1642ec55e082ddbdfeaf
powerpc: Add self-tests of the feature fixup code

This commit adds tests of the feature fixup code, they are run during
boot if CONFIG_FTR_FIXUP_SELFTEST=y. Some of the tests manually invoke
the patching routines to check their behaviour, and others use the
macros and so are patched during the normal patching done during boot.

Because we have two sets of macros with different names, we use a macro
to generate the test of the macros, very niiiice.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/Kconfig.debug
arch/powerpc/lib/Makefile
arch/powerpc/lib/feature-fixups-test.S [new file with mode: 0644]
arch/powerpc/lib/feature-fixups.c