Author: bde
Date: Sat Jun  2 09:59:27 2018
New Revision: 334528
URL: https://svnweb.freebsd.org/changeset/base/334528

Log:
  Oops, the last minute reduction in the clobber list for i386
  MCOUNT_OVERHEAD() in r334522 was too agressive.  Only mcount exit
  preserves %eax and %edx.

Modified:
  head/sys/i386/include/profile.h

Modified: head/sys/i386/include/profile.h
==============================================================================
--- head/sys/i386/include/profile.h     Sat Jun  2 08:46:09 2018        
(r334527)
+++ head/sys/i386/include/profile.h     Sat Jun  2 09:59:27 2018        
(r334528)
@@ -64,7 +64,7 @@
        __asm __volatile("pushl %0; call __mcount; popl %%ecx"          \
                         :                                              \
                         : "i" (label)                                  \
-                        : "cx", "memory")
+                        : "ax", "dx", "cx", "memory")
 #define        MEXITCOUNT_OVERHEAD()                                           
\
        __asm __volatile("call .mexitcount; 1:"                         \
                         : :                                            \
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to