clone_thread: Add arch_clone_thread()
Fujitsu: POSTK_DEBUG_ARCH_DEP_23 Refs: #969 Change-Id: Ic15765b8c9e956c95fc50b333b01464d87450d3c
This commit is contained in:
committed by
Dominique Martinet
parent
9db8d115d9
commit
fb98664f49
@ -1157,7 +1157,6 @@ err:
|
||||
static int check_and_allocate_fp_regs(struct thread *thread);
|
||||
void save_fp_regs(struct thread *thread);
|
||||
|
||||
#ifdef POSTK_DEBUG_ARCH_DEP_23 /* add arch dep. clone_thread() function */
|
||||
void arch_clone_thread(struct thread *othread, unsigned long pc,
|
||||
unsigned long sp, struct thread *nthread)
|
||||
{
|
||||
@ -1167,10 +1166,6 @@ void arch_clone_thread(struct thread *othread, unsigned long pc,
|
||||
asm("mrs %0, tpidr_el0" : "=r" (tls));
|
||||
othread->tlsblock_base = nthread->tlsblock_base = tls;
|
||||
|
||||
if ((othread->fp_regs != NULL) && (check_and_allocate_fp_regs(nthread) == 0)) {
|
||||
memcpy(nthread->fp_regs, othread->fp_regs, sizeof(fp_regs_struct));
|
||||
}
|
||||
|
||||
/* if SVE enable, takeover lower 128 bit register */
|
||||
if (likely(elf_hwcap & HWCAP_SVE)) {
|
||||
fp_regs_struct fp_regs;
|
||||
@ -1180,7 +1175,6 @@ void arch_clone_thread(struct thread *othread, unsigned long pc,
|
||||
thread_fpsimd_to_sve(nthread, &fp_regs);
|
||||
}
|
||||
}
|
||||
#endif /* POSTK_DEBUG_ARCH_DEP_23 */
|
||||
|
||||
/*@
|
||||
@ requires \valid(handler);
|
||||
|
||||
Reference in New Issue
Block a user