1. 20 1月, 2010 1 次提交
    • P
      sh: machine_ops based reboot support. · fbb82b03
      Paul Mundt 提交于
      This provides a machine_ops-based reboot interface loosely cloned from
      x86, and converts the native sh32 and sh64 cases over to it.
      
      Necessary both for tying in SMP support and also enabling platforms like
      SDK7786 to add support for their microcontroller-based power managers.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      fbb82b03
  2. 17 10月, 2009 1 次提交
  3. 29 8月, 2009 1 次提交
  4. 20 8月, 2009 1 次提交
    • P
      sh: DSP save/restore ordering and a0 sign extension fixups. · 485f0720
      Paul Mundt 提交于
      As an excellent indicator of how much testing the DSP code gets, a couple
      of rather glaring bugs in the DSP save/restore paths were found:
      
      - In the DSP restore case a0 needs to be popped off before a0g,
        or the value of a0g is clobbered by the MSB of a0 in the case
        of sign extension.
      
      - Beyond that, the save and restore orders were out of sync,
        so this fixes that up as well. At the same time, we switch over
        to using movs.l for both the save and restore of the general DSP
        registers as opposed to using sts.l (which was initially put in
        place to work around a bug in ancient binutils versions which
        the kernel no longer supports).
      Reported-by: NChee Soon Yip <yip.cheesoon@renesas.com>
      Cc: Chu Lih Kwek <kwek.chulih@renesas.com>,
      Cc: General Lai <general.lai@renesas.com>,
      Cc: Robert Cozens <Robert.Cozens@renesas.com>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      485f0720
  5. 16 8月, 2009 1 次提交
  6. 15 8月, 2009 1 次提交
    • P
      sh: Add register alignment helpers for shared flushers. · 43bc61d8
      Paul Mundt 提交于
      This plugs in some register alignment helpers for the shared flushers,
      allowing them to also be used on SH-5. The main rationale here is that
      in the SH-5 case we have a variable ABI, where the pointer size may not
      equal the register width. This register extension is taken care of by
      the SH-5 code already today, and is otherwise unused on the SH-4 code.
      This combines the two and allows us to kill off the SH-5 implementation.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      43bc61d8
  7. 09 5月, 2009 1 次提交
  8. 04 4月, 2009 1 次提交
    • M
      sh: Fix up DSP context save/restore. · 01ab1039
      Michael Trimarchi 提交于
      There were a number of issues with the DSP context save/restore code,
      mostly left-over relics from when it was introduced on SH3-DSP with
      little follow-up testing, resulting in things like task_pt_dspregs()
      referencing incorrect state on the stack.
      
      This follows the MIPS convention of tracking the DSP state in the
      thread_struct and handling the state save/restore in switch_to() and
      finish_arch_switch() respectively. The regset interface is also updated,
      which allows us to finally be rid of task_pt_dspregs() and the special
      cased task_pt_regs().
      Signed-off-by: NMichael Trimarchi <michael@evidence.eu.com>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      01ab1039
  9. 21 9月, 2008 1 次提交
  10. 08 9月, 2008 2 次提交
  11. 29 7月, 2008 1 次提交
  12. 14 2月, 2008 1 次提交
    • M
      sh: trapped io support V2 · e7cc9a73
      Magnus Damm 提交于
      The idea is that we want to get rid of the in/out/readb/writeb callbacks from
      the machvec and replace that with simple inline read and write operations to
      memory. Fast and simple for most hardware devices (think pci).
      
      Some devices require special treatment though - like 16-bit only CF devices -
      so we need to have some method to hook in callbacks.
      
      This patch makes it possible to add a per-device trap generating filter. This
      way we can get maximum performance of sane hardware - which doesn't need this
      filter - and crappy hardware works but gets punished by a performance hit.
      
      V2 changes things around a bit and replaces io access callbacks with a
      simple minimum_bus_width value. In the future we can add stride as well.
      Signed-off-by: NMagnus Damm <damm@igel.co.jp>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      e7cc9a73
  13. 28 1月, 2008 3 次提交