This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: hal_zero_bss() question?
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: "Qiang Huang" <jameshq at liverpool dot ac dot uk>
- Cc: "Ecos-Discuss" <ecos-discuss at sources dot redhat dot com>
- Date: 01 Dec 2002 17:46:50 +0000
- Subject: Re: [ECOS] hal_zero_bss() question?
- References: <BDEPKKELILOKGOAOMONOEEKGCAAA.jameshq@liv.ac.uk>
"Qiang Huang" <jameshq@liverpool.ac.uk> writes:
> Hi all:
> Is this function used hal_zero_bss( ) for zero bss section, does this
> includes the static variable static Cyg_Interrupt* volatile
> dsr_list[CYGNUM_KERNEL_CPU_MAX] ??
It zeros all global variables that are in the BSS. These are generally
variables that have no initializers. Since dsr_list[] has no
initializers, it will be in the BSS.
> Is dsr_list[] should be zero are when
> starting up?
Yes of course. What makes you think it shouldn't be?
--
Nick Garnett - eCos Kernel Architect
http://www.eCosCentric.com/
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss