* 2.6 ppc assembly conventions documented anywhere?
@ 2004-04-01 17:05 Chris Friesen
0 siblings, 0 replies; only message in thread
From: Chris Friesen @ 2004-04-01 17:05 UTC (permalink / raw)
To: linuxppc-dev
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@h
ori r3,r3,hrt_ps@l
lis r4,panic@h
ori r4,r4,panic@l
li r5,MSR_KERNEL
mtspr SRR0,r4
mtspr SRR1,r5
mtlr r4
SYNC
RFI
/* panic text */
hrt_ps: .string "Nested HRT_ACCT entry\n"
hrt_pe: .string "Nested HRT_ACCT exit\n"
.align 4,0
Thanks, and please cc me on replies.
Chris
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-04-01 17:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-01 17:05 2.6 ppc assembly conventions documented anywhere? Chris Friesen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).