Skip to contentSkip to conversation

Inline Assembly Help request]

Fwd: Re: Joel Soete 2 participants 2 messages Sep 13, 2002

lore
Share & tools
lore

Joel Soete

author
#0 lore raw
Quoted 8 lines · Paul Bame

As jda mentioned, the ex_table stuff is a bit complex. You can find out how the x86 exception table works in linux/Documentation/exception.txt but parisc is a little different.
I leave it to you to locate the relevent
exception handler somewhere in arch/parisc/kernel/ A thorough understanding of the exception handler method is necessary to understand and/or change the code you are working with.

is it do_page_fault (in fault.c) which use search_exception_table(...)?

Thanks,
Joel

PS: Do you have an idea how may I figure out in which registers are stored the two parts of a 64bits int (always contigus) or would it be better to work with x address (in put_user_asm("stw",x,ptr)).

I also presume that there is noe way for gas to simulate (some kind of macro ) std and ldd from pa2 onto pa1. It would be too easy :)?

#1 lore raw
Quoted 3 lines

PS: Do you have an idea how may I figure out in which registers are stored the two parts of a 64bits int (always contigus) or would it be better to work with x address (in put_user_asm("stw",x,ptr)).

There is no hard and fast rule. The treatment used by GCC is defined in HARD_REGNO_MODE_OK in pa32-regs.h. Currently we used consecutive pairs of registers. This may be subject to change though.

Dave

Signature · 2 lines
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)