mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Correct a comment... the stack used by ubldr is the same stack u-boot was
running on when it jumped to the ubldr entry point. None of the arches that use this code set up a different stack in their start.S routines.
This commit is contained in:
parent
b7e79ebdd0
commit
1982abfd4a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=316377
|
@ -416,7 +416,9 @@ main(int argc, char **argv)
|
|||
|
||||
/*
|
||||
* Initialise the heap as early as possible. Once this is done,
|
||||
* alloc() is usable. The stack is buried inside us, so this is safe.
|
||||
* alloc() is usable. We are using the stack u-boot set up near the top
|
||||
* of physical ram; hopefully there is sufficient space between the end
|
||||
* of our bss and the bottom of the u-boot stack to avoid overlap.
|
||||
*/
|
||||
uboot_heap_start = round_page((uintptr_t)end);
|
||||
uboot_heap_end = uboot_heap_start + 512 * 1024;
|
||||
|
|
Loading…
Reference in a new issue