tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: [PATCH] swapcontext vs libpthread
On Sat, Aug 25, 2012 at 03:10:51AM -0400, Christos Zoulas wrote:
[Call a C function from hppa assembly]
> Yes, that loads the address to %1, you'll need to call afterwards.
It seems to be done with "bv,n %r0(%r1)". I understand bv
is branch-something, %r1 makes sense, but I am not sure about %r0.
I would have something like this:
#ifdef PIC
ldw HPPA_FRAME_EDP(%sp), %r19
addil LT%_C_LABEL(setcontext), %r19
ldw RT%_C_LABEL(setcontext)(%r1), %r1
#else
ldil L%_C_LABEL(setcontext), %r1
ldo R%_C_LABEL(setcontext)(%r1), %r1
#endif
bv,n %r0(%r1)
> Ok, sounds good. Portmasters, please chime in!
I will prepare a patch with all libc proposed changes in about
18 hours.
--
Emmanuel Dreyfus
manu%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index