[PATCH 1/1] RISC-V: Change signature header field to use `.ascii` instead of opcode
Florian Wagner
florian.wagner at nextsilicon.com
Mon Jan 17 09:39:41 PST 2022
The `MZ` in the signature header field is now encoded via `.ascii` to make
the kernel compile without the `c` extension.
Signed-off-by: Florian Wagner <florian.wagner at nextsilicon.com>
Signed-off-by: Yaron Dinkin <yaron.dinkin at nextsilicon.com>
---
arch/riscv/kernel/head.S | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/riscv/kernel/head.S b/arch/riscv/kernel/head.S
index f52f01ecbeea..931b63464b90 100644
--- a/arch/riscv/kernel/head.S
+++ b/arch/riscv/kernel/head.S
@@ -48,7 +48,7 @@ ENTRY(_start)
/*
* This instruction decodes to "MZ" ASCII required by UEFI.
*/
- c.li s4,-13
+ .ascii "MZ"
j _start_kernel
#else
/* jump to start kernel */
--
2.25.1
--
This e-mail message and any attachments thereto are intended only for the
person or entity to which it is addressed and may contain confidential
and/or privileged material. Any retransmission, dissemination, copying or
other use of, or taking of any action in reliance upon this information is
prohibited. If you are not the intended addressee, please contact the
sender immediately and delete the materials and information from your
device and system and confirm the deletion by reply e-mail.
More information about the linux-riscv
mailing list