From: Chris Friesen <cfriesen@nortelnetworks.com>
To: linuxppc-dev@lists.linuxppc.org
Subject: 2.6 ppc assembly conventions documented anywhere?
Date: Thu, 01 Apr 2004 12:05:42 -0500 [thread overview]
Message-ID: <406C4BE6.1050807@nortelnetworks.com> (raw)
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/
reply other threads:[~2004-04-01 17:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=406C4BE6.1050807@nortelnetworks.com \
--to=cfriesen@nortelnetworks.com \
--cc=linuxppc-dev@lists.linuxppc.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).