From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by mx.groups.io with SMTP id smtpd.web10.3040.1585392207817926741 for ; Sat, 28 Mar 2020 03:43:28 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=uiNWhgMb; spf=pass (domain: linaro.org, ip: 209.85.221.67, mailfrom: ard.biesheuvel@linaro.org) Received: by mail-wr1-f67.google.com with SMTP id w10so14847740wrm.4 for ; Sat, 28 Mar 2020 03:43:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=B3K/9ekYW2jOWcHSUxWuZkI98Nj7XruCeEwaLHSVDYA=; b=uiNWhgMblrdsqTHI0cvtzpVo9bqnnao1YiPJxuzVWMsNydRA+ZqfbQ+euCURZyhEhf t3WuZOQoe72TDJEnKkzYV5L3OpwFz9dv2FpDxYXNVkqQ0LfS+3pPQgIXd/QPZn1dKsYN kfX8B98NqVheLk9hBcnA8KSpyUs3O22xgsuvs+W0jfhGsszYYdWW4s5BKfNBRb6DWWCS xCBm7eglgll+6Pl/RkE7rCHtVZqadMFq+7DoOGii+k3H+ihwUAR3epWMCPFUZ7ua36oo lxoHCYisozZo8RG9c3hYz2hSxlX4MQ26ydS2s7qKzPnq21Jlka8x+KMldT4bIw4J66in 6YiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=B3K/9ekYW2jOWcHSUxWuZkI98Nj7XruCeEwaLHSVDYA=; b=Zbg3mTgQnn2S5HfGMnsmcIfRTrN3Os43Pz7WhrqZmeBkBp3TcODk2TdR8vZC5UpyGw t3dZ1VI943xyphrUEQbukO2ivC0lruFBdF64ZqG1VVC9aWIfsVeqTFbUf0NHTRPQziLJ x615LSmw4ilHPcjiaLX4+rqSVPaqng2xsBSAYeK6IozdiM4kM26k3LuhDbpI1lrSiW9T 5VoEll98ZkKmUmsd/nylSeOhYO4EyjAlHm83w27jCl+lnepEzbM9Jp4Us90a38W65O8u zrpdDkDy4M2BtNsmAU45OQkZnFHCG6bycD0SsWQ4yYYIJAlFFehhUYxYDJ/Ys8JWMUGz J9hg== X-Gm-Message-State: ANhLgQ0yAbosM05mqXmEPZGA6E2dKJAnMSmfImaU406fN+/jW/dJBdhl wGzhEcHanQ9Xy9yuHVsSjJmIFj7l6y5VWw== X-Google-Smtp-Source: ADFU+vtc74jP2j7RSNjS9T+XDr5/AgT8EByApPxDluJqC6/B3w9hotz7Ms/JV5PATd0xtiWlWUOktA== X-Received: by 2002:adf:d4ce:: with SMTP id w14mr4392342wrk.101.1585392206217; Sat, 28 Mar 2020 03:43:26 -0700 (PDT) Return-Path: Received: from e123331-lin.home (amontpellier-657-1-18-247.w109-210.abo.wanadoo.fr. [109.210.65.247]) by smtp.gmail.com with ESMTPSA id a13sm4756386wrt.64.2020.03.28.03.43.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Mar 2020 03:43:25 -0700 (PDT) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: leif@nuviainc.com, Ard Biesheuvel Subject: [PATCH 0/5] ArmPkg: cosmetic cleanups for ArmMmuLib Date: Sat, 28 Mar 2020 11:43:16 +0100 Message-Id: <20200328104321.8668-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 Now that the rewritten ArmMmuLib for AARCH64 seems to be functioning as desired, we can apply some more polish and get rid of a couple of warts that were left over from the original version. Patches #1 and #2 move some code out of ArmMmuLib and into CpuDxe which only exists for the benefit of the latter. Patches #3 and #4 get rid of a couple of awkward helper functions that can be replaced by simply arithmetic expressions. Patch #5 drops a #define that is no longer used. Ard Biesheuvel (5): ArmPkg/CpuDxe: use private copy of GetRootTranslationTableInfo() ArmPkg/CpuDxe: move PageAttributeToGcdAttribute() out of ArmMmuLib ArmPkg/ArmMmuLib: drop pointless LookupAddresstoRootTable() routine ArmPkg/ArmMmuLib: get rid of GetRootTranslationTableInfo() ArmPkg/ArmMmuLib: drop unused TT_ATTR_INDX_INVALID CPP symbol ArmPkg/Drivers/CpuDxe/AArch64/Mmu.c | 61 +++++++++ ArmPkg/Drivers/CpuDxe/CpuDxe.h | 7 -- ArmPkg/Include/Chipset/AArch64.h | 5 - .../Library/ArmMmuLib/AArch64/ArmMmuLibCore.c | 117 +++--------------- 4 files changed, 81 insertions(+), 109 deletions(-) -- 2.17.1