summaryrefslogtreecommitdiff
path: root/kexec/arch/sh/kexec-zImage-sh.c
diff options
context:
space:
mode:
Diffstat (limited to 'kexec/arch/sh/kexec-zImage-sh.c')
-rw-r--r--kexec/arch/sh/kexec-zImage-sh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kexec/arch/sh/kexec-zImage-sh.c b/kexec/arch/sh/kexec-zImage-sh.c
index 1ce185a..7399052 100644
--- a/kexec/arch/sh/kexec-zImage-sh.c
+++ b/kexec/arch/sh/kexec-zImage-sh.c
@@ -138,7 +138,7 @@ int zImage_sh_load(int argc, char **argv, const char *buf, off_t len,
* the zImage will relocate itself, but only up seems supported.
*/
- image_base = (empty_zero + (0x10000 - 1)) & ~(0x10000 - 1);
+ image_base = _ALIGN(empty_zero, 0x10000);
add_segment(info, buf, len, image_base, len);
info->entry = (void *)virt_to_phys(image_base);
return 0;