1. 13 11月, 2017 1 次提交
    • M
      sh: select KBUILD_DEFCONFIG depending on ARCH · 859fd586
      Masahiro Yamada 提交于
      You can not select KBUILD_DEFCONFIG depending on any CONFIG option
      because include/config/auto.conf is not included when building config
      targets.  So, CONFIG_SUPERH32 is never set during the configuration,
      then cayman_defconfig is always chosen.
      
      This commit provides a sensible way to choose shx3/cayman_defconfig.
      
      arch/sh/Kconfig sets either SUPERH32 or SUPERH64 depending on ARCH
      environment, like follows:
      
        config SUPERH32
                def_bool ARCH = "sh"
      
                ...
      
        config SUPERH64
                def_bool ARCH = "sh64"
      
      It should make sense to choose the default defconfig by ARCH,
      like arch/sparc/Makefile.
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      859fd586
  2. 20 3月, 2017 1 次提交
  3. 14 10月, 2016 1 次提交
  4. 05 8月, 2016 1 次提交
    • R
      sh: add support for J-Core J2 processor · 5a846aba
      Rich Felker 提交于
      At the CPU/ISA level, the J2 is compatible with SH-2, and thus the
      changes to add J2 support build on existing SH-2 support. However, J2
      does not duplicate the memory-mapped SH-2 features like the cache
      interface. Instead, the cache interfaces is described in the device
      tree, and new code is added to be able to access the flat device tree
      at early boot before it is unflattened.
      
      Support is also added for receiving interrupts on trap numbers in the
      range 16 to 31, since the J-Core aic1 interrupt controller generates
      these traps. This range was unused but nominally for hardware
      exceptions on SH-2, and a few values in this range were used for
      exceptions on SH-2A, but SH-2A has its own version of the relevant
      code.
      
      No individual cpu subtypes are added for J2 since the intent moving
      forward is to represent SoCs with device tree rather than as
      hard-coded subtypes in the kernel. The CPU_SUBTYPE_J2 Kconfig item
      exists only to fit into the existing cpu selection mechanism until it
      is overhauled.
      Signed-off-by: NRich Felker <dalias@libc.org>
      5a846aba
  5. 31 7月, 2016 1 次提交
  6. 24 7月, 2014 1 次提交
    • G
      sh: also try passing -m4-nofpu for SH2A builds · b1923b55
      Geert Uytterhoeven 提交于
      When compiling a SH2A kernel (e.g.  se7206_defconfig or rsk7203_defconfig)
      using sh4-linux-gcc, linking fails with:
      
        net/built-in.o: In function `__sk_run_filter':
        net/core/filter.c:566: undefined reference to `__fpscr_values'
        net/core/filter.c:269: undefined reference to `__fpscr_values'
        ...
        net/built-in.o:net/core/filter.c:580: more undefined references to `__fpscr_values' follow
      
      This happens because sh4-linux-gcc doesn't support the "-m2a-nofpu",
      which is thus filtered out by "$(call cc-option, ...)".
      
      As compiling using sh4-linux-gcc is useful for compile coverage, also
      try passing "-m4-nofpu" (which is presumably filtered out when using a
      real sh2a-linux toolchain) to disable the generation of FPU instructions
      and references to __fpscr_values[].
      Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      Cc: Guenter Roeck <linux@roeck-us.net>
      Cc: Tony Breeds <tony@bakeyournoodle.com>
      Cc: Alexei Starovoitov <ast@plumgrid.com>
      Cc: Fengguang Wu <fengguang.wu@intel.com>
      Cc: Daniel Borkmann <dborkman@redhat.com>
      Cc: Magnus Damm <magnus.damm@gmail.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      b1923b55
  7. 20 12月, 2013 1 次提交
    • K
      stackprotector: Unify the HAVE_CC_STACKPROTECTOR logic between architectures · 19952a92
      Kees Cook 提交于
      Instead of duplicating the CC_STACKPROTECTOR Kconfig and
      Makefile logic in each architecture, switch to using
      HAVE_CC_STACKPROTECTOR and keep everything in one place. This
      retains the x86-specific bug verification scripts.
      Signed-off-by: NKees Cook <keescook@chromium.org>
      Cc: Arjan van de Ven <arjan@linux.intel.com>
      Cc: Michal Marek <mmarek@suse.cz>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Paul Mundt <lethal@linux-sh.org>
      Cc: James Hogan <james.hogan@imgtec.com>
      Cc: Stephen Rothwell <sfr@canb.auug.org.au>
      Cc: Shawn Guo <shawn.guo@linaro.org>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-mips@linux-mips.org
      Cc: linux-arch@vger.kernel.org
      Link: http://lkml.kernel.org/r/1387481759-14535-2-git-send-email-keescook@chromium.orgSigned-off-by: NIngo Molnar <mingo@kernel.org>
      19952a92
  8. 13 6月, 2012 2 次提交
  9. 05 5月, 2012 1 次提交
  10. 19 4月, 2012 1 次提交
  11. 01 11月, 2011 1 次提交
  12. 14 6月, 2011 1 次提交
    • P
      serial: sh-sci: Abstract register maps. · 61a6976b
      Paul Mundt 提交于
      This takes a bit of a sledgehammer to the horribly CPU subtype
      ifdef-ridden header and abstracts all of the different register layouts
      in to distinct types which in turn can be overriden on a per-port basis,
      or permitted to default to the map matching the port type at probe time.
      
      In the process this ultimately fixes up inumerable bugs with mismatches
      on various CPU types (particularly the legacy ones that were obviously
      broken years ago and no one noticed) and provides a more tightly coupled
      and consolidated platform for extending and implementing generic
      features.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      61a6976b
  13. 14 1月, 2011 1 次提交
  14. 29 10月, 2010 3 次提交
  15. 26 4月, 2010 1 次提交
  16. 28 1月, 2010 1 次提交
  17. 14 1月, 2010 1 次提交
  18. 13 1月, 2010 2 次提交
  19. 12 12月, 2009 1 次提交
  20. 04 12月, 2009 1 次提交
  21. 30 10月, 2009 1 次提交
  22. 27 10月, 2009 1 次提交
  23. 26 10月, 2009 1 次提交
  24. 20 8月, 2009 1 次提交
  25. 14 8月, 2009 1 次提交
  26. 29 7月, 2009 2 次提交
  27. 23 7月, 2009 1 次提交
  28. 21 7月, 2009 1 次提交
  29. 11 7月, 2009 1 次提交
    • P
      sh: Decouple mcount from ftrace. · 473d1cf4
      Paul Mundt 提交于
      This adds a general CONFIG_MCOUNT in order to permit mcount generation
      without ftrace support. This is primarily for allowing platforms to
      enable aggressive stack overflow checking without having to enable ftrace
      support. Based on the sparc64 implementation.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      473d1cf4
  30. 10 6月, 2009 1 次提交
  31. 26 5月, 2009 1 次提交
  32. 10 5月, 2009 1 次提交
  33. 09 5月, 2009 2 次提交
  34. 08 5月, 2009 1 次提交