From: "wilbur.chan" <wilbur512@gmail.com>
To: linuxppc-dev@ozlabs.org
Subject: ppc rfi in head.s result in a reset?
Date: Sat, 17 Oct 2009 09:21:49 +0800 [thread overview]
Message-ID: <e997b7420910161821g3d71c5fcy6fbf72f40d52c1c3@mail.gmail.com> (raw)
ppc 6xx
In platform_init function of sandpoint.c , I delete the code of
getting command line from uboot, and set command_line to a fixed value
, which are like this:
sandpoint.c--> platform_init
#if 0
if (r3 && r6) {
/* copy board info structure */
memcpy( (void *)__res,(void *)(r3+KERNELBASE), sizeof(bd_t) );
/* copy command line */
*(char *)(r7+KERNELBASE) = 0;
strcpy(cmd_line, (char *)(r6+KERNELBASE));
}
#endif
strcpy(cmd_line, "xxx");
But I found that , when calling start_kernel in head.S (by rfi
instruction), the borad was reset into uboot, that is :
li r4,MSR_KERNEL
FIX_SRR1(r4,r5)
lis r3,start_kernel@h
ori r3,r3,start_kernel@l
mtspr SPRN_SRR0,r3
mtspr SPRN_SRR1,r4
SYNC
RFI //reset,why?
The RFI instruction here, caused the board reset to uboot. Can
someone give me some advice on how could this happened?
Thank you
next reply other threads:[~2009-10-17 1:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-17 1:21 wilbur.chan [this message]
2009-11-05 2:13 ` ppc rfi in head.s result in a reset? Tonyliu
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=e997b7420910161821g3d71c5fcy6fbf72f40d52c1c3@mail.gmail.com \
--to=wilbur512@gmail.com \
--cc=linuxppc-dev@ozlabs.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