public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-BOOT] [PATCH] env: reduce the stack footprint for the env buf
Date: Sat, 05 Feb 2011 15:11:52 +0100	[thread overview]
Message-ID: <20110205141152.12782152161@gemini.denx.de> (raw)
In-Reply-To: <4D4D1987.5010405@gmail.com>

Dear Graeme Russ,

In message <4D4D1987.5010405@gmail.com> you wrote:
>
> Sounds like you have allocated too small a region for your stack - try
> increasing CONFIG_SYS_STACK_SIZE and decreasing CONFIG_SYS_MALLOC_LEN

Most systems don't have anything like CONFIG_SYS_STACK_SIZE; the stack
grows downward into free memory, and is only limited by the RAM size
and the memory areas you might be using in RAM for example to load
images or the like - the x86 implementation might be different,

> The only other thing I could think of that would make sense would be having
> the malloc heap in a completely different memory segment to the stack -
> odd, but possible

But I doubt that would actually save memory either.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Do not underestimate the value of print statements for debugging.

  reply	other threads:[~2011-02-05 14:11 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-04  3:08 [U-Boot] [U-BOOT] [PATCH] env: reduce the stack footprint for the env buf Lei Wen
2011-02-04 20:31 ` Scott Wood
2011-02-04 21:18 ` Wolfgang Denk
2011-02-05  1:21   ` Lei Wen
2011-02-05  8:30     ` Wolfgang Denk
2011-02-05  9:33       ` Graeme Russ
2011-02-05 14:11         ` Wolfgang Denk [this message]
2011-02-06 15:25       ` Lei Wen
2011-02-06 16:08         ` Wolfgang Denk
2011-02-07  4:38           ` Lei Wen
2011-02-07  5:04             ` Graeme Russ
2011-02-07  7:06               ` Wolfgang Denk
2011-02-07  6:58             ` Wolfgang Denk
2011-02-07  8:17               ` Lei Wen
2011-02-07  8:59                 ` Wolfgang Denk
2011-02-07  9:01                   ` Lei Wen
2011-02-07  9:43                     ` [U-Boot] Compiler Question Maik Hänig
2011-02-07 10:17                       ` Wolfgang Denk
2011-02-07 10:24                         ` Maik Hänig
2011-02-07 11:41                           ` Wolfgang Denk
2011-02-07 12:03                             ` Maik Hänig
2011-02-07 13:10                               ` 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=20110205141152.12782152161@gemini.denx.de \
    --to=wd@denx.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox