All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Chargin <jimccrown@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Stack size
Date: Thu, 26 Dec 2013 06:43:34 -0800	[thread overview]
Message-ID: <52BC4096.6050402@gmail.com> (raw)
In-Reply-To: <20131224221131.E80863824AE@gemini.denx.de>

Dear Parimala Baggiri,

To add a bit of context to Wolfgang Denk's reply...

I work with Freescale e300 and e500 SOCs, other processors may do things 
a bit differently.

U-Boot places several things in very high RAM. leaving the lower areas 
of RAM available for loading the OS and/or application(s).

The stand alone application uses the U-Boot stack; it does not have its own.

For Freescale processors, the stack grows from higher addresses to lower.

Among the several things U-Boot places in upper RAM are the RAM-based 
copy of U-Boot itself, the video display buffer (if used) and the stack 
used by U-Boot and any stand alone application. This will require around 
a few megabytes of RAM storage.

The stack is located below all other items placed in RAM by U-Boot and 
so is limited to the remaining size of RAM (less the amount of space 
needed by the OS or the stand alone application, usually in the very 
lowest address range). In my experience, this is an unusually large area 
for a stack; I've never gotten anywhere close to an overflow.

Can you supply more information about why you are asking about 
increasing stack size? Have you encountered a situation which seems to 
indicate a stack overflow?

What processor and board are you interested in?

Best regards,
Jim
-- 
Jim Chargin
AJA Video Systems                       jimc at aja.com
(530) 271-3334                          http://www.aja.com

On 12/24/2013 02:11 PM, Wolfgang Denk wrote:
> Dear Parimala Baggiri,
>
> In message <CAD6P=4hWjGozdwZhbk00fVGyPry63sM4ErEXgpUFsJpihD9kWA@mail.gmail.com> you wrote:
>>
>> How to increase the user mode stack size which will be used by the
>> standalone application in u-boot?
>
> Add more system RAM.
>
> Best regards,
>
> Wolfgang Denk
>

  parent reply	other threads:[~2013-12-26 14:43 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-24  6:37 [U-Boot] Stack size Parimala Baggiri
2013-12-24 22:11 ` Wolfgang Denk
2013-12-26 12:18   ` Parimala Baggiri
2013-12-26 18:34     ` Wolfgang Denk
2013-12-26 14:43   ` James Chargin [this message]
2013-12-27  5:37     ` Parimala Baggiri
2013-12-27 16:00       ` James Chargin
2013-12-27 16:32       ` Wolfgang Denk
2013-12-30 10:17         ` Parimala Baggiri
2013-12-30 17:08           ` Wolfgang Denk
2013-12-31  5:53             ` Parimala Baggiri
2013-12-31  8:41               ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52BC4096.6050402@gmail.com \
    --to=jimccrown@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.