[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-sh3/49597: swapcontext(3) stack pointer problem on NetBSD/sh3
The following reply was made to PR port-sh3/49597; it has been noted by GNATS.
From: Valery Ushakov <uwe%stderr.spb.ru@localhost>
Subject: Re: port-sh3/49597: swapcontext(3) stack pointer problem on NetBSD/sh3
Date: Thu, 22 Jan 2015 17:39:58 +0300
On Thu, Jan 22, 2015 at 14:05:00 +0000, oshima-ya%yagoto-urayama.jp@localhost wrote:
> In src/lib/libc/arch/sh3/gen/swapcontext.S,
> Though SP is incremented 4 or 3 times in swapcontext(3)
> till getcontext(2), it does not adjust stack pointer
> in ocup->uc_mcontext.__gregs[_REG_SP] after that.
Hmm, not directly related, but while looking at this... Don't we also
mov #0, r0
in getcontext (src/lib/libc/arch/sh3/sys/getcontext.S)?
Main Index |
Thread Index |