mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Rename switch_trampoline() to fork_trampoline() on the alpha and ia64.
Suggested by: dfr
This commit is contained in:
parent
6a7b2863ba
commit
938f15c7c4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=72906
@ -193,7 +193,7 @@ Lcs7:
|
||||
|
||||
|
||||
/*
|
||||
* switch_trampoline()
|
||||
* fork_trampoline()
|
||||
*
|
||||
* Arrange for a function to be invoked neatly, after a cpu_switch().
|
||||
*
|
||||
@ -204,10 +204,10 @@ Lcs7:
|
||||
* The callout function is in s0, the address to return to after executing
|
||||
* fork_exit() is in s1, and the argument is in s2.
|
||||
*/
|
||||
LEAF(switch_trampoline, 0)
|
||||
LEAF(fork_trampoline, 0)
|
||||
mov s1, ra
|
||||
mov s0, a0
|
||||
mov s2, a1
|
||||
mov sp, a2
|
||||
jmp zero, fork_exit
|
||||
END(switch_trampoline)
|
||||
END(fork_trampoline)
|
||||
|
@ -209,7 +209,7 @@ cpu_fork(p1, p2, flags)
|
||||
(u_int64_t)exception_return; /* s1: ra */
|
||||
up->u_pcb.pcb_context[2] = (u_long) p2; /* s2: a1 */
|
||||
up->u_pcb.pcb_context[7] =
|
||||
(u_int64_t)switch_trampoline; /* ra: assembly magic */
|
||||
(u_int64_t)fork_trampoline; /* ra: assembly magic */
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -155,7 +155,7 @@ void regtoframe __P((struct reg *, struct trapframe *));
|
||||
void savectx __P((struct pcb *));
|
||||
void set_iointr __P((void (*)(void *, unsigned long)));
|
||||
void switch_exit __P((struct proc *)); /* MAGIC */
|
||||
void switch_trampoline __P((void)); /* MAGIC */
|
||||
void fork_trampoline __P((void)); /* MAGIC */
|
||||
void syscall __P((u_int64_t, struct trapframe *));
|
||||
void trap __P((unsigned long, unsigned long, unsigned long, unsigned long,
|
||||
struct trapframe *));
|
||||
|
@ -612,7 +612,7 @@ ENTRY(restorehighfp, 1)
|
||||
END(restorehighfp)
|
||||
|
||||
/*
|
||||
* switch_trampoline()
|
||||
* fork_trampoline()
|
||||
*
|
||||
* Arrange for a function to be invoked neatly, after a cpu_switch().
|
||||
*
|
||||
@ -623,7 +623,7 @@ END(restorehighfp)
|
||||
* The callout function is in r4, the address to return to after executing
|
||||
* fork_exit() is in r5, and the argument is in r6.
|
||||
*/
|
||||
ENTRY(switch_trampoline, 0)
|
||||
ENTRY(fork_trampoline, 0)
|
||||
alloc r14=ar.pfs,0,0,3,0
|
||||
;;
|
||||
mov b0=r5
|
||||
@ -633,5 +633,5 @@ ENTRY(switch_trampoline, 0)
|
||||
;;
|
||||
br.call.sptk.few b6=fork_exit
|
||||
|
||||
END(switch_trampoline)
|
||||
END(fork_trampoline)
|
||||
|
||||
|
@ -256,7 +256,7 @@ cpu_fork(p1, p2, flags)
|
||||
* child process doesn't stay in the kernel for long!
|
||||
*
|
||||
* We should really deal with the function descriptor
|
||||
* for fork_return() in switch_trampoline() so that a
|
||||
* for fork_return() in fork_trampoline() so that a
|
||||
* kthread started from a loaded module can have the
|
||||
* right value for gp.
|
||||
*/
|
||||
@ -264,7 +264,7 @@ cpu_fork(p1, p2, flags)
|
||||
up->u_pcb.pcb_r4 = FDESC_FUNC(fork_return);
|
||||
up->u_pcb.pcb_r5 = FDESC_FUNC(exception_restore);
|
||||
up->u_pcb.pcb_r6 = (u_int64_t)p2;
|
||||
up->u_pcb.pcb_b0 = FDESC_FUNC(switch_trampoline);
|
||||
up->u_pcb.pcb_b0 = FDESC_FUNC(fork_trampoline);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -151,7 +151,7 @@ int savectx __P((struct pcb *));
|
||||
void restorectx __P((struct pcb *));
|
||||
void set_iointr __P((void (*)(void *, unsigned long)));
|
||||
void switch_exit __P((struct proc *)); /* MAGIC */
|
||||
void switch_trampoline __P((void)); /* MAGIC */
|
||||
void fork_trampoline __P((void)); /* MAGIC */
|
||||
void syscall __P((int, u_int64_t *, struct trapframe *));
|
||||
void trap __P((int vector, int imm, struct trapframe *framep));
|
||||
|
||||
|
@ -209,7 +209,7 @@ cpu_fork(p1, p2, flags)
|
||||
(u_int64_t)exception_return; /* s1: ra */
|
||||
up->u_pcb.pcb_context[2] = (u_long) p2; /* s2: a1 */
|
||||
up->u_pcb.pcb_context[7] =
|
||||
(u_int64_t)switch_trampoline; /* ra: assembly magic */
|
||||
(u_int64_t)fork_trampoline; /* ra: assembly magic */
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -209,7 +209,7 @@ cpu_fork(p1, p2, flags)
|
||||
(u_int64_t)exception_return; /* s1: ra */
|
||||
up->u_pcb.pcb_context[2] = (u_long) p2; /* s2: a1 */
|
||||
up->u_pcb.pcb_context[7] =
|
||||
(u_int64_t)switch_trampoline; /* ra: assembly magic */
|
||||
(u_int64_t)fork_trampoline; /* ra: assembly magic */
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user