[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191028121043.22934-13-hch@lst.de>
Date: Mon, 28 Oct 2019 13:10:43 +0100
From: Christoph Hellwig <hch@....de>
To: Palmer Dabbelt <palmer@...ive.com>,
Paul Walmsley <paul.walmsley@...ive.com>
Cc: Damien Le Moal <damien.lemoal@....com>,
linux-riscv@...ts.infradead.org, linux-kernel@...r.kernel.org,
Anup Patel <anup@...infault.org>
Subject: [PATCH 12/12] riscv: disable the EFI PECOFF header for M-mode
No point in bloating the kernel image with a bootloader header if
we run bare metal.
Signed-off-by: Christoph Hellwig <hch@....de>
Reviewed-by: Anup Patel <anup@...infault.org>
---
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 84a6f0a4b120..9bca97ffb67a 100644
--- a/arch/riscv/kernel/head.S
+++ b/arch/riscv/kernel/head.S
@@ -16,6 +16,7 @@
__INIT
ENTRY(_start)
+#ifndef CONFIG_RISCV_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_RISCV_M_MODE */
/* Mask all interrupts */
csrw CSR_IE, zero
csrw CSR_IP, zero
--
2.20.1
Powered by blists - more mailing lists