public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
To: "Cohen, Eugene" <eugene@hp.com>
Cc: Pete Batard <pete@akeo.ie>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>,
	 "Gao, Liming" <liming.gao@intel.com>
Subject: Re: [PATCH v4 4/6] ArmPkg/Library/CompilerIntrinsicsLib: Enable VS2017/ARM builds
Date: Fri, 12 Jan 2018 09:58:12 +0000	[thread overview]
Message-ID: <CAKv+Gu-yf2o+TfxKtAgUBPkq2DgR2c8F9HQ6qnhJ8T7LTt=Odg@mail.gmail.com> (raw)
In-Reply-To: <DF4PR8401MB0619CE3EAAC4F5D5F9D95057B4160@DF4PR8401MB0619.NAMPRD84.PROD.OUTLOOK.COM>

On 11 January 2018 at 16:56, Cohen, Eugene <eugene@hp.com> wrote:
> Pete,
>
>> How about I modify the patch to use "AREA s_<original_func_name>"
>> instead of "AREA Math" as per the current proposal?
>
> That's how it used to work before the macro was introduced, per commit dcb2e4bb61931e2dee1739bb76aba315002f0a82 two years ago.
>
> I personally have no problem going back to the individual AREA s_<name>  approach now that we have a good reason to do so.
>
>> Also, you'll notice that the current div.asm [1], which is used by RVCT does
>> *not* rely on the macro, so, unless this is intentional, there already seems
>> to exist inconsistencies with regards to using the RVCT_ASM_EXPORT
>> macro to ensure the removal of dead code...
>
> I think this was likely an oversight.
>
>> So, to summarise, I would much prefer if we could keep most of the
>> current patch, and simply use the following where needed:
>>
>> AREA  s___aeabi_ldivmod, CODE, READONLY, ARM AREA  s___aeabi_llsr,
>> CODE, READONLY, ARM AREA  s___aeabi_uldivmod, CODE, READONLY,
>> ARM
>>
>
> Agreed, this is fine so long as we agree on the definition of "where needed".  In general I would expect each independent assembly function to have its own AREA directive (e.g. math functions).  In some cases there will clearly be a collection of dependent functions that would be better served by a single area directive (e.g. MMU initialization functions).
>
> Much Thanks!
>
> Eugene
>

Agreed.


  reply	other threads:[~2018-01-12  9:52 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-10 16:26 [PATCH v4 0/6] Add ARM support for VS2017 Pete Batard
2018-01-10 16:26 ` [PATCH v4 1/6] MdePkg: Disable some Level 4 warnings for VS2017/ARM Pete Batard
2018-01-10 16:26 ` [PATCH v4 2/6] MdePkg/Library/BaseStackCheckLib: Add Null handler " Pete Batard
2018-01-10 16:26 ` [PATCH v4 3/6] MdePkg/Library/BaseLib: Enable VS2017/ARM builds Pete Batard
2018-01-10 16:26 ` [PATCH v4 4/6] ArmPkg/Library/CompilerIntrinsicsLib: " Pete Batard
2018-01-11 10:46   ` Ard Biesheuvel
2018-01-11 15:30     ` Cohen, Eugene
2018-01-11 16:31       ` Pete Batard
2018-01-11 16:56         ` Cohen, Eugene
2018-01-12  9:58           ` Ard Biesheuvel [this message]
2018-01-12 11:10             ` Pete Batard
2018-01-12 13:25               ` Ard Biesheuvel
2018-01-10 16:26 ` [PATCH v4 5/6] MdePkg/Include: Add VA list support for VS2017/ARM Pete Batard
2018-01-10 16:26 ` [PATCH v4 6/6] BaseTools/Conf: Add VS2017/ARM support Pete Batard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKv+Gu-yf2o+TfxKtAgUBPkq2DgR2c8F9HQ6qnhJ8T7LTt=Odg@mail.gmail.com' \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox