From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ua0-x232.google.com (mail-ua0-x232.google.com [IPv6:2607:f8b0:400c:c08::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 0381881C31 for ; Thu, 12 Jan 2017 20:47:34 -0800 (PST) Received: by mail-ua0-x232.google.com with SMTP id 96so29458196uaq.3 for ; Thu, 12 Jan 2017 20:47:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=tT4YdwAFWj7qlb2Bsa8bl943JmXHIjj9Lb3sPqmd6O8=; b=AmIYhkU9npUezdvOqxR9G4C+nYpyHvERMlHrdQp75L4qXboAobPLHp6RWm0O5FjRu5 3icUfTnJS8o/RngabZPQTxA9Jmo6cc7aR15sGZlciOQV3dvXwDAH3/KdcAk2d5/JXACe Ljd1LXQabGEIXqQTaTgXgq4gyHeKXrJ8ZxWHm7ZMJGhLhveSZcJuW4tvL6U3pO65QVov 1fJFmc6+srAWxML5cv5GynjCg7wpSalzzjbxOmPHXAx5lnYpQlaiU97dsJG/AAGafhBZ gsrgkFzrUl/Qo8G20Xt3ibrLMqj1hutNkCnWiEgf7BCEkqy3wavd2rzHzzy2M8lbSDhw wZow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=tT4YdwAFWj7qlb2Bsa8bl943JmXHIjj9Lb3sPqmd6O8=; b=Y1k7nzKOXYaxStAZtsd/2vjLpHcDmD1tLL/+/XKMwLxF5KulZs5rbj7DmClL3hY5c2 ILlB0XMN+5LvtrQSh43N+TKyccyL7HqGqEfovFzcugWErNAgk6UZ8g3uF9hqn5WaRU/1 UxjKMoQPo5jP13W7U5sOpveOYGqQhqTcmYqzN9JqC4IMajT6Cx0FV0tCW2TUQpq1an4o P4oQw/hiafsAVhtvh/fP5byQP49ZC0xrjKahWARx9mug4YO4TeKXQeAXwiK+SkSGjPWN AdTta2G0k2yTm5a+2BK4OKtiJD8nFGB7RpCjJlS6KmH0VcOI0ztRu56nD1KI3YWCAQ8f IZrg== X-Gm-Message-State: AIkVDXKeSlnHIOJrZwVIpb1pkwXmnWcjWL2njHCH/FWZLUnmLUQvxDRGTx1ELXoZ1kG8E30WxTUsVc6mMvcgTw== X-Received: by 10.176.69.172 with SMTP id u41mr8000341uau.164.1484282853298; Thu, 12 Jan 2017 20:47:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.31.151.68 with HTTP; Thu, 12 Jan 2017 20:47:32 -0800 (PST) In-Reply-To: References: From: Michael Zimmermann Date: Fri, 13 Jan 2017 05:47:32 +0100 Message-ID: To: "edk2-devel@lists.01.org" , Leif Lindholm , Ard Biesheuvel X-Content-Filtered-By: Mailman/MimeDel 2.1.21 Subject: Re: [PATCH] ArmPlatformPkg: MemoryInitPei: fix wrong check for system memory X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jan 2017 04:47:34 -0000 Content-Type: text/plain; charset=UTF-8 sry, but I forgot to CC the maintainers again so doing this with this self-reply. On Thu, Jan 12, 2017 at 4:46 PM, Michael Zimmermann < sigmaepsilon92@gmail.com> wrote: > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Michael Zimmermann > --- > ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.c > b/ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.c > index 2feb11f21d..8f6781212e 100644 > --- a/ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.c > +++ b/ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.c > @@ -103,7 +103,7 @@ MemoryPeim ( > while ((NextHob.Raw = GetNextHob (EFI_HOB_TYPE_RESOURCE_DESCRIPTOR, > NextHob.Raw)) != NULL) { > if ((NextHob.ResourceDescriptor->ResourceType == > EFI_RESOURCE_SYSTEM_MEMORY) && > (PcdGet64 (PcdSystemMemoryBase) >= NextHob.ResourceDescriptor->PhysicalStart) > && > - (NextHob.ResourceDescriptor->PhysicalStart + > NextHob.ResourceDescriptor->ResourceLength <= PcdGet64 > (PcdSystemMemoryBase) + PcdGet64 (PcdSystemMemorySize))) > + (NextHob.ResourceDescriptor->PhysicalStart + > NextHob.ResourceDescriptor->ResourceLength >= PcdGet64 > (PcdSystemMemoryBase) + PcdGet64 (PcdSystemMemorySize))) > { > Found = TRUE; > break; > -- > 2.11.0 > >