Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Feb 2018 13:32:46 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329365 - head/sys/amd64/include
Message-ID:  <201802161332.w1GDWk96097144@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Fri Feb 16 13:32:46 2018
New Revision: 329365
URL: https://svnweb.freebsd.org/changeset/base/329365

Log:
  Use local symbol for offset.
  
  Small global symbols confuse ddb which matches them against small
  unrelated displacements and makes the disassembly ugly.
  
  Reported by:	bde
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/sys/amd64/include/asmacros.h

Modified: head/sys/amd64/include/asmacros.h
==============================================================================
--- head/sys/amd64/include/asmacros.h	Fri Feb 16 07:02:14 2018	(r329364)
+++ head/sys/amd64/include/asmacros.h	Fri Feb 16 13:32:46 2018	(r329365)
@@ -175,11 +175,11 @@
 	.endm
 
 	.macro	MOVE_STACKS qw
-	offset=0
+	.L.offset=0
 	.rept	\qw
-	movq	offset(%rsp),%rdx
-	movq	%rdx,offset(%rax)
-	offset=offset+8
+	movq	.L.offset(%rsp),%rdx
+	movq	%rdx,.L.offset(%rax)
+	.L.offset=.L.offset+8
 	.endr
 	.endm
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802161332.w1GDWk96097144>