From: Anthony Yznaga
Date: Wed, 27 Sep 2017 14:45:34 -0700
> Vijay,
> Older assemblers may not support this flag so you’ll need to
> hardcode the lzcnt instructions using .word directives.
Right, older binutils do not support the T4 instructions.
This is why we hardcode the opcodes for all of t
> On Sep 27, 2017, at 12:56 PM, Sam Ravnborg wrote:
>
> Hi Vijay.
>
> On Wed, Sep 27, 2017 at 01:25:26PM -0600, Vijay Kumar wrote:
>> For T4 and above, patch fls and __fls functions
>> at the boot time to use lzcnt instruction.
>>
>> Signed-off-by: Vijay Kumar
>> Reviewed-by: Babu Moger
>> -
From: Sam Ravnborg
Date: Wed, 27 Sep 2017 21:56:37 +0200
> Hi Vijay.
>
> On Wed, Sep 27, 2017 at 01:25:26PM -0600, Vijay Kumar wrote:
>> For T4 and above, patch fls and __fls functions
>> at the boot time to use lzcnt instruction.
>>
>> Signed-off-by: Vijay Kumar
>> Reviewed-by: Babu Moger
>>
Hi Sam,
On 9/27/2017 2:56 PM, Sam Ravnborg wrote:
.size niagara4_patch_pageops,.-niagara4_patch_pageops
+
+ .globl niagara4_patch_fls
+ .type niagara4_patch_fls,#function
+niagara4_patch_fls:
+ NG_DO_PATCH(fls, NG4fls)
+ NG_DO_PATCH(__fls, __NG4fls)
+ r
Hi Vijay.
On Wed, Sep 27, 2017 at 01:25:26PM -0600, Vijay Kumar wrote:
> For T4 and above, patch fls and __fls functions
> at the boot time to use lzcnt instruction.
>
> Signed-off-by: Vijay Kumar
> Reviewed-by: Babu Moger
> ---
> arch/sparc/Makefile |1 +
> arch/sparc/kernel/head_
For T4 and above, patch fls and __fls functions
at the boot time to use lzcnt instruction.
Signed-off-by: Vijay Kumar
Reviewed-by: Babu Moger
---
arch/sparc/Makefile |1 +
arch/sparc/kernel/head_64.S |2 ++
arch/sparc/lib/Makefile |3 +++
arch/sparc/lib/NG4fls.S |
6 matches
Mail list logo