1. 12 7月, 2008 9 次提交
  2. 05 6月, 2008 8 次提交
  3. 04 6月, 2008 7 次提交
  4. 03 6月, 2008 2 次提交
  5. 02 6月, 2008 1 次提交
    • P
      sh: fix miscompilation of ip_fast_csum with gcc >= 4.3 · d02d6be5
      Paul Mundt 提交于
      As noted by Matthew Wilcox:
      
          Kyle McMartin just tracked down a bug on parisc to a missing
          "memory" clobber in the inline assembly implementation of
          ip_fast_csum.  The FRV, SH and Xtensa ports are also missing a
          memory clobber, so I thought it would be polite to let you know.
      
          The bug manifests as dropped network packets (obviously they have
          the wrong checksum).  It started appearing for parisc with GCC 4.3.
      
          The GCC manual says:
      
           If your assembler instructions access memory in an unpredictable
           fashion, add `memory' to the list of clobbered registers.  This
           will cause GCC to not keep memory values cached in registers
           across the assembler instruction and not optimize stores or loads
           to that memory.
      
          I see that FRV has a 400 byte memory output which may prevent this
          problem from appearing, but SH and Xtensa have nothing to prevent
          this bug.  Hope this saves you a few days of debugging.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      d02d6be5
  6. 31 5月, 2008 3 次提交
  7. 30 5月, 2008 10 次提交