svn commit: r327817 - head/sys/amd64/amd64

Konstantin Belousov kib at FreeBSD.org
Thu Jan 11 12:28:10 UTC 2018


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));


More information about the svn-src-head mailing list