summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/boot
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2018-08-13 18:56:37 -0700
committerMax Filippov <jcmvbkbc@gmail.com>2018-08-20 12:28:05 -0700
commitbaac1d36d15d16fc064a901918bf844a36e97b1b (patch)
tree5901e7718fa200cd812da6cc93f97b29f36e8a11 /arch/xtensa/boot
parent8b5163eb988067093064ecb10265da27fd000cad (diff)
downloadlinux-baac1d36d15d16fc064a901918bf844a36e97b1b.tar.bz2
xtensa: make bootparam parsing optional
A kernel may not need any boot parameters from the bootloader, allow disabling bootparam parsing in that case. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/boot')
-rw-r--r--arch/xtensa/boot/boot-elf/bootstrap.S6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/xtensa/boot/boot-elf/bootstrap.S b/arch/xtensa/boot/boot-elf/bootstrap.S
index b6aa85328ac0..718c99dcfe7a 100644
--- a/arch/xtensa/boot/boot-elf/bootstrap.S
+++ b/arch/xtensa/boot/boot-elf/bootstrap.S
@@ -42,7 +42,10 @@ RomInitAddr:
.word KERNELOFFSET
#endif
RomBootParam:
- .word _bootparam
+#ifndef CONFIG_PARSE_BOOTPARAM
+ .word 0
+#else
+ .word _bootparam
_bootparam:
.short BP_TAG_FIRST
.short 4
@@ -50,6 +53,7 @@ _bootparam:
.short BP_TAG_LAST
.short 0
.long 0
+#endif
.align 4
_SetupMMU: