summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2015-06-29 07:53:44 +0000
committerkib <kib@FreeBSD.org>2015-06-29 07:53:44 +0000
commite85612a06dab6982c547776bf09273b97d2f995f (patch)
treedc8c36e97e4edcd12629ea04eb6afcc9a724a5c4 /sys/amd64
parentec367814e863f2da8ed0fd21ffd24976f35896ea (diff)
downloadFreeBSD-src-e85612a06dab6982c547776bf09273b97d2f995f.zip
FreeBSD-src-e85612a06dab6982c547776bf09273b97d2f995f.tar.gz
pcb_gs32sd is unused for long time, remove it. Keep the padding in pcb.
Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/genassym.c1
-rw-r--r--sys/amd64/include/pcb.h3
-rw-r--r--sys/amd64/linux32/linux32_machdep.c1
3 files changed, 1 insertions, 4 deletions
diff --git a/sys/amd64/amd64/genassym.c b/sys/amd64/amd64/genassym.c
index 11012c4..5b1e089 100644
--- a/sys/amd64/amd64/genassym.c
+++ b/sys/amd64/amd64/genassym.c
@@ -146,7 +146,6 @@ ASSYM(PCB_LDT, offsetof(struct pcb, pcb_ldt));
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));
diff --git a/sys/amd64/include/pcb.h b/sys/amd64/include/pcb.h
index 153393f..4bf9a4f 100644
--- a/sys/amd64/include/pcb.h
+++ b/sys/amd64/include/pcb.h
@@ -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;
diff --git a/sys/amd64/linux32/linux32_machdep.c b/sys/amd64/linux32/linux32_machdep.c
index 1c54c5c..8f4e350 100644
--- a/sys/amd64/linux32/linux32_machdep.c
+++ b/sys/amd64/linux32/linux32_machdep.c
@@ -426,7 +426,6 @@ linux_set_cloned_tls(struct thread *td, void *desc)
#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);
}
OpenPOWER on IntegriCloud