public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ard Biesheuvel" <ard.biesheuvel@linaro.org>
To: Andrei Warkentin <awarkentin@vmware.com>
Cc: "devel@edk2.groups.io" <devel@edk2.groups.io>,
	"leif@nuviainc.com" <leif@nuviainc.com>,
	 "pete@akeo.ie" <pete@akeo.ie>,
	"philmd@redhat.com" <philmd@redhat.com>
Subject: Re: [edk2][PATCH 1/1] ArmPlatformPkg/PrePi: fix IS_XIP
Date: Thu, 5 Mar 2020 09:10:02 +0100	[thread overview]
Message-ID: <CAKv+Gu9BB14rEur3xiVadxZNfnG48TgQ6+sKBvNKGjPaqmChdg@mail.gmail.com> (raw)
In-Reply-To: <20200305075545.449-1-awarkentin@vmware.com>

On Thu, 5 Mar 2020 at 08:56, Andrei Warkentin <awarkentin@vmware.com> wrote:
>
> This wasn't correctly testing for FD to be outside RAM,
> when RAM base immediately follows the FD.
>
> This is part of some cleanup for RPi4 in edk2-platform.
>
> Signed-off-by: Andrei Warkentin <awarkentin@vmware.com>

Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

Thanks Andrei. I'll put this on the pile of ArmPkg/ArmPlatformPkg
fixes I intend to merge today or tomorrow.


> ---
>  ArmPlatformPkg/PrePi/PrePi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/ArmPlatformPkg/PrePi/PrePi.c b/ArmPlatformPkg/PrePi/PrePi.c
> index 2bb1449581..74284f1883 100644
> --- a/ArmPlatformPkg/PrePi/PrePi.c
> +++ b/ArmPlatformPkg/PrePi/PrePi.c
> @@ -22,7 +22,7 @@
>  #include "PrePi.h"
>
>  #define IS_XIP() (((UINT64)FixedPcdGet64 (PcdFdBaseAddress) > mSystemMemoryEnd) || \
> -                  ((FixedPcdGet64 (PcdFdBaseAddress) + FixedPcdGet32 (PcdFdSize)) < FixedPcdGet64 (PcdSystemMemoryBase)))
> +                  ((FixedPcdGet64 (PcdFdBaseAddress) + FixedPcdGet32 (PcdFdSize)) <= FixedPcdGet64 (PcdSystemMemoryBase)))
>
>  UINT64 mSystemMemoryEnd = FixedPcdGet64(PcdSystemMemoryBase) +
>                            FixedPcdGet64(PcdSystemMemorySize) - 1;
> --
> 2.17.1
>

      reply	other threads:[~2020-03-05  8:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-05  7:55 [edk2][PATCH 1/1] ArmPlatformPkg/PrePi: fix IS_XIP Andrei Warkentin
2020-03-05  8:10 ` Ard Biesheuvel [this message]

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+Gu9BB14rEur3xiVadxZNfnG48TgQ6+sKBvNKGjPaqmChdg@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