1. 03 7月, 2008 3 次提交
    • K
      powerpc: Fixup lwsync at runtime · 2d1b2027
      Kumar Gala 提交于
      To allow for a single kernel image on e500 v1/v2/mc we need to fixup lwsync
      at runtime.  On e500v1/v2 lwsync causes an illop so we need to patch up
      the code.  We default to 'sync' since that is always safe and if the cpu
      is capable we will replace 'sync' with 'lwsync'.
      
      We introduce CPU_FTR_LWSYNC as a way to determine at runtime if this is
      needed.  This flag could be moved elsewhere since we dont really use it
      for the normal CPU_FTR purpose.
      
      Finally we only store the relative offset in the fixup section to keep it
      as small as possible rather than using a full fixup_entry.
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      2d1b2027
    • K
      powerpc: Fix building of feature-fixup tests on ppc32 · 5888da18
      Kumar Gala 提交于
      We need to use PPC_LCMPI otherwise we get compile errors like:
      
      arch/powerpc/lib/feature-fixups-test.S: Assembler messages:
      arch/powerpc/lib/feature-fixups-test.S:142: Error: Unrecognized opcode: `cmpdi'
      arch/powerpc/lib/feature-fixups-test.S:149: Error: Unrecognized opcode: `cmpdi'
      arch/powerpc/lib/feature-fixups-test.S:164: Error: Unrecognized opcode: `cmpdi'
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      5888da18
    • T
      powerpc: Fix building of arch/powerpc/mm/mem.o when MEMORY_HOTPLUG=y and SPARSEMEM=n · db7f37de
      Tony Breeds 提交于
      Currently the kernel fails to build with the above config options with:
        CC      arch/powerpc/mm/mem.o
      arch/powerpc/mm/mem.c: In function 'arch_add_memory':
      arch/powerpc/mm/mem.c:130: error: implicit declaration of function 'create_section_mapping'
      
      This explicitly includes asm/sparsemem.h in arch/powerpc/mm/mem.c and
      moves the guards in include/asm-powerpc/sparsemem.h to protect the
      SPARSEMEM specific portions only.
      Signed-off-by: NTony Breeds <tony@bakeyournoodle.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      db7f37de
  2. 01 7月, 2008 32 次提交
  3. 30 6月, 2008 5 次提交