Module: xenomai-head Branch: master Commit: 92e7162384073c698817b62a3aa57af8d48f6705 URL: http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=92e7162384073c698817b62a3aa57af8d48f6705
Author: Philippe Gerum <r...@xenomai.org> Date: Sun Oct 31 12:30:20 2010 +0100 hal/nios2: remove redundant stack clean up --- include/asm-nios2/bits/pod.h | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/asm-nios2/bits/pod.h b/include/asm-nios2/bits/pod.h index a3d05c9..d5ff2ed 100644 --- a/include/asm-nios2/bits/pod.h +++ b/include/asm-nios2/bits/pod.h @@ -85,8 +85,10 @@ static inline void xnarch_init_thread(struct xnarchtcb *tcb, childregs = (struct tramp_stack *) ((unsigned long)tcb->stackbase + tcb->stacksize - sizeof(*childregs)); - - memset(childregs, 0, sizeof(*childregs)); + /* + * Stack space is guaranteed to be clean, so no need to zero + * it again. + */ childregs->sw.gp = gp; /* Inherit GP */ childregs->sw.ra = (unsigned long)&rthal_thread_trampoline; childregs->ra = (unsigned long)&xnarch_thread_trampoline; _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git