From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28970 invoked by alias); 8 Jan 2008 12:05:36 -0000 Received: (qmail 28950 invoked by uid 22791); 8 Jan 2008 12:05:34 -0000 X-Spam-Check-By: sourceware.org Received: from gum.itee.uq.edu.au (HELO gum.itee.uq.edu.au) (130.102.66.1) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 08 Jan 2008 12:05:04 +0000 Received: from filter2.itee.uq.edu.au (filter2.itee.uq.edu.au [130.102.79.22]) by gum.itee.uq.edu.au (8.13.1/8.13.1) with ESMTP id m08C4x2G024198; Tue, 8 Jan 2008 22:04:59 +1000 Received: from g5099368 (g509-9368.itee.uq.edu.au [130.102.64.130]) by filter2.itee.uq.edu.au (8.13.1/8.13.1) with SMTP id m08C4xMu015525; Tue, 8 Jan 2008 22:04:59 +1000 Message-ID: <002801c851ee$b0cd4cd0$82406682@itee.uq.edu.au> Reply-To: "Yi Tang" From: "Yi Tang" To: "Gary Thomas" Cc: "eCos-discuss" References: <001b01c851e9$c19b7640$82406682@itee.uq.edu.au> <47836219.7010209@mlbassoc.com> Date: Tue, 08 Jan 2008 12:05:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] dsr_list not initialized as NULL X-SW-Source: 2008-01/txt/msg00020.txt.bz2 Hi Gary, Thanks for your reply. So you mean the dsr_list should be zeroed when bootup. static Cyg_Interrupt* volatile dsr_list[CYGNUM_KERNEL_CPU_MAX] I'm working on the leon3 soft core (sparc arch). The strange thing is that I run the same executable file on the leon3 simulation processor and dsr_list is zeroed ok at startup. Also I wonder whether that would cause some trouble if I modify the kernel file and initialize the dsr_list to NULL manually? Regards, Yi ----- Original Message ----- > Everything which ends up in 'bss' (such as unitialized > arrays) should be zeroed when eCos starts up. > > What architecture (CPU core) is in your FPGA? The code > that does this is in the eCos startup code, typically: > hal//arch/current/src/vectors.S > > -- > ------------------------------------------------------------ > Gary Thomas | Consulting for the > MLB Associates | Embedded world > ------------------------------------------------------------ > > -- > Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos > and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss > > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss