This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: hal_zero_bss() question?


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]