-/* $OpenBSD: locore.s,v 1.48 2020/05/17 13:48:29 deraadt Exp $ */
+/* $OpenBSD: locore.s,v 1.49 2022/10/25 15:15:38 guenther Exp $ */
/* $NetBSD: locore.s,v 1.94 2001/04/26 03:10:44 ross Exp $ */
/*-
END(cpu_idle_leave)
/*
- * switch_trampoline()
+ * proc_trampoline()
*
* Arrange for a function to be invoked neatly, after a cpu_fork().
*
* address specified by the s1 register and with one argument specified
* by the s2 register.
*/
-LEAF(switch_trampoline, 0)
+LEAF(proc_trampoline, 0)
#if defined(MULTIPROCESSOR)
CALL(proc_trampoline_mp)
#endif
mov s1, ra
mov s2, a0
jmp zero, (pv)
- END(switch_trampoline)
+ END(proc_trampoline)
/**************************************************************************/
-/* $OpenBSD: vm_machdep.c,v 1.48 2022/02/21 19:22:21 kettenis Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.49 2022/10/25 15:15:38 guenther Exp $ */
/* $NetBSD: vm_machdep.c,v 1.55 2000/03/29 03:49:48 simonb Exp $ */
/*
(u_int64_t)exception_return; /* s1: ra */
up->u_pcb.pcb_context[2] = (u_int64_t)arg;
up->u_pcb.pcb_context[7] =
- (u_int64_t)switch_trampoline; /* ra: assembly magic */
+ (u_int64_t)proc_trampoline; /* ra: assembly magic */
#ifdef MULTIPROCESSOR
/*
* MULTIPROCESSOR kernels will reuse the IPL of the parent
-/* $OpenBSD: cpu.h,v 1.66 2022/08/10 10:41:35 miod Exp $ */
+/* $OpenBSD: cpu.h,v 1.67 2022/10/25 15:15:38 guenther Exp $ */
/* $NetBSD: cpu.h,v 1.45 2000/08/21 02:03:12 thorpej Exp $ */
/*-
unsigned long);
u_int64_t hwrpb_checksum(void);
void hwrpb_restart_setup(void);
+void proc_trampoline(void); /* MAGIC */
void regdump(struct trapframe *);
void regtoframe(struct reg *, struct trapframe *);
void savectx(struct pcb *);
void switch_exit(struct proc *); /* MAGIC */
-void switch_trampoline(void); /* MAGIC */
void syscall(u_int64_t, struct trapframe *);
void trap(unsigned long, unsigned long, unsigned long, unsigned long,
struct trapframe *);
-/* $OpenBSD: locore.S,v 1.203 2021/02/22 23:17:50 kettenis Exp $ */
+/* $OpenBSD: locore.S,v 1.204 2022/10/25 15:15:38 guenther Exp $ */
/*
* Copyright (c) 1998-2004 Michael Shalayeff
nop
EXIT(cpu_idle_leave)
-ENTRY(switch_trampoline,0)
+ENTRY(proc_trampoline,0)
copy r0, r3
#ifdef MULTIPROCESSOR
copy t4, r5
.call
b $syscall_return
ldw P_MD_REGS(t2), t3
-EXIT(switch_trampoline)
+EXIT(proc_trampoline)
#ifdef MULTIPROCESSOR
/*
-/* $OpenBSD: vm_machdep.c,v 1.84 2022/05/21 23:43:31 kettenis Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.85 2022/10/25 15:15:38 guenther Exp $ */
/*
* Copyright (c) 1999-2004 Michael Shalayeff
*/
sp += HPPA_FRAME_SIZE;
*(register_t*)(sp - HPPA_FRAME_SIZE) = 0;
- *(register_t*)(sp + HPPA_FRAME_CRP) = (register_t)&switch_trampoline;
+ *(register_t*)(sp + HPPA_FRAME_CRP) = (register_t)&proc_trampoline;
*(register_t*)(sp) = (sp - HPPA_FRAME_SIZE);
sp += HPPA_FRAME_SIZE + 16*4; /* frame + callee-saved registers */
-/* $OpenBSD: cpu.h,v 1.95 2021/07/06 09:34:06 kettenis Exp $ */
+/* $OpenBSD: cpu.h,v 1.96 2022/10/25 15:15:38 guenther Exp $ */
/*
* Copyright (c) 2000-2004 Michael Shalayeff
int spstrcpy(pa_space_t ssp, const void *src,
pa_space_t dsp, void *dst, size_t size, size_t *rsize);
int copy_on_fault(void);
-void switch_trampoline(void);
+void proc_trampoline(void);
int cpu_dumpsize(void);
int cpu_dump(void);
-/* $OpenBSD: locore.S,v 1.59 2022/09/04 06:49:11 jsg Exp $ */
+/* $OpenBSD: locore.S,v 1.60 2022/10/25 15:15:38 guenther Exp $ */
/* $NetBSD: locore.S,v 1.2 1996/10/16 19:33:09 ws Exp $ */
/*
* Child comes here at the end of a fork.
* Mostly similar to the above.
*/
- .globl _C_LABEL(fork_trampoline)
- .type _C_LABEL(fork_trampoline),@function
-_C_LABEL(fork_trampoline):
+ .globl _C_LABEL(proc_trampoline)
+ .type _C_LABEL(proc_trampoline),@function
+_C_LABEL(proc_trampoline):
#ifdef MULTIPROCESSOR
bl _C_LABEL(proc_trampoline_mp)
#endif
-/* $OpenBSD: vm_machdep.c,v 1.53 2022/02/21 19:17:51 kettenis Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.54 2022/10/25 15:15:38 guenther Exp $ */
/* $NetBSD: vm_machdep.c,v 1.1 1996/09/30 16:34:57 ws Exp $ */
/*
struct callframe *cf;
struct switchframe *sf;
caddr_t stktop1, stktop2;
- extern void fork_trampoline(void);
+ extern void proc_trampoline(void);
struct pcb *pcb = &p2->p_addr->u_pcb;
struct cpu_info *ci = curcpu();
* There happens to be a callframe, too.
*/
cf = (struct callframe *)stktop2;
- cf->lr = (int)fork_trampoline;
+ cf->lr = (int)proc_trampoline;
/*
* Below the trap frame, there is another call frame: