Update function names in comments.

This commit is contained in:
tsutsui 2007-05-26 03:26:49 +00:00
parent d851f0f321
commit 2ae2a9ae1e
1 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.56 2007/05/17 14:51:29 yamt Exp $ */
/* $NetBSD: vm_machdep.c,v 1.57 2007/05/26 03:26:49 tsutsui Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc. All rights reserved.
@ -81,7 +81,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.56 2007/05/17 14:51:29 yamt Exp $");
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.57 2007/05/26 03:26:49 tsutsui Exp $");
#include "opt_kstack_debug.h"
#include "opt_coredump.h"
@ -113,7 +113,7 @@ extern void lwp_setfunc_trampoline(void);
* Copy and update the pcb and trap frame, making the child ready to run.
*
* Rig the child's kernel stack so that it will start out in
* proc_trampoline() and call child_return() with p2 as an
* lwp_trampoline() and call child_return() with p2 as an
* argument. This causes the newly-created child process to go
* directly to user level with an apparent return value of 0 from
* fork(), while the parent process returns normally.
@ -209,8 +209,8 @@ cpu_lwp_fork(struct lwp *l1, struct lwp *l2, void *stack,
/* Setup switch frame */
sf = &pcb->pcb_sf;
sf->sf_r10 = (int)l2; /* "new" for lwp_startup */
sf->sf_r11 = (int)arg; /* proc_trampoline hook func */
sf->sf_r12 = (int)func; /* proc_trampoline hook func's arg */
sf->sf_r11 = (int)arg; /* lwp_trampoline hook func */
sf->sf_r12 = (int)func; /* lwp_trampoline hook func's arg */
sf->sf_r15 = spbase + USPACE - PAGE_SIZE;/* current stack pointer */
sf->sf_r7_bank = sf->sf_r15; /* stack top */
sf->sf_r6_bank = (vaddr_t)tf; /* current frame pointer */
@ -227,7 +227,7 @@ cpu_lwp_fork(struct lwp *l1, struct lwp *l2, void *stack,
* void cpu_setfunc(struct lwp *l, void (*func)(void *), void *arg):
* + Reset the stack pointer for the process.
* + Arrange to the process to call the specified func
* with argument via the proc_trampoline.
* with argument via the lwp_setfunc_trampoline.
*
* XXX There is a lot of duplicated code here (with cpu_lwp_fork()).
*/
@ -295,12 +295,12 @@ cpu_setfunc(struct lwp *l, void (*func)(void *), void *arg)
/* Setup switch frame */
sf = &pcb->pcb_sf;
sf->sf_r11 = (int)arg; /* proc_trampoline hook func */
sf->sf_r12 = (int)func; /* proc_trampoline hook func's arg */
sf->sf_r11 = (int)arg; /* lwp_setfunc_trampoline hook func */
sf->sf_r12 = (int)func; /* lwp_setfunc_trampoline hook func's arg */
sf->sf_r15 = spbase + USPACE - PAGE_SIZE;/* current stack pointer */
sf->sf_r7_bank = sf->sf_r15; /* stack top */
sf->sf_r6_bank = (vaddr_t)tf; /* current frame pointer */
/* when switch to me, jump to proc_trampoline */
/* when switch to me, jump to lwp_setfunc_trampoline */
sf->sf_pr = (int)lwp_setfunc_trampoline;
/*
* Enable interrupt when switch frame is restored, since