From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.189]) by ozlabs.org (Postfix) with ESMTP id C62FEDDE2F for ; Wed, 15 Aug 2007 06:21:59 +1000 (EST) Received: by rv-out-0910.google.com with SMTP id c27so1287153rvf for ; Tue, 14 Aug 2007 13:21:59 -0700 (PDT) Message-ID: <5c9cd53b0708141321h62f0ddd1k3a57a37f52e93894@mail.gmail.com> Date: Tue, 14 Aug 2007 16:21:58 -0400 From: "mike zheng" To: linuxppc-embedded@ozlabs.org Subject: System crash on boot_e500.S on 2.4Kernel MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4963_9241108.1187122918497" List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_4963_9241108.1187122918497 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi All, I am trying to bring up MPC8548 CDS board on 2.4 kernel. I have problem in the head_e500.S. The "mtspr SRR0, r7; mtspr SRR1 r6" does not work for me. The content of R7 and R6 are not moved to SRR0 and SRR1. I am using the tool-chain from Freescale for 2.6 kernel. Any idea on this issue? Thanks, Mike Code of head_e500.S: slwi r6,r6,5 /* setup new context with other address space */ bl 1f /* Find our address */ 1: mflr r9 rlwimi r7,r9,0,20,31 addi r7,r7,24 mtspr SRR0,r7 ........No change in SRR0 mtspr SRR1,r6 ........No change in SRR1 rfi ........System crash /* 4. Clear out PIDs & Search info */ l li r6,0 mtspr SPRN_PID0,r6 mtspr SPRN_PID1,r6 mtspr SPRN_PID2,r6 mtspr SPRN_MAS6,r6 ------=_Part_4963_9241108.1187122918497 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline  
Hi All,
 
I am trying to bring up MPC8548 CDS board on 2.4 kernel. I have problem in the head_e500.S. The "mtspr SRR0, r7; mtspr SRR1 r6" does not work for me. The content of R7 and R6 are not moved to SRR0 and SRR1.  I am using the tool-chain from Freescale for 2.6 kernel. 
 
Any idea on this issue?
 
Thanks,
 
Mike
 
 
 
Code of head_e500.S:
 
 
      slwi  r6,r6,5      /* setup new context with other address space */
      bl    1f          /* Find our address */
1:    mflr  r9
      rlwimi      r7,r9,0,20,31
      addi  r7,r7,24
      mtspr SRR0,r7           ........No change in SRR0
     
mtspr SRR1,r6           ........No change in SRR1
      rfi                     ........System crash

/* 4. Clear out PIDs & Search info */      l
      li    r6,0
      mtspr SPRN_PID0,r6
      mtspr SPRN_PID1,r6
      mtspr SPRN_PID2,r6
      mtspr SPRN_MAS6,r6

 
------=_Part_4963_9241108.1187122918497--