diff options
author | Stephen Warren <swarren@nvidia.com> | 2016-02-12 14:27:56 -0700 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2016-02-21 13:42:51 +0800 |
commit | 4fd64d02b2bb7fe583c1246c79b9658223d96442 (patch) | |
tree | ebc461d352bcac8a92c18c4fa514918de9ab3e48 /arch/x86/cpu/mp_init.c | |
parent | 20680b560a17fb29c862de77930cfbf76b24f83c (diff) | |
download | u-boot-imx-4fd64d02b2bb7fe583c1246c79b9658223d96442.zip u-boot-imx-4fd64d02b2bb7fe583c1246c79b9658223d96442.tar.gz u-boot-imx-4fd64d02b2bb7fe583c1246c79b9658223d96442.tar.bz2 |
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: 45b5a37836d5 ("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>
Diffstat (limited to 'arch/x86/cpu/mp_init.c')
-rw-r--r-- | arch/x86/cpu/mp_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/cpu/mp_init.c b/arch/x86/cpu/mp_init.c index 7917350..fc2fb5b 100644 --- a/arch/x86/cpu/mp_init.c +++ b/arch/x86/cpu/mp_init.c @@ -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); |