
On Fri, May 8, 2015 at 3:15 PM, Marek Vasut marex@denx.de wrote:
On Friday, May 08, 2015 at 11:51:36 PM, Tim Harvey wrote:
Allocating space for temporary env on the stack makes env_relocate_spec() unsuitable for SPL environments which have very little stack.
Well yeah, but what if you don't have malloc area ? I'd expect that the be the case in SPL quite often.
Best regards, Marek Vasut
Marek,
I suppose it depends on when in SPL you need env. I assume memory controller is about the first thing done after things like iomux. If this is a problem then at least nand env (env_nand.c) is broken too as that's where I got my inspiration for this after I realized I was hanging due to not having enough stack space.
It looks like Tom may have a solution that I'll look at.
Tim