From: David van Moolenbroek Date: Tue, 7 Jul 2009 18:55:11 +0000 (+0000) Subject: Remove leftover PowerPC cruft. Reported by Evgeniy Ivanov. X-Git-Tag: v3.1.5~228 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=5e173f55f57a31160b0557c805e0690e615102cf;p=minix.git Remove leftover PowerPC cruft. Reported by Evgeniy Ivanov. --- diff --git a/kernel/system/do_sigreturn.c b/kernel/system/do_sigreturn.c index aedf2a603..7079f9392 100644 --- a/kernel/system/do_sigreturn.c +++ b/kernel/system/do_sigreturn.c @@ -53,11 +53,8 @@ message *m_ptr; /* pointer to request message */ #endif /* Restore the registers. */ -#if _MINIX_CHIP == _CHIP_POWERPC - memcpy(&rp->p_reg, &sc.sc_regs, sizeof(struct stackframe_s)); -#else memcpy(&rp->p_reg, &sc.sc_regs, sizeof(struct sigregs)); -#endif + return(OK); } #endif /* USE_SIGRETURN */ diff --git a/kernel/system/do_sigsend.c b/kernel/system/do_sigsend.c index 1b2b92a76..c12c2c406 100644 --- a/kernel/system/do_sigsend.c +++ b/kernel/system/do_sigsend.c @@ -49,11 +49,6 @@ message *m_ptr; /* pointer to request message */ /* Copy the registers to the sigcontext structure. */ memcpy(&sc.sc_regs, (char *) &rp->p_reg, sizeof(struct sigregs)); -#ifdef POWERPC - memcpy(&sc.sc_regs, (char *) &rp->p_reg, struct(stackframe_s)); -#else - memcpy(&sc.sc_regs, (char *) &rp->p_reg, sizeof(struct sigregs)); -#endif /* Finish the sigcontext initialization. */ sc.sc_flags = 0; /* unused at this time */