lkml.org 
[lkml]   [2019]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 15/15] riscv: disable the EFI PECOFF header for M-mode
Date
No point in bloating the kernel image with a bootloader header if
we run bare metal.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
arch/riscv/kernel/head.S | 2 ++
1 file changed, 2 insertions(+)

diff --git a/arch/riscv/kernel/head.S b/arch/riscv/kernel/head.S
index 670e5cacb24e..09fcf3d000c0 100644
--- a/arch/riscv/kernel/head.S
+++ b/arch/riscv/kernel/head.S
@@ -16,6 +16,7 @@

__INIT
ENTRY(_start)
+#ifndef CONFIG_M_MODE
/*
* Image header expected by Linux boot-loaders. The image header data
* structure is described in asm/image.h.
@@ -47,6 +48,7 @@ ENTRY(_start)

.global _start_kernel
_start_kernel:
+#endif /* CONFIG_M_MODE */
/* Mask all interrupts */
csrw CSR_XIE, zero
csrw CSR_XIP, zero
--
2.20.1
\
 
 \ /
  Last update: 2019-08-13 17:56    [W:0.093 / U:7.644 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site