Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha/alpha Update a couple of comments for reality.
details: https://anonhg.NetBSD.org/src/rev/25008b83be9f
branches: trunk
changeset: 486651:25008b83be9f
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sat May 27 06:29:35 2000 +0000
description:
Update a couple of comments for reality.
diffstat:
sys/arch/alpha/alpha/vm_machdep.c | 17 ++++++-----------
1 files changed, 6 insertions(+), 11 deletions(-)
diffs (52 lines):
diff -r c41a91fc6f77 -r 25008b83be9f sys/arch/alpha/alpha/vm_machdep.c
--- a/sys/arch/alpha/alpha/vm_machdep.c Sat May 27 06:08:28 2000 +0000
+++ b/sys/arch/alpha/alpha/vm_machdep.c Sat May 27 06:29:35 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.55 2000/03/29 03:49:48 simonb Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.56 2000/05/27 06:29:35 thorpej Exp $ */
/*
* Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
@@ -29,7 +29,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.55 2000/03/29 03:49:48 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.56 2000/05/27 06:29:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -174,9 +174,7 @@
}
/*
- * Copy pcb and stack from proc p1 to p2.
- * We do this as cheaply as possible, copying only the active
- * part of the stack. The stack and pcb need to agree;
+ * Copy pcb and user stack pointer from proc p1 to p2.
*/
p2->p_addr->u_pcb = p1->p_addr->u_pcb;
p2->p_addr->u_pcb.pcb_hw.apcb_usp = alpha_pal_rdusp();
@@ -275,8 +273,9 @@
/*
* Finish a swapin operation.
- * We neded to update the cached PTEs for the user area in the
- * machine dependent part of the proc structure.
+ *
+ * We need to cache the physical address of the PCB, so we can
+ * swap context to it easily.
*/
void
cpu_swapin(p)
@@ -284,10 +283,6 @@
{
struct user *up = p->p_addr;
- /*
- * Cache the physical address of the pcb, so we can swap to
- * it easily.
- */
p->p_md.md_pcbpaddr = (void *)vtophys((vaddr_t)&up->u_pcb);
}
Home |
Main Index |
Thread Index |
Old Index