1. 22 12月, 2008 1 次提交
  2. 31 10月, 2008 1 次提交
  3. 28 10月, 2008 3 次提交
    • P
      sh: Simplify and lock down the ISA tuning. · b2d86a3f
      Paul Mundt 提交于
      The ISA tuning as it is today can not cope with all of the different
      variations that are possible, so all we can do is a best attempt based on
      the CPU family. The DSP and FPU generation are already at odds with each
      other, and the nommu tuning we weren't handling at all.  Additionally,
      for platforms that never had an FPU, the -nofpu variant never existed,
      meaning that we would lose out on family granular tuning completely in
      certain cases.
      
      With tat out of the way, we were also using -up versions, allowing for
      later instructions that branched off of a particular subset of the ISA,
      but are not actually reflected on the hardware being targetted. This
      leads to some confusion, and the possibility of bogus instructions on
      older parts. Kill that off and lock it down to the family being built
      for specifically.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      b2d86a3f
    • P
      sh: sh7785lcr: Select uImage as default image target. · 1a306032
      Paul Mundt 提交于
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      1a306032
    • P
      sh: Fix FPU tuning on toolchains with mismatched multilib targets. · 8a2fd5f3
      Paul Mundt 提交于
      Presently there is very little standing in the way of using an SH-4
      toolchain for building an SH-2 kernel, and vice versa. Binutils itself
      has no limitations whatsoever and supports explicit ISA hinting, which
      we already use with varying degrees of success today.
      
      This leaves GCC as the odd one out, due to a rather dubious policy
      decision by the GCC folks to not include all of the CPU family variants
      in the default list of multilib targets in GCC4. Despite best efforts to
      the contrary, libgcc itself already contains awareness of the various CPU
      types and remains generally usable, allowing it to safely be referenced
      even on a mismatched target (and indeed, explicit ISA tuning by binutils
      keeps us honest in terms of ensuring that we do not link incompatible
      objects in).
      
      In order to support this, a couple of changes had to be made. Firstly,
      the introduction of MAYBE_DECLARE_EXPORT(), which provides a __weak
      extern reference for libgcc resident routines when finer-grained
      -m<cpu-family> based tuning is not supported by the toolchain. This
      fixes up the __sdivsi3_i4i and __udivsi3_i4i references when dealing
      with SH-2 kernels linked with an SH-4 libgcc. Secondly, in case where we
      are unable to find a suitable match for CPU family tuning but still
      have a toolchain that defaults to FP instruction generation, a suitable
      nofpu target must be selected. This is accomplished by selecting the
      first nofpu multilib target supported by the toolchain, which is
      also necessary for selecting the proper libgcc to link against.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      8a2fd5f3
  4. 20 10月, 2008 1 次提交
  5. 12 9月, 2008 1 次提交
  6. 02 8月, 2008 2 次提交
    • A
      sh: fix LIBGCC · 49de935c
      Adrian Bunk 提交于
      Commit f15cbe6f
      (sh: migrate to arch/sh/include/) moved KBUILD_CFLAGS
      (which is used by LIBGCC) below LIBGCC, causing build
      errors like the following:
      
      <--  snip  -->
      
      ...
        LD      .tmp_vmlinux1
      arch/sh/kernel/built-in.o: In function `module_clk_recalc':
      clock-sh4.c:(.text+0x80f0): undefined reference to `__udivsi3_i4i'
      ...
      make[1]: *** [.tmp_vmlinux1] Error 1
      
      <--  snip  -->
      Reported-by: NAdrian Bunk <bunk@kernel.org>
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      49de935c
    • P
      sh: Revert the location change of auto-generated asm/machtypes.h · 4385e12b
      Paul Mundt 提交于
      This ended up causing build breakage on O= builds, as reported by Adrian:
      
      <--  snip  -->
      
      ...
        CC      init/main.o
      In file included from /home/bunk/linux/kernel-2.6/git/linux-2.6/arch/sh/include/asm/irq.h:4,
                       from /home/bunk/linux/kernel-2.6/git/linux-2.6/include/linux/irq.h:23,
                       from /home/bunk/linux/kernel-2.6/git/linux-2.6/arch/sh/include/asm/hardirq.h:5,
                       from /home/bunk/linux/kernel-2.6/git/linux-2.6/include/linux/hardirq.h:7,
                       from /home/bunk/linux/kernel-2.6/git/linux-2.6/include/asm-generic/local.h:5,
                       from /home/bunk/linux/kernel-2.6/git/linux-2.6/arch/sh/include/asm/local.h:4,
                       from /home/bunk/linux/kernel-2.6/git/linux-2.6/include/linux/module.h:19,
                       from /home/bunk/linux/kernel-2.6/git/linux-2.6/init/main.c:13:
      /home/bunk/linux/kernel-2.6/git/linux-2.6/arch/sh/include/asm/machvec.h:15:27:
      error: asm/machtypes.h: No such file or directory
      make[2]: *** [init/main.o] Error 1
      
      <--  snip  -->
      
      So we simply move machtypes.h back to its original place. asm-offsets.h is
      still generated there regardless, until such a time that we find a better place
      to stash auto-generated files.
      Reported-by: NAdrian Bunk <bunk@kernel.org>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      4385e12b
  7. 30 7月, 2008 1 次提交
  8. 29 7月, 2008 6 次提交
  9. 28 7月, 2008 4 次提交
  10. 09 6月, 2008 1 次提交
  11. 08 5月, 2008 1 次提交
  12. 19 4月, 2008 1 次提交
  13. 21 3月, 2008 1 次提交
  14. 06 3月, 2008 1 次提交
    • P
      sh: Fix up SH7710 VoIP-GW build. · e7d7deca
      Paul Mundt 提交于
      The only board-specific bits that existed here were for setting up the
      IRQs, which are now handled by the SH7710 CPU support code instead. As
      there's nothing else to do for setup, kill off the board support code
      and have the defconfig use the generic machvec instead.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      e7d7deca
  15. 14 2月, 2008 1 次提交
    • M
      sh: migor board support · 70f784ec
      Magnus Damm 提交于
      This patch adds basic support for the Migo-R board.
      
      Only simple stuff provided by the cpu specific sh7722 code is in place now,
      like serial console port, timers and usb gadget. There is also partial support
      for the smc91c111 ethernet controller - unfortunately some driver header file
      also needs patching (not included here) to make the driver get IRQ sense
      information from the platform data.
      Signed-off-by: NMagnus Damm <damm@igel.co.jp>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      70f784ec
  16. 28 1月, 2008 14 次提交