2.6 ppc assembly conventions documented anywhere?
cfriesen at nortelnetworks.com
Fri Apr 2 03:05:42 EST 2004
Hi, hoping you can help me out...
I'm working on some low-level stuff, and I'm having a bit of a problem
figuring out things like register conventions, call graphs, etc. Are
there any documents around describing this stuff for 2.6 ppc (32-bit)?
My most immediate issues are:
1) what are the possible return paths from kernelspace to userspace? I
have some code that I want to run on every return to userspace. I put
it in entry.S just after "restore_user" and before the CONFIG_PREEMPT
stuff, but I seem to have made it back to userspace somehow without
hitting the code.
2) how do I call panic() from entry.S? I tried the following but it
didn't seem to work:
lis r3,hrt_ps at h
ori r3,r3,hrt_ps at l
lis r4,panic at h
ori r4,r4,panic at l
/* panic text */
hrt_ps: .string "Nested HRT_ACCT entry\n"
hrt_pe: .string "Nested HRT_ACCT exit\n"
Thanks, and please cc me on replies.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-dev