From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from m5-86.163.com (m5-86.163.com [202.108.5.86]) by ozlabs.org (Postfix) with SMTP id B9814DDDFA for ; Fri, 27 Jul 2007 23:11:12 +1000 (EST) Date: Fri, 27 Jul 2007 21:11:19 +0800 From: "poorbeyond" To: "Linux-ppc mail list" Subject: a question about mpc8xx linux Message-ID: <200707272111187341027@163.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=====003_Dragon708234805082_=====" List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. --=====003_Dragon708234805082_===== Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit my cpu is MPC860, use u-boot-1.1.4, linux-2.6.20.14 i use the "tftp 300000 uImage" command download kernel image, then use the "bootm 300000" command boot the image. i found the bootm cmd entered the /arch/ppc/kernel/head_8xx.s, stop at the instruction "rfi". is it right? after the instruction, where does the code go normally ? what should i do now? thanks .globl __start __start: mr r31,r3 /* save parameters */ mr r30,r4 mr r29,r5 mr r28,r6 mr r27,r7 /* We have to turn on the MMU right away so we get cache modes * set correctly. */ bl initial_mmu /* We now have the lower 8 Meg mapped into TLB entries, and the caches * ready to work. */ turn_on_mmu: mfmsr r0 ori r0,r0,MSR_DR|MSR_IR mtspr SPRN_SRR1,r0 lis r0,start_here@h ori r0,r0,start_here@l mtspr SPRN_SRR0,r0 SYNC rfi /* enables MMU */ poorbeyond 2007-07-27 --=====003_Dragon708234805082_===== Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: 7bit
my cpu is MPC860, use u-boot-1.1.4, linux-2.6.20.14
 
i use the "tftp 300000 uImage" command download kernel image,
 
then use the "bootm 300000" command boot the image.
 
 
i found the bootm cmd entered the /arch/ppc/kernel/head_8xx.s, stop at the instruction "rfi".
is it right? after the instruction, where does the code go normally ? what should i do now?
 
thanks
 
 .globl __start
__start:
 mr r31,r3   /* save parameters */
 mr r30,r4
 mr r29,r5
 mr r28,r6
 mr r27,r7
 
 /* We have to turn on the MMU right away so we get cache modes
  * set correctly.
  */
 bl initial_mmu
 
/* We now have the lower 8 Meg mapped into TLB entries, and the caches
 * ready to work.
 */
 
turn_on_mmu:
 mfmsr r0
 ori r0,r0,MSR_DR|MSR_IR
 mtspr SPRN_SRR1,r0
 lis r0,start_here@h
 ori r0,r0,start_here@l
 mtspr SPRN_SRR0,r0
 SYNC
 rfi    /* enables MMU */
 
 
 
 

poorbeyond
2007-07-27
--=====003_Dragon708234805082_=====--