[U-Boot] [PATCH 1/1] ARMv8: get new GD address from gd->new_gd directly

2017-09-22 Thread zijun_hu
From: zijun_hu the new GD address is calculated via board data BD currently it require the new GD area locates below BD tightly, so a strict constraint is imposed on memory layout which maybe make special platform unpleasant. fix it by getting new GD address from gd->new_gd directly. Sig

[U-Boot] [PATCH 1/1] ARMv8: fix error in freeing stack frame

2017-09-23 Thread zijun_hu
From: zijun_hu relocate_code() allocates 32 bytes stack frame but only 16 bytes are freed before return. it will cause errors to possible previous frames and doesn't make relocate_code() look like a function. fix by freeing 32 bytes stack space Signed-off-by: zijun_hu --- arch/ar

[U-Boot] [PATCH 1/1] ARMv8: make master CPU checking logic more clear

2017-09-25 Thread zijun_hu
From: zijun_hu macro branch_if_master checks master CPU via (Aff3 & (Aff2:Aff1:Aff0)) it is simple but a little obscure. fix by checking Affx fields within MPIDR_EL1 directly. Signed-off-by: zijun_hu --- arch/arm/include/asm/macro.h | 1 + 1 file changed, 1 insertion(+) diff --git a/