From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.231]) by ozlabs.org (Postfix) with ESMTP id 186A4DDE0D for ; Mon, 7 Apr 2008 16:37:16 +1000 (EST) Received: by wr-out-0506.google.com with SMTP id 67so1274963wri.3 for ; Sun, 06 Apr 2008 23:37:14 -0700 (PDT) Message-ID: Date: Mon, 7 Apr 2008 12:07:14 +0530 From: "Deepak Gaur" To: linuxppc-embedded@ozlabs.org Subject: Re:Boot freezes at memset_io in early_init MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11718_4592577.1207550234373" List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_11718_4592577.1207550234373 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all, While booting MVL linux on MPC8560 based board the kernel goes into a infinite loop in setup.c arch/ppc/kernel/head_fsl_booke.S ------------------------------------ bl early_init arch/ppc/kernel/setup.c ---------------------------------------- unsigned long early_init(int r3, int r4, int r5) { unsigned long phys; unsigned long offset = reloc_offset(); /* Default */ phys = offset + KERNELBASE; /* First zero the BSS -- use memset, some arches don't have * caches on yet */ memset_io(PTRRELOC(&__bss_start), 0, _end - __bss_start); __bss_start is 0xc039b00 and __bss_stop = _end =c03c7d90 _end Please anyone give me some pointers to understand this i.e use of PTRRELOC and REASON BEHIND clearing area from __bss_start to _end - __bss_start even though lot of symbols and functions are defined here(as per System.map) System.map --------------------- c039b000 A __bss_start c039b000 A __chrp_begin c039b000 A __chrp_end c039b000 A __init_end c039b000 A __openfirmware_begin c039b000 A __openfirmware_end c039b000 A __pmac_begin c039b000 A __pmac_end c039b000 A __prep_begin c039b000 A __prep_end c039b000 B system_state c039b004 B late_time_init c039b008 b execute_command c039b00c b panic_later c039b010 b panic_param c039b014 B Version_132618 ..... ..... c03c4458 B ic_nameservers c03c4464 B unix_socket_table c03c4464 B unix_table_lock c03c4868 b auth_domain_table c03c4868 b authtab_lock c03c4868 b packet_sklist_lock c03c4868 b rpc_credcache_lock c03c4868 b rpc_queue_lock c03c4868 b rpc_sched_lock c03c4968 b ip_table c03c4d68 b pmap_lock c03c4d68 b pmap_stats c03c4d90 b cache_defer_hash c03c4d90 b cache_defer_lock c03c4d90 b cache_list_lock c03c4d90 b queue_lock c03c5d90 b write_buf c03c7d90 A __bss_stop c03c7d90 A _end Thanks, Deepak Gaur ------=_Part_11718_4592577.1207550234373 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all,

While booting MVL linux on MPC8560 based board the kernel goes into a infinite loop in setup.c

arch/ppc/kernel/head_fsl_booke.S
------------------------------------
bl early_init

arch/ppc/kernel/setup.c
----------------------------------------
unsigned long
early_init(int r3, int r4, int r5)
{
        unsigned long phys;
        unsigned long offset = reloc_offset();

        /* Default */
        phys = offset + KERNELBASE;

        /* First zero the BSS -- use memset, some arches don't have
         * caches on yet */
       
        memset_io(PTRRELOC(&__bss_start), 0, _end - __bss_start);

        __bss_start is 0xc039b00 and __bss_stop = _end =c03c7d90  _end


        Please anyone give me some pointers to understand this i.e use of PTRRELOC and REASON BEHIND clearing area from __bss_start to _end - __bss_start even though lot of symbols and functions are defined here(as per System.map)

System.map
---------------------
c039b000 A __bss_start
c039b000 A __chrp_begin
c039b000 A __chrp_end
c039b000 A __init_end
c039b000 A __openfirmware_begin
c039b000 A __openfirmware_end
c039b000 A __pmac_begin
c039b000 A __pmac_end
c039b000 A __prep_begin
c039b000 A __prep_end
c039b000 B system_state
c039b004 B late_time_init
c039b008 b execute_command
c039b00c b panic_later
c039b010 b panic_param
c039b014 B Version_132618
.....
.....

c03c4458 B ic_nameservers
c03c4464 B unix_socket_table
c03c4464 B unix_table_lock
c03c4868 b auth_domain_table
c03c4868 b authtab_lock
c03c4868 b packet_sklist_lock
c03c4868 b rpc_credcache_lock
c03c4868 b rpc_queue_lock
c03c4868 b rpc_sched_lock
c03c4968 b ip_table
c03c4d68 b pmap_lock
c03c4d68 b pmap_stats
c03c4d90 b cache_defer_hash
c03c4d90 b cache_defer_lock
c03c4d90 b cache_list_lock
c03c4d90 b queue_lock
c03c5d90 b write_buf
c03c7d90 A __bss_stop
c03c7d90 A _end

Thanks,

Deepak Gaur ------=_Part_11718_4592577.1207550234373--