Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jan 2018 12:28:08 +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: r327817 - head/sys/amd64/amd64
Message-ID:  <201801111228.w0BCS9Mu003377@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Thu Jan 11 12:28:08 2018
New Revision: 327817
URL: https://svnweb.freebsd.org/changeset/base/327817

Log:
  Rename COMMON_TSS_RSP0 to TSS_RSP0.
  
  The symbol is just an offset in the hardware TSS structure, it is not
  limited to the common_tss instance.
  
  Sponsored by:	The FreeBSD Foundation
  MFC after:	3 days

Modified:
  head/sys/amd64/amd64/cpu_switch.S
  head/sys/amd64/amd64/genassym.c

Modified: head/sys/amd64/amd64/cpu_switch.S
==============================================================================
--- head/sys/amd64/amd64/cpu_switch.S	Thu Jan 11 12:07:24 2018	(r327816)
+++ head/sys/amd64/amd64/cpu_switch.S	Thu Jan 11 12:28:08 2018	(r327817)
@@ -215,7 +215,7 @@ done_tss:
 	movq	%r8,PCPU(RSP0)
 	movq	%r8,PCPU(CURPCB)
 	/* Update the TSS_RSP0 pointer for the next interrupt */
-	movq	%r8,COMMON_TSS_RSP0(%rdx)
+	movq	%r8,TSS_RSP0(%rdx)
 	movq	%r12,PCPU(CURTHREAD)		/* into next thread */
 
 	/* Test if debug registers should be restored. */

Modified: head/sys/amd64/amd64/genassym.c
==============================================================================
--- head/sys/amd64/amd64/genassym.c	Thu Jan 11 12:07:24 2018	(r327816)
+++ head/sys/amd64/amd64/genassym.c	Thu Jan 11 12:28:08 2018	(r327817)
@@ -153,7 +153,7 @@ ASSYM(PCB_FULL_IRET, PCB_FULL_IRET);
 ASSYM(PCB_DBREGS, PCB_DBREGS);
 ASSYM(PCB_32BIT, PCB_32BIT);
 
-ASSYM(COMMON_TSS_RSP0, offsetof(struct amd64tss, tss_rsp0));
+ASSYM(TSS_RSP0, offsetof(struct amd64tss, tss_rsp0));
 
 ASSYM(TF_R15, offsetof(struct trapframe, tf_r15));
 ASSYM(TF_R14, offsetof(struct trapframe, tf_r14));



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