[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1ef18343-ea2c-73ad-b495-411b94122ca5@oracle.com>
Date: Tue, 17 Jan 2017 08:55:27 -0700
From: Khalid Aziz <khalid.aziz@...cle.com>
To: David Miller <davem@...emloft.net>
Cc: chris.hyser@...cle.com, sowmini.varadhan@...cle.com,
tushar.n.dave@...cle.com, akpm@...ux-foundation.org,
nitin.m.gupta@...cle.com, gerald.schaefer@...ibm.com,
hughd@...gle.com, kirill.shutemov@...ux.intel.com,
adam.buchbinder@...il.com, minchan@...nel.org,
allen.pais@...cle.com, viro@...iv.linux.org.uk,
aryabinin@...tuozzo.com, paul.gortmaker@...driver.com,
sparclinux@...r.kernel.org, linux-kernel@...r.kernel.org,
khalid@...ehiking.org
Subject: Re: [PATCH v4 3/4] sparc64: Add support for ADI register fields, ASIs
and traps
On 01/16/2017 09:23 PM, David Miller wrote:
> From: Khalid Aziz <khalid.aziz@...cle.com>
> Date: Wed, 11 Jan 2017 09:12:53 -0700
>
>> +#define SUN4V_MCD_PRECISE \
>> + ldxa [%g0] ASI_SCRATCHPAD, %g2; \
>> + ldx [%g2 + HV_FAULT_D_ADDR_OFFSET], %g4; \
>> + ldx [%g2 + HV_FAULT_D_CTX_OFFSET], %g5; \
>> + ba,pt %xcc, etrap; \
>> + rd %pc, %g7; \
>> + ba,pt %xcc, sun4v_mcd_detect_precise; \
>> + nop; \
>> + nop;
>
> Always indent instructions which sit in the delay slot of a non-annulled
> branch, call, or jmpl by one extra space. For example:
>
> ba,pt %xcc, 1f
> nop
>
>> +sun4v_mcd_detect_precise:
>> + or %l4, %g0, %o1
>> + or %l5, %g0, %o2
>> + call sun4v_mem_corrupt_detect_precise
>> + add %sp, PTREGS_OFF, %o0
>
> Likewise.
>
> Also, just do a normal "mov x, y" instead of the "or x, %g0, y" thing.
Thanks, David. I will fix it in the next version of this patch.
--
Khalid
Powered by blists - more mailing lists