summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2005-12-29 13:23:48 +0000
committerdavidxu <davidxu@FreeBSD.org>2005-12-29 13:23:48 +0000
commit86c8c90d82bf7fd3c3880a2ac718833c406010ac (patch)
treeb19a3d1883f3dd113f237c590ebce0653002ee19
parent39b63efe826873008f2bae2505042385b39a5355 (diff)
downloadFreeBSD-src-86c8c90d82bf7fd3c3880a2ac718833c406010ac.zip
FreeBSD-src-86c8c90d82bf7fd3c3880a2ac718833c406010ac.tar.gz
Remove pcb_switchout, it has not been used for a long time.
-rw-r--r--sys/i386/i386/genassym.c1
-rw-r--r--sys/i386/i386/swtch.s6
-rw-r--r--sys/i386/include/pcb.h1
3 files changed, 0 insertions, 8 deletions
diff --git a/sys/i386/i386/genassym.c b/sys/i386/i386/genassym.c
index d7df503..ca24402 100644
--- a/sys/i386/i386/genassym.c
+++ b/sys/i386/i386/genassym.c
@@ -140,7 +140,6 @@ ASSYM(PCB_FLAGS, offsetof(struct pcb, pcb_flags));
ASSYM(PCB_SAVEFPU, offsetof(struct pcb, pcb_save));
ASSYM(PCB_SAVEFPU_SIZE, sizeof(union savefpu));
ASSYM(PCB_ONFAULT, offsetof(struct pcb, pcb_onfault));
-ASSYM(PCB_SWITCHOUT, offsetof(struct pcb, pcb_switchout));
ASSYM(PCB_SIZE, sizeof(struct pcb));
ASSYM(PCB_VM86CALL, PCB_VM86CALL);
diff --git a/sys/i386/i386/swtch.s b/sys/i386/i386/swtch.s
index 5d3f4a3..2c7d096 100644
--- a/sys/i386/i386/swtch.s
+++ b/sys/i386/i386/swtch.s
@@ -114,12 +114,6 @@ ENTRY(cpu_switch)
movl %gs,PCB_GS(%edx)
pushfl /* PSL */
popl PCB_PSL(%edx)
- /* Check to see if we need to call a switchout function. */
- movl PCB_SWITCHOUT(%edx),%eax
- cmpl $0, %eax
- je 1f
- call *%eax
-1:
/* Test if debug registers should be saved. */
testl $PCB_DBREGS,PCB_FLAGS(%edx)
jz 1f /* no, skip over */
diff --git a/sys/i386/include/pcb.h b/sys/i386/include/pcb.h
index 8a58da2..ff6ff5a 100644
--- a/sys/i386/include/pcb.h
+++ b/sys/i386/include/pcb.h
@@ -74,7 +74,6 @@ struct pcb {
struct segment_descriptor pcb_gsd;
struct pcb_ext *pcb_ext; /* optional pcb extension */
int pcb_psl; /* process status long */
- void (*pcb_switchout)(void); /* Special switchout function. */
u_long pcb_vm86[2]; /* vm86bios scratch space */
};
OpenPOWER on IntegriCloud