linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mips/bootinfo:correct some comments of fw_arg
@ 2021-04-21  6:19 xiaochuan mao
  2021-04-21 12:00 ` Thomas Bogendoerfer
  0 siblings, 1 reply; 2+ messages in thread
From: xiaochuan mao @ 2021-04-21  6:19 UTC (permalink / raw)
  To: Thomas Bogendoerfer, 周琰杰,
	Paul Cercueil, Florian Fainelli, Tiezhu Yang
  Cc: linux-mips, linux-kernel, michael, xiaochuan mao

from arch/mips/kernel/head.S we know that use a0~a3 for fw_arg0~fw_arg3
there is some code from head.S:
	LONG_S		a0, fw_arg0		# firmware arguments
	LONG_S		a1, fw_arg1
	LONG_S		a2, fw_arg2
	LONG_S		a3, fw_arg3

Signed-off-by: xiaochuan mao <maoxiaochuan@loongson.cn>
---
 arch/mips/include/asm/bootinfo.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/include/asm/bootinfo.h b/arch/mips/include/asm/bootinfo.h
index 5be10ece3ef0..4c2e8173e6ec 100644
--- a/arch/mips/include/asm/bootinfo.h
+++ b/arch/mips/include/asm/bootinfo.h
@@ -107,7 +107,7 @@ extern void (*free_init_pages_eva)(void *begin, void *end);
 extern char arcs_cmdline[COMMAND_LINE_SIZE];
 
 /*
- * Registers a0, a1, a3 and a4 as passed to the kernel entry by firmware
+ * Registers a0, a1, a2 and a3 as passed to the kernel entry by firmware
  */
 extern unsigned long fw_arg0, fw_arg1, fw_arg2, fw_arg3;
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mips/bootinfo:correct some comments of fw_arg
  2021-04-21  6:19 [PATCH] mips/bootinfo:correct some comments of fw_arg xiaochuan mao
@ 2021-04-21 12:00 ` Thomas Bogendoerfer
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Bogendoerfer @ 2021-04-21 12:00 UTC (permalink / raw)
  To: xiaochuan mao
  Cc: 周琰杰,
	Paul Cercueil, Florian Fainelli, Tiezhu Yang, linux-mips,
	linux-kernel, michael

On Wed, Apr 21, 2021 at 02:19:17PM +0800, xiaochuan mao wrote:
> from arch/mips/kernel/head.S we know that use a0~a3 for fw_arg0~fw_arg3
> there is some code from head.S:
> 	LONG_S		a0, fw_arg0		# firmware arguments
> 	LONG_S		a1, fw_arg1
> 	LONG_S		a2, fw_arg2
> 	LONG_S		a3, fw_arg3
> 
> Signed-off-by: xiaochuan mao <maoxiaochuan@loongson.cn>
> ---
>  arch/mips/include/asm/bootinfo.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

applied to mips-next.

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-21 12:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-21  6:19 [PATCH] mips/bootinfo:correct some comments of fw_arg xiaochuan mao
2021-04-21 12:00 ` Thomas Bogendoerfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).