• Ralf Baechle's avatar
    MIPS: IP27: Fix build error with CONFIG_MAPPED_KERNEL · 28963b1e
    Ralf Baechle authored
    Some of the TLB bit definitions in <asm/pgtable-bits.h> have become rather
    complex and are no longer usable from assembler resulting in an
    explosion like this:
    
      AS      arch/mips/kernel/head.o
    arch/mips/kernel/head.S: Assembler messages:
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: Illegal operands `li $12,(((1<<((cpu_has_rixi?(cpu_has_rixi?((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))+1:((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1))))+1:(cpu_has_rixi?((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))+1:((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))))+1))|(1<<(((cpu_has_rixi?(cpu_has_rixi?((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))+1:((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1))))+1:(cpu_has_rixi?((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))+1:((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))))+1)+1))|(5<<(((((cpu_has_rixi?(cpu_has_rixi?((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))+1:((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1))))+1:(cpu_has_rixi?((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))+1:((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))))+1)+1)+1)+1)))>>6)'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: missing ')'
    arch/mips/kernel/head.S:147: Error: Illegal operands `li $12,(((1<<((cpu_has_rixi?(cpu_has_rixi?((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))+1:((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1))))+1:(cpu_has_rixi?((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))+1:((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))))+1))|(1<<(((cpu_has_rixi?(cpu_has_rixi?((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))+1:((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1))))+1:(cpu_has_rixi?((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))+1:((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))))+1)+1))|(1<<((((cpu_has_rixi?(cpu_has_rixi?((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))+1:((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1))))+1:(cpu_has_rixi?((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))+1:((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))))+1)+1)+1))|(5<<(((((cpu_has_rixi?(cpu_has_rixi?((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))+1:((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1))))+1:(cpu_has_rixi?((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))+1:((((((cpu_has_rixi?(0):(0)+1)+1)+1)+1)))))+1)+1)+1)+1)))>>6)'
    make[2]: *** [arch/mips/kernel/head.o] Error 1
    
    Since now MAPPED_KERNEL_SETUP_TLB is in platform-specific code it's safe
    to hardcode the TLB bits there.
    Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
    28963b1e
kernel-entry-init.h 2.71 KB