cvs commit: src/sys/sparc64/sparc64 in_cksum.c

From: Marius Strobl <marius_at_FreeBSD.org>
Date: Sat, 5 Jul 2008 15:44:56 +0000 (UTC)
marius      2008-07-05 15:44:56 UTC

  FreeBSD src repository

  Modified files:
    sys/sparc64/sparc64  in_cksum.c 
  Log:
  SVN rev 180299 on 2008-07-05 15:44:56Z by marius
  
  - Merge macros depending on the flags being preserved between calls
    into a single "__asm"-statement as GCC doesn't guarantee their
    consecutive output even when using consecutive "__asm __volatile"-
    statement for them. Remove the otherwise unnecessary "__volatile". [1]
  - The inline assembler instructions used here alter the condition
    codes so add them to the clobber list accordingly.
  - The inline assembler instructions used here uses output operands
    before all input operands are consumed so add appropriate modifiers.
  
  Pointed out by: bde [1]
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.4       +41 -33    src/sys/sparc64/sparc64/in_cksum.c
Received on Sat Jul 05 2008 - 15:45:06 UTC