diff options
author | Shiji Yang <yangshiji66@outlook.com> | 2023-08-03 09:47:17 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-08-09 09:21:42 -0400 |
commit | ccea96f443e2d35cf5ecc341bb14569029eb93b8 (patch) | |
tree | d5940392747a93bf244739ddc337fdec9ce98a34 /arch/xtensa | |
parent | 506df9dc5881b74ca6463b89e9edcd14732a7da5 (diff) | |
download | u-boot-ccea96f443e2d35cf5ecc341bb14569029eb93b8.zip u-boot-ccea96f443e2d35cf5ecc341bb14569029eb93b8.tar.gz u-boot-ccea96f443e2d35cf5ecc341bb14569029eb93b8.tar.bz2 |
treewide: unify the linker symbol reference format
Now all linker symbols are declared as type char[]. Though we can
reference the address via both the array name 'var' and its address
'&var'. It's better to unify them to avoid confusing developers.
This patch converts all '&var' linker symbol refrences to the most
commonly used format 'var'.
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/xtensa')
-rw-r--r-- | arch/xtensa/lib/relocate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/xtensa/lib/relocate.c b/arch/xtensa/lib/relocate.c index 3dc8edc..a499590 100644 --- a/arch/xtensa/lib/relocate.c +++ b/arch/xtensa/lib/relocate.c @@ -9,8 +9,8 @@ int clear_bss(void) { - size_t len = (size_t)&__bss_end - (size_t)&__bss_start; + size_t len = (size_t)__bss_end - (size_t)__bss_start; - memset((void *)&__bss_start, 0x00, len); + memset((void *)__bss_start, 0x00, len); return 0; } |