MIPS: uasm: Add option to export uasm API.
authorDavid Daney <ddaney@caviumnetworks.com>
Sat, 24 Jul 2010 01:41:43 +0000 (18:41 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 5 Aug 2010 12:26:21 +0000 (13:26 +0100)
commit22b0763a2328434ac68cca884e1b7d350ca61332
tree59635ba7ba3368d40defdebc07c94d61d5941491
parent5b97c3f7ae0ad0eea1eb90d649420a1a180f2bdf
MIPS: uasm: Add option to export uasm API.

A 'select EXPORT_UASM' in Kconfig will cause the uasm to be exported
for use in modules.  When it is exported, all the uasm data and code
cease to be __init and __initdata.

Also daddiu_bug cannot be __cpuinitdata if uasm is exported.  The
cleanest thing is to just make it normal data.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
To: linux-mips@linux-mips.org
To: wim@iguana.be
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/1500/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/Kconfig
arch/mips/include/asm/uasm.h
arch/mips/kernel/cpu-bugs64.c
arch/mips/mm/uasm.c