Remove pcb_switchout, it has not been used for a long time.

This commit is contained in:
David Xu 2005-12-29 13:23:48 +00:00
parent 3357835a46
commit f71ba3d4a7
3 changed files with 0 additions and 8 deletions

View File

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

View File

@ -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 */

View File

@ -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 */
};