All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Marek Behún" <marek.behun@nic.cz>
To: Stefan Roese <sr@denx.de>
Cc: Holger Brunck <holger.brunck@hitachienergy.com>,
	Tom Rini <trini@konsulko.com>,
	U-Boot Mailing List <u-boot@lists.denx.de>,
	Tony Dinh <mibodhi@gmail.com>
Subject: Re: kirkwood stack size
Date: Thu, 28 Oct 2021 17:30:54 +0200	[thread overview]
Message-ID: <20211028173054.3910cba1@thinkpad> (raw)
In-Reply-To: <d5d6d67d-596e-547e-efc5-ee932fe8838f@denx.de>

OK I discovered how it works :)

Pre-relocation only env_init() is called, which does not call
the .load() env driver method, only .init().

So the 2K stack usage in env_eeprom_load() is only used after
relocation, and at that time stack is big enough to contain it.

This means that I can greatly simplify the env_eeprom_load() function.

Marek

  reply	other threads:[~2021-10-28 15:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-27 23:06 kirkwood stack size Tony Dinh
2021-10-28  1:28 ` Marek Behún
2021-10-28  1:50   ` Tony Dinh
2021-10-28  6:39   ` Stefan Roese
2021-10-28  9:37     ` Holger Brunck
2021-10-28 14:10       ` Stefan Roese
2021-10-28 15:30         ` Marek Behún [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-10-27 22:07 Marek Behún
2021-10-28  6:35 ` Stefan Roese

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=20211028173054.3910cba1@thinkpad \
    --to=marek.behun@nic.cz \
    --cc=holger.brunck@hitachienergy.com \
    --cc=mibodhi@gmail.com \
    --cc=sr@denx.de \
    --cc=trini@konsulko.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.