* [PATCH 0/3] MIPS pbl fixes
@ 2013-06-17 16:35 Antony Pavlov
2013-06-17 16:35 ` [PATCH 1/3] MIPS: pbl: remove extra LONGSIZE definition Antony Pavlov
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Antony Pavlov @ 2013-06-17 16:35 UTC (permalink / raw)
To: barebox
[PATCH 1/3] MIPS: pbl: remove extra LONGSIZE definition
[PATCH 2/3] MIPS: pbl: use generated label in ADR macro
[PATCH 3/3] MIPS: pbl: remove extra copyrights
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/3] MIPS: pbl: remove extra LONGSIZE definition
2013-06-17 16:35 [PATCH 0/3] MIPS pbl fixes Antony Pavlov
@ 2013-06-17 16:35 ` Antony Pavlov
2013-06-17 16:35 ` [PATCH 2/3] MIPS: pbl: use generated label in ADR macro Antony Pavlov
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Antony Pavlov @ 2013-06-17 16:35 UTC (permalink / raw)
To: barebox
We already have the LONGSIZE macro definition in <asm/asm.h>.
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
arch/mips/include/asm/pbl_macros.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/mips/include/asm/pbl_macros.h b/arch/mips/include/asm/pbl_macros.h
index c32a229..6a48ca4 100644
--- a/arch/mips/include/asm/pbl_macros.h
+++ b/arch/mips/include/asm/pbl_macros.h
@@ -48,8 +48,6 @@ _pc: addiu \rd, ra, \label - _pc # label is assumed to be
.set pop
.endm
-#define LONGSIZE 4
-
.macro copy_to_link_location start_addr
.set push
.set noreorder
--
1.7.10.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 2/3] MIPS: pbl: use generated label in ADR macro
2013-06-17 16:35 [PATCH 0/3] MIPS pbl fixes Antony Pavlov
2013-06-17 16:35 ` [PATCH 1/3] MIPS: pbl: remove extra LONGSIZE definition Antony Pavlov
@ 2013-06-17 16:35 ` Antony Pavlov
2013-06-17 16:35 ` [PATCH 3/3] MIPS: pbl: remove extra copyrights Antony Pavlov
2013-06-18 7:17 ` [PATCH 0/3] MIPS pbl fixes Sascha Hauer
3 siblings, 0 replies; 7+ messages in thread
From: Antony Pavlov @ 2013-06-17 16:35 UTC (permalink / raw)
To: barebox
The generated label usage make possible
to use the ADR macro many times.
If we don't use a generated label and we try
to use the ADR macro second time then we get
Error: symbol `_pc' is already defined
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
arch/mips/include/asm/pbl_macros.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/mips/include/asm/pbl_macros.h b/arch/mips/include/asm/pbl_macros.h
index 6a48ca4..3971b61 100644
--- a/arch/mips/include/asm/pbl_macros.h
+++ b/arch/mips/include/asm/pbl_macros.h
@@ -41,9 +41,9 @@
.set push
.set noreorder
move \temp, ra # preserve ra beforehand
- bal _pc
+ bal 255f
nop
-_pc: addiu \rd, ra, \label - _pc # label is assumed to be
+255: addiu \rd, ra, \label - 255b # label is assumed to be
move ra, \temp # within pc +/- 32KB
.set pop
.endm
--
1.7.10.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 3/3] MIPS: pbl: remove extra copyrights
2013-06-17 16:35 [PATCH 0/3] MIPS pbl fixes Antony Pavlov
2013-06-17 16:35 ` [PATCH 1/3] MIPS: pbl: remove extra LONGSIZE definition Antony Pavlov
2013-06-17 16:35 ` [PATCH 2/3] MIPS: pbl: use generated label in ADR macro Antony Pavlov
@ 2013-06-17 16:35 ` Antony Pavlov
2013-06-18 7:17 ` [PATCH 0/3] MIPS pbl fixes Sascha Hauer
3 siblings, 0 replies; 7+ messages in thread
From: Antony Pavlov @ 2013-06-17 16:35 UTC (permalink / raw)
To: barebox
Remove Shinya Kuribayashi's copyright on the ADR macro
in start-pbl.S as we don't define this macro in
this file or even use it where.
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
arch/mips/boot/start-pbl.S | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/mips/boot/start-pbl.S b/arch/mips/boot/start-pbl.S
index 702e291..b6d127a 100644
--- a/arch/mips/boot/start-pbl.S
+++ b/arch/mips/boot/start-pbl.S
@@ -2,7 +2,6 @@
* Startup Code for MIPS CPU
*
* Copyright (C) 2011, 2012 Antony Pavlov <antonynpavlov@gmail.com>
- * ADR macro copyrighted (C) 2009 by Shinya Kuribayashi <skuribay@pobox.com>
*
* This file is part of barebox.
* See file CREDITS for list of people who contributed to this project.
--
1.7.10.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/3] MIPS pbl fixes
2013-06-17 16:35 [PATCH 0/3] MIPS pbl fixes Antony Pavlov
` (2 preceding siblings ...)
2013-06-17 16:35 ` [PATCH 3/3] MIPS: pbl: remove extra copyrights Antony Pavlov
@ 2013-06-18 7:17 ` Sascha Hauer
3 siblings, 0 replies; 7+ messages in thread
From: Sascha Hauer @ 2013-06-18 7:17 UTC (permalink / raw)
To: Antony Pavlov; +Cc: barebox
On Mon, Jun 17, 2013 at 08:35:17PM +0400, Antony Pavlov wrote:
> [PATCH 1/3] MIPS: pbl: remove extra LONGSIZE definition
> [PATCH 2/3] MIPS: pbl: use generated label in ADR macro
> [PATCH 3/3] MIPS: pbl: remove extra copyrights
Applied all, thanks
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 0/3] MIPS: pbl fixes
@ 2024-06-12 23:28 Antony Pavlov
2024-06-13 6:59 ` Sascha Hauer
0 siblings, 1 reply; 7+ messages in thread
From: Antony Pavlov @ 2024-06-12 23:28 UTC (permalink / raw)
To: barebox; +Cc: Oleksij Rempel, Ahmad Fatoum
Antony Pavlov (3):
MIPS: don't pass fdt_size into main_entry()
MIPS: pbl_main_entry(): inline barebox_uncompress()
MIPS: rename pbl_main_entry() -> barebox_pbl_start()
arch/mips/boards/board-dt-2nd.S | 4 +--
arch/mips/boards/netgear-wg102/lowlevel.S | 2 +-
arch/mips/boot/Makefile | 2 +-
arch/mips/boot/dtb.c | 1 -
arch/mips/boot/main_entry.c | 6 ++---
arch/mips/boot/start.c | 9 +++----
.../boot/{main_entry-pbl.c => uncompress.c} | 26 ++++++++-----------
arch/mips/include/asm/asm.h | 2 +-
arch/mips/lib/reloc.c | 12 ++++-----
9 files changed, 27 insertions(+), 37 deletions(-)
rename arch/mips/boot/{main_entry-pbl.c => uncompress.c} (71%)
--
2.39.0
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/3] MIPS: pbl fixes
2024-06-12 23:28 [PATCH 0/3] MIPS: " Antony Pavlov
@ 2024-06-13 6:59 ` Sascha Hauer
0 siblings, 0 replies; 7+ messages in thread
From: Sascha Hauer @ 2024-06-13 6:59 UTC (permalink / raw)
To: barebox, Antony Pavlov; +Cc: Oleksij Rempel, Ahmad Fatoum
On Thu, 13 Jun 2024 02:28:04 +0300, Antony Pavlov wrote:
> Antony Pavlov (3):
> MIPS: don't pass fdt_size into main_entry()
> MIPS: pbl_main_entry(): inline barebox_uncompress()
> MIPS: rename pbl_main_entry() -> barebox_pbl_start()
>
> arch/mips/boards/board-dt-2nd.S | 4 +--
> arch/mips/boards/netgear-wg102/lowlevel.S | 2 +-
> arch/mips/boot/Makefile | 2 +-
> arch/mips/boot/dtb.c | 1 -
> arch/mips/boot/main_entry.c | 6 ++---
> arch/mips/boot/start.c | 9 +++----
> .../boot/{main_entry-pbl.c => uncompress.c} | 26 ++++++++-----------
> arch/mips/include/asm/asm.h | 2 +-
> arch/mips/lib/reloc.c | 12 ++++-----
> 9 files changed, 27 insertions(+), 37 deletions(-)
> rename arch/mips/boot/{main_entry-pbl.c => uncompress.c} (71%)
>
> [...]
Applied, thanks!
[1/3] MIPS: don't pass fdt_size into main_entry()
https://git.pengutronix.de/cgit/barebox/commit/?id=e4b849bffef1 (link may not be stable)
[2/3] MIPS: pbl_main_entry(): inline barebox_uncompress()
https://git.pengutronix.de/cgit/barebox/commit/?id=20074e4eb2f1 (link may not be stable)
[3/3] MIPS: rename pbl_main_entry() -> barebox_pbl_start()
https://git.pengutronix.de/cgit/barebox/commit/?id=a8e268d7524d (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-06-13 6:59 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-17 16:35 [PATCH 0/3] MIPS pbl fixes Antony Pavlov
2013-06-17 16:35 ` [PATCH 1/3] MIPS: pbl: remove extra LONGSIZE definition Antony Pavlov
2013-06-17 16:35 ` [PATCH 2/3] MIPS: pbl: use generated label in ADR macro Antony Pavlov
2013-06-17 16:35 ` [PATCH 3/3] MIPS: pbl: remove extra copyrights Antony Pavlov
2013-06-18 7:17 ` [PATCH 0/3] MIPS pbl fixes Sascha Hauer
2024-06-12 23:28 [PATCH 0/3] MIPS: " Antony Pavlov
2024-06-13 6:59 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox