1. 21 5月, 2012 2 次提交
    • S
      sparc32: use flushi when run-time patching in per_cpu_patch · 1edc1783
      Sam Ravnborg 提交于
      Davis S. Miller wrote:
      "
      The way we do that now is overkill.  We only needed to use the MMU
      cache ops when we had sun4c around because sun4c lacked support for
      the "flush" instruction.
      
      But all sun4m and later chips have it so we can use it
      unconditionally.
      
      So in the per_cpu_patch() code, get rid of the cache ops invocation,
      and instead execute a "flush %reg" after each of the instruction patch
      assignments, where %reg is set to the address of the instruction that
      was stored into.
      
      Perhaps take the flushi() definition from asm/cacheflush_64.h and
      place it into asm/cacheflush.h, then you can simply use that.
      "
      
      Implemented as per suggestion.
      Moved run-time patching before we call paging_init(),
      so helper methods in paging_init() may utilise run-time patching too.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1edc1783
    • S
      sparc32: fix cpuid_patch run-time patching · 9cd5f822
      Sam Ravnborg 提交于
      We hang forever when trying to do run-time patching of instructions
      identified by the cpuid_patch section
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9cd5f822
  2. 20 5月, 2012 16 次提交
  3. 16 5月, 2012 8 次提交
  4. 15 5月, 2012 7 次提交
  5. 14 5月, 2012 7 次提交