svn commit: r284921 - in head/sys/amd64: amd64 include linux32
Konstantin Belousov
kib at FreeBSD.org
Mon Jun 29 07:53:45 UTC 2015
Author: kib
Date: Mon Jun 29 07:53:44 2015
New Revision: 284921
URL: https://svnweb.freebsd.org/changeset/base/284921
Log:
pcb_gs32sd is unused for long time, remove it. Keep the padding in pcb.
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Modified:
head/sys/amd64/amd64/genassym.c
head/sys/amd64/include/pcb.h
head/sys/amd64/linux32/linux32_machdep.c
Modified: head/sys/amd64/amd64/genassym.c
==============================================================================
--- head/sys/amd64/amd64/genassym.c Mon Jun 29 07:43:09 2015 (r284920)
+++ head/sys/amd64/amd64/genassym.c Mon Jun 29 07:53:44 2015 (r284921)
@@ -146,7 +146,6 @@ ASSYM(PCB_LDT, offsetof(struct pcb, pcb_
ASSYM(PCB_TR, offsetof(struct pcb, pcb_tr));
ASSYM(PCB_FLAGS, offsetof(struct pcb, pcb_flags));
ASSYM(PCB_ONFAULT, offsetof(struct pcb, pcb_onfault));
-ASSYM(PCB_GS32SD, offsetof(struct pcb, pcb_gs32sd));
ASSYM(PCB_TSSP, offsetof(struct pcb, pcb_tssp));
ASSYM(PCB_SAVEFPU, offsetof(struct pcb, pcb_save));
ASSYM(PCB_EFER, offsetof(struct pcb, pcb_efer));
Modified: head/sys/amd64/include/pcb.h
==============================================================================
--- head/sys/amd64/include/pcb.h Mon Jun 29 07:43:09 2015 (r284920)
+++ head/sys/amd64/include/pcb.h Mon Jun 29 07:53:44 2015 (r284921)
@@ -85,8 +85,7 @@ struct pcb {
/* copyin/out fault recovery */
caddr_t pcb_onfault;
- /* 32-bit segment descriptor */
- struct user_segment_descriptor pcb_gs32sd;
+ uint64_t pcb_pad0;
/* local tss, with i/o bitmap; NULL for common */
struct amd64tss *pcb_tssp;
Modified: head/sys/amd64/linux32/linux32_machdep.c
==============================================================================
--- head/sys/amd64/linux32/linux32_machdep.c Mon Jun 29 07:43:09 2015 (r284920)
+++ head/sys/amd64/linux32/linux32_machdep.c Mon Jun 29 07:53:44 2015 (r284921)
@@ -426,7 +426,6 @@ linux_set_cloned_tls(struct thread *td,
#endif
pcb = td->td_pcb;
pcb->pcb_gsbase = (register_t)info.base_addr;
-/* XXXKIB pcb->pcb_gs32sd = sd; */
td->td_frame->tf_gs = GSEL(GUGS32_SEL, SEL_UPL);
set_pcb_flags(pcb, PCB_32BIT);
}
More information about the svn-src-head
mailing list