DragonFly BSD
DragonFly users List (threaded) for 2011-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: w3m / boehm-gc issue (really is getcontext in x86_64)


From: Markus Pfeiffer <profmakx@xxxxxxxxxxxxxxxxx>
Date: 21 Dec 2011 23:45:15 GMT

Hello,

On 2011-12-17, Matthias Rampke <matthias@rampke.de> wrote:
>
>
> On Friday, 16. December 2011 at 13:28, John Marino wrote:
>
>>  
>> FYI, Per bugs #2108, Alex created the getContext.S function a few months ago:
>> http://leaf.dragonflybsd.org/~alexh/0001-getcontext-x86_64-implementation.patch
>>  
> FWIW, here's my (failed) stab at taking Alex' getcontext.S and the old x86_64 makecontext.c and signalcontext.c from before the removal:
>
> http://2p.grade.so/dfly/getmakesignalcontext.patch
>
> It does not compile, because there is no PIC_PROLOGUE and PIC_EPILOGUE for x86_64 – I don't know why (not needed?) and my last and only steps with assembler were a long long time ago and involved only a quarter of bits so I really don't know where to go from that. But maybe the {make,signal}context implementations are of any use?
>

This code is wrong in numerous places (wrong registers used for parameter passing, wrong size of arguments etc). I posted a patch to the issue tracker but that seems to have problems too. I will try to fix those tomorrow and also provide setcontext and swapcontext.

Cheers,
Markus

-- 
Markus Pfeiffer, University of St. Andrews
email: markus.pfeiffer@morphism.de | xmpp: markus.pfeiffer@jabber.morphism.de



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]