mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
x86: fix memalign() parameter order
Purely by code inspection, it looks like the parameter order to memalign()
is swapped; its parameters are (align, size). 4096 is a likely desired
alignment, and a variable named size sounds like a size:-)
Fixes: 45b5a37836
("x86: Add multi-processor init")
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
20680b560a
commit
4fd64d02b2
1 changed files with 1 additions and 1 deletions
|
@ -243,7 +243,7 @@ static int load_sipi_vector(atomic_t **ap_countp, int num_cpus)
|
|||
|
||||
params->stack_size = CONFIG_AP_STACK_SIZE;
|
||||
size = params->stack_size * num_cpus;
|
||||
stack = memalign(size, 4096);
|
||||
stack = memalign(4096, size);
|
||||
if (!stack)
|
||||
return -ENOMEM;
|
||||
params->stack_top = (u32)(stack + size);
|
||||
|
|
Loading…
Add table
Reference in a new issue