This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Question About Macros: CYGNUM_HAL_STACK_INTERRUPT_SIZEand CYGNUM_HAL_COMMON_INTERRUPTS_STACK_SIZE??
- From: Jonathan Larmour <jifl 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: Thu, 09 Jan 2003 06:50:41 +0000
- Subject: Re: [ECOS] Question About Macros: CYGNUM_HAL_STACK_INTERRUPT_SIZEand CYGNUM_HAL_COMMON_INTERRUPTS_STACK_SIZE??
- References: <BDEPKKELILOKGOAOMONOEENICAAA.jameshq@liv.ac.uk>
Qiang Huang wrote:
> Hi all:
> The macro: CYGNUM_HAL_COMMON_INTERRUPTS_STACK_SIZE is normally defined
> in vector.S for defining the stack to be used while processing the
> interrupt(nested interrupt) if seperate interrupt stack is needed. but what
> is macro CYGNUM_HAL_STACK_INTERRUPT_SIZE for? and how can I calculate it?
That's completely unrelated. It's the amount of stack used by taking an
interrupt, rounded up if need be. Look at the various architecture HALs
for examples.
> Thanks a lot.
>
> BTW CYGNUM_HAL_STACK_SIZE_MINIMUM and CYGNUM_HAL_STACK_SIZE_TYPICAL are
> related to CYGNUM_HAL_STACK_INTERRUPT_SIZE, what are those used for?
Minimum is meant to be the minimum stack size you can get away with to get
into a C call frame from a thread; with no stack variables defined.
Although HAL developers have (incorrectly) tended to make these values too
high.
Typical is a suggested reasonable stack size for a smallish app. It has no
meaning beyond that, and is primarily only used by eCos tests for expediency.
Jifl
--
eCosCentric http://www.eCosCentric.com/ <info@eCosCentric.com>
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss