diff mbox series

AArch64: Align ENTRY to a cacheline

Message ID DB8PR08MB5036A47E7EA48E0F5FB2CCDF83610@DB8PR08MB5036.eurprd08.prod.outlook.com
State Committed
Commit 34f0d01d5e43c7dedd002ab47f6266dfb5b79c22
Headers show
Series AArch64: Align ENTRY to a cacheline | expand

Commit Message

Wilco Dijkstra July 14, 2020, 4:17 p.m. UTC
Given almost all uses of ENTRY are for string/memory functions,
align ENTRY to a cacheline to simplify things.

OK for commit?

---

Comments

Carlos O'Donell July 14, 2020, 8:16 p.m. UTC | #1
On 7/14/20 12:17 PM, Wilco Dijkstra wrote:
> Given almost all uses of ENTRY are for string/memory functions,
> align ENTRY to a cacheline to simplify things.
> 
> OK for commit?

It's OK for 2.32 if Szabolcs says OK.
 
> ---
> diff --git a/sysdeps/aarch64/sysdep.h b/sysdeps/aarch64/sysdep.h
> index ae269146e3a5eafa563ec53f2d6f45bbef84d444..2d802db00834ed521ffc3d7e7016f1ee161caf7b 100644
> --- a/sysdeps/aarch64/sysdep.h
> +++ b/sysdeps/aarch64/sysdep.h
> @@ -98,7 +98,7 @@ GNU_PROPERTY (FEATURE_1_AND, FEATURE_1_BTI)
>  #define ENTRY(name)						\
>    .globl C_SYMBOL_NAME(name);					\
>    .type C_SYMBOL_NAME(name),%function;				\
> -  .align 4;							\
> +  .p2align 6;							\
>    C_LABEL(name)							\
>    cfi_startproc;						\
>    BTI_C;							\
> 
>
Szabolcs Nagy July 15, 2020, 8:15 a.m. UTC | #2
The 07/14/2020 16:16, Carlos O'Donell wrote:
> On 7/14/20 12:17 PM, Wilco Dijkstra wrote:
> > Given almost all uses of ENTRY are for string/memory functions,
> > align ENTRY to a cacheline to simplify things.
> > 
> > OK for commit?
> 
> It's OK for 2.32 if Szabolcs says OK.

thanks.
this is ok to commit.

>  
> > ---
> > diff --git a/sysdeps/aarch64/sysdep.h b/sysdeps/aarch64/sysdep.h
> > index ae269146e3a5eafa563ec53f2d6f45bbef84d444..2d802db00834ed521ffc3d7e7016f1ee161caf7b 100644
> > --- a/sysdeps/aarch64/sysdep.h
> > +++ b/sysdeps/aarch64/sysdep.h
> > @@ -98,7 +98,7 @@ GNU_PROPERTY (FEATURE_1_AND, FEATURE_1_BTI)
> >  #define ENTRY(name)						\
> >    .globl C_SYMBOL_NAME(name);					\
> >    .type C_SYMBOL_NAME(name),%function;				\
> > -  .align 4;							\
> > +  .p2align 6;							\
> >    C_LABEL(name)							\
> >    cfi_startproc;						\
> >    BTI_C;							\
> > 
> > 
> 
> 
> -- 
> Cheers,
> Carlos.
>
diff mbox series

Patch

diff --git a/sysdeps/aarch64/sysdep.h b/sysdeps/aarch64/sysdep.h
index ae269146e3a5eafa563ec53f2d6f45bbef84d444..2d802db00834ed521ffc3d7e7016f1ee161caf7b 100644
--- a/sysdeps/aarch64/sysdep.h
+++ b/sysdeps/aarch64/sysdep.h
@@ -98,7 +98,7 @@  GNU_PROPERTY (FEATURE_1_AND, FEATURE_1_BTI)
 #define ENTRY(name)						\
   .globl C_SYMBOL_NAME(name);					\
   .type C_SYMBOL_NAME(name),%function;				\
-  .align 4;							\
+  .p2align 6;							\
   C_LABEL(name)							\
   cfi_startproc;						\
   BTI_C;							\