summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/alpha/alpha/vm_machdep.c76
-rw-r--r--sys/sys/proc.h10
2 files changed, 1 insertions, 85 deletions
diff --git a/sys/alpha/alpha/vm_machdep.c b/sys/alpha/alpha/vm_machdep.c
index 7aa0f6d24cac..524daf512363 100644
--- a/sys/alpha/alpha/vm_machdep.c
+++ b/sys/alpha/alpha/vm_machdep.c
@@ -269,34 +269,6 @@ cpu_thread_setup(struct thread *td)
td->td_frame = (struct trapframe *)((caddr_t)td->td_pcb) - 1;
}
-struct md_store {
- struct pcb mds_pcb;
- struct trapframe mds_frame;
-};
-
-#if 0
-void
-cpu_save_upcall(struct thread *td, struct kse *newkse)
-{
-
- newkse->ke_mdstorage = malloc(sizeof(struct md_store), M_TEMP,
- M_WAITOK);
- /* Note: use of M_WAITOK means it won't fail. */
- /* set up shortcuts in MI section */
- newkse->ke_pcb =
- &(((struct md_store *)(newkse->ke_mdstorage))->mds_pcb);
- newkse->ke_frame =
- &(((struct md_store *)(newkse->ke_mdstorage))->mds_frame);
-
- /* Copy the upcall pcb. Kernel mode & fp regs are here. */
- /* XXXKSE this may be un-needed */
- bcopy(td->td_pcb, newkse->ke_pcb, sizeof(struct pcb));
-
- /* This copies most of the user mode register values. */
- bcopy(td->td_frame, newkse->ke_frame, sizeof(struct trapframe));
-}
-#endif
-
void
cpu_set_upcall(struct thread *td, void *pcb)
{
@@ -354,54 +326,6 @@ cpu_set_upcall_kse(struct thread *td, struct kse *ke)
/* XXX */
}
-#if 0
-void
-cpu_set_args(struct thread *td, struct kse *ke)
-{
-/* XXX
- suword((void *)(ke->ke_frame->tf_esp + sizeof(void *)),
- (int)ke->ke_mailbox);
-*/
-}
-#endif
-
-#if 0
-void
-cpu_free_kse_mdstorage(struct kse *kse)
-{
-
- free(kse->ke_mdstorage, M_TEMP);
- kse->ke_mdstorage = NULL;
- kse->ke_pcb = NULL;
- kse->ke_frame = NULL;
-}
-#endif
-
-#if 0
-int
-cpu_export_context(struct thread *td)
-{
-
- /* XXXKSE */
- struct trapframe *frame;
- struct thread_mailbox *tm;
- struct trapframe *uframe;
- int error;
-
- frame = td->td_frame;
- tm = td->td_mailbox;
- uframe = &tm->ctx.tfrm.tf_tf;
- error = copyout(frame, uframe, sizeof(*frame));
- /*
- * "What about the fp regs?" I hear you ask.... XXXKSE
- * Don't know where gs and "onstack" come from.
- * May need to fiddle a few other values too.
- */
- return (error);
- return (0);
-}
-#endif
-
void
cpu_wait(p)
struct proc *p;
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index 78eaf697215b..185bca9b3026 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -427,17 +427,9 @@ struct kse {
void *ke_upcall;
struct thread *ke_tdspare; /* spare thread for upcalls */
#define ke_endzero ke_dummy
-
-#define ke_startcopy ke_endzero
u_char ke_dummy;
-#define ke_endcopy ke_mdstorage
-
- void *ke_mdstorage; /* where we store the pcb and frame */
- struct pcb *ke_pcb; /* the pcb saved for the upcalls */
- struct trapframe *ke_frame; /* the upcall trapframe */
- void *mdkse; /* eventually you load from this in */
- /* switch for our extension PCB x86 */
};
+
/* flags kept in ke_flags */
#define KEF_OWEUPC 0x00002 /* Owe process an addupc() call at next ast. */
#define KEF_IDLEKSE 0x00004 /* A 'Per CPU idle process'.. has one thread */