Thread (4 messages) flat view 4 messages, 2 authors, 2022-07-25

Re: [PATCH] powerpc/purgatory: Omit use of bin2c

From: Masahiro Yamada <masahiroy@kernel.org>
Date: 2022-07-25 01:59:37
Also in: lkml

On Mon, Jul 25, 2022 at 10:42 AM Segher Boessenkool
[off-list ref] wrote:
On Sun, Jun 26, 2022 at 07:40:37AM +0900, Masahiro Yamada wrote:
quoted
The .incbin assembler directive is much faster than bin2c + $(CC).
And perhaps more importantly it is simpler and less clumsy.
quoted
--- /dev/null
+++ b/arch/powerpc/purgatory/kexec-purgatory.S
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
+     .section .rodata, "a"
+
+     .align  8
+kexec_purgatory:
+     .globl  kexec_purgatory
+     .incbin "arch/powerpc/purgatory/purgatory.ro"
+.Lkexec_purgatroy_end:
Typo here (s/ro/or/)

Nice catch. Thanks.

I've sent v2.


quoted
+
+     .align  8
+kexec_purgatory_size:
+     .globl  kexec_purgatory_size
+     .quad   .Lkexec_purgatroy_end - kexec_purgatory
And here again ofc.

Looks good to me otherwise, nice cleanup :-)

Reviewed-by: Segher Boessenkool <redacted>


Segher


-- 
Best Regards
Masahiro Yamada
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help