Re: [PATCH v2 1/5] arch/arc: unwind.c: replace swap function with built-in one

2019-04-01 Thread Vineet Gupta
On 3/31/19 11:31 AM, Andrey Abramov wrote: > Replace swap_eh_frame_hdr_table_entries with built-in one, because > swap_eh_frame_hdr_table_entries does a simple byte to byte swap. > > Since Spectre mitigations have made indirect function calls more > expensive, and the default simple byte copies swa

[PATCH v2 1/5] arch/arc: unwind.c: replace swap function with built-in one

2019-03-31 Thread Andrey Abramov
Replace swap_eh_frame_hdr_table_entries with built-in one, because swap_eh_frame_hdr_table_entries does a simple byte to byte swap. Since Spectre mitigations have made indirect function calls more expensive, and the default simple byte copies swap is implemented without them, an "optimized" custom