From e85612a06dab6982c547776bf09273b97d2f995f Mon Sep 17 00:00:00 2001 From: kib Date: Mon, 29 Jun 2015 07:53:44 +0000 Subject: pcb_gs32sd is unused for long time, remove it. Keep the padding in pcb. Sponsored by: The FreeBSD Foundation MFC after: 2 weeks --- sys/amd64/amd64/genassym.c | 1 - sys/amd64/include/pcb.h | 3 +-- sys/amd64/linux32/linux32_machdep.c | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) (limited to 'sys/amd64') 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); } -- cgit v1.1