Re: [PATCH] arm64: Don't truncate upper 32 bits in ENTRY_FUNCTION arg registers

2021-10-02 Thread Sascha Hauer
On Thu, Sep 16, 2021 at 11:33:56AM +0200, Uwe Kleine-König wrote:
> From: Ahmad Fatoum 
> 
> Use a long instead of an u32. For 32-bit arm there is no difference, for
> arm64 this results in being able to use the whole register size of 64
> bits.
> 
> Signed-off-by: Ahmad Fatoum 
> Signed-off-by: Uwe Kleine-König 
> ---
>  arch/arm/include/asm/barebox-arm.h | 8 
>  1 file changed, 4 insertions(+), 4 deletions(-)

Applied, thanks

Sascha

-- 
Pengutronix e.K.   | |
Steuerwalder Str. 21   | http://www.pengutronix.de/  |
31137 Hildesheim, Germany  | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


[PATCH] arm64: Don't truncate upper 32 bits in ENTRY_FUNCTION arg registers

2021-09-16 Thread Uwe Kleine-König
From: Ahmad Fatoum 

Use a long instead of an u32. For 32-bit arm there is no difference, for
arm64 this results in being able to use the whole register size of 64
bits.

Signed-off-by: Ahmad Fatoum 
Signed-off-by: Uwe Kleine-König 
---
 arch/arm/include/asm/barebox-arm.h | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/include/asm/barebox-arm.h 
b/arch/arm/include/asm/barebox-arm.h
index 24f9bce2ef7a..cfb5943f33d6 100644
--- a/arch/arm/include/asm/barebox-arm.h
+++ b/arch/arm/include/asm/barebox-arm.h
@@ -162,18 +162,18 @@ static inline unsigned long 
arm_mem_barebox_image(unsigned long membase,
 }
 
 #define ENTRY_FUNCTION(name, arg0, arg1, arg2) \
-   void name (uint32_t r0, uint32_t r1, uint32_t r2);  \
+   void name(ulong r0, ulong r1, ulong r2);\
\
-   static void __##name(uint32_t, uint32_t, uint32_t); \
+   static void __##name(ulong, ulong, ulong);  \
\
void NAKED __section(.text_head_entry_##name)   name\
-   (uint32_t r0, uint32_t r1, uint32_t r2) \
+   (ulong r0, ulong r1, ulong r2)  \
{   \
__barebox_arm_head();   \
__##name(r0, r1, r2);   \
}   \
static void NAKED noinline __##name \
-   (uint32_t arg0, uint32_t arg1, uint32_t arg2)
+   (ulong arg0, ulong arg1, ulong arg2)
 
 /*
  * When using compressed images in conjunction with relocatable images

base-commit: c945d24ec5dad6910b02697e4d1df09f89d2b950
-- 
2.30.2


___
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox