From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-x243.google.com (mail-vk0-x243.google.com [IPv6:2607:f8b0:400c:c05::243]) (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 E071781C1C for ; Thu, 12 Jan 2017 07:46:58 -0800 (PST) Received: by mail-vk0-x243.google.com with SMTP id r136so1700187vke.1 for ; Thu, 12 Jan 2017 07:46:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=FLI+1bvTNeftuALjEVYt4GH/4O1R/DFtvCv3mpeteAU=; b=on0TG6Sq/EuTQIwHZd/N1KkWoq+206XSUTt8Y+16NSznrRebp6/9k/FJuqbdxqMcDK hfyF+euxC8tTIKlYRPrgYN14C/nsqZUTooFAnWKJ09KTEnL9WAHfDiIDGaPVKmmz4opU FjjdgMt0nA58K0ZmKepqLW8O5aMJJ+nUAfNChI5YvkwSbBq5Wk5qsSkXVujZGOT69kEl cuy5t8Mx3FsAvOHOUZEwy5K7lpG1LhllP/iKfK8O7u/zzirvc7wYkg7z2m57eHeIaWox /f1ih7s7gUknK0Jc3hTBT9c/f9wQiCrmtTczrTs2ox8CCMAGg/ObPwmCVNYMWrCFMLAT HG/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=FLI+1bvTNeftuALjEVYt4GH/4O1R/DFtvCv3mpeteAU=; b=jAe461EjoE5uoOFMxUUfSTFO3XdJv44xsEYsS7RrVU85N/CqEtXuHafRA9/emPs73t GomyCiwk4vQpZLI9ZuPhIjnOky+MuNR4BGckRK8Pyxj6fnFjAO/6ddF+VI4UgCZfZ33Q PoxTI+neP+re+TLnbvuR8WO/1b8PBRjB0hyYCTcfwAAfn+TorLk11ZoGjDGCd147QLd4 L8QoCl/vaiS7T6WrF8zZwjswIWm1D9FBa85QtwQqTXY0WOevdW3o6Ue3vEpl52z8Vk0A o1cBiPrF7xhXLejMTpvbpto33mma6l58VngK2LJX35dVoBNAWuqmfQ1ZbLn1o2HYPiV/ +bpg== X-Gm-Message-State: AIkVDXLVABY3N+yf6PrzeIj27uQbaqH/WzadpA9761tvqizYseta6mZ6nrqoJlaqWJDhEs/HsK2I9/UNwps3BA== X-Received: by 10.31.92.9 with SMTP id q9mr7586501vkb.88.1484236017772; Thu, 12 Jan 2017 07:46:57 -0800 (PST) MIME-Version: 1.0 Received: by 10.31.151.68 with HTTP; Thu, 12 Jan 2017 07:46:57 -0800 (PST) From: Michael Zimmermann Date: Thu, 12 Jan 2017 16:46:57 +0100 Message-ID: To: "edk2-devel@lists.01.org" X-Content-Filtered-By: Mailman/MimeDel 2.1.21 Subject: [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: Thu, 12 Jan 2017 15:46:59 -0000 Content-Type: text/plain; charset=UTF-8 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