From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-x234.google.com (mail-wr0-x234.google.com [IPv6:2a00:1450:400c:c0c::234]) (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 9BE4680349 for ; Tue, 7 Mar 2017 00:42:11 -0800 (PST) Received: by mail-wr0-x234.google.com with SMTP id l37so133864009wrc.1 for ; Tue, 07 Mar 2017 00:42:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=SkLcIXdQyXfJb6TCqgin0lYXKhvBhil5OSOyoQifp2w=; b=kD8k3WmVLvurrP39m0Ib6c2Sv4qt7nJo6YxV0lBL09bdV+ZGDDf+2SPoIdvs51YRiS qrstbDTwAGgRJCUxK3q0OBKvyjtEHrGNX08OMjZ9oCrc1AVbfPgTiew0tu95IyL59pcr 1pN2cUQ+NiEfd806GcN2ZptE0WA0nk8ol6T1Q= 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=SkLcIXdQyXfJb6TCqgin0lYXKhvBhil5OSOyoQifp2w=; b=G8RseneQpaChCRMLEZT/xC4BcRIIkmqDAhu5winaBgsxsHbb+omQ6Z11J6mWAiH4Zf Wd6vpsuuC6II7mJVon29NclQw6so/bqrXwh7/I9nhvqZ6lwFnlkh5B0aXJo1vb6N2uh4 qqrGVEn8qG6W5qsXg9c410LbxVLUWQkafsbrRxeHbIP74oy5WlodA7UvaCHp0SRFAv5L Ab/KZNcyPzMWXigZe+KUlaXyrkU5g7yQ53flzbHkFQTSDuZJ2j+Bp8WCoO8UgbY0lJID SS/B0mfxhxQlLsUYvhc7SGRxGyqOVUQJsAbXNgPMXFK1Arn5CgLn0m15PsOJmMOPJKL6 7erw== X-Gm-Message-State: AMke39lujY8E1EjRGKyPpGeRcZQFHsHpT1SWuzOVJ5a1tjcBAp6mVLbr+JCYVnH2+18p8R46 X-Received: by 10.223.130.144 with SMTP id 16mr20042699wrc.32.1488876130140; Tue, 07 Mar 2017 00:42:10 -0800 (PST) Received: from ards-macbook-pro.c.hoisthospitality.com ([109.74.56.122]) by smtp.gmail.com with ESMTPSA id u41sm30097838wrc.24.2017.03.07.00.42.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Mar 2017 00:42:09 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org Cc: lersek@redhat.com, Ard Biesheuvel Date: Tue, 7 Mar 2017 09:42:01 +0100 Message-Id: <1488876125-24396-1-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [PATCH v2 0/4] ArmPkg, ArmVirtPkg ARM: enable non-executable stack 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: Tue, 07 Mar 2017 08:42:12 -0000 This refactors the ARM version of CpuDxe and ArmMmuLib to align more closely with the AARCH64 version, which primarily comes down to moving ArmSetMemoryAttributes() to ArmMmuLib, where it can be used by non-DXE modules such as DxeIpl. This is a PEI module which is in charge of configuring the non-executable DXE stack. Changes since v1: - committed and dropped patch to fix RETURN_STATUS/EFI_STATUS disparities in function prototypes - incorporated coding style feedback from Leif - add R-b's from Leif and Laszlo Ard Biesheuvel (4): ArmPkg: move ARM version of SetMemoryAttributes to ArmMmuLib ArmPkg/ArmMmuLib: remove VirtualMask arg from ArmSetMemoryAttributes ArmPkg/ArmMmuLib ARM: implement memory permission control routines ArmVirtPkg: enable non-executable DXE stack for all platforms ArmPkg/Drivers/CpuDxe/Arm/Mmu.c | 410 -------------------- ArmPkg/Drivers/CpuDxe/CpuDxe.h | 14 +- ArmPkg/Drivers/CpuDxe/CpuMmuCommon.c | 2 +- ArmPkg/Include/Chipset/ArmV7Mmu.h | 6 + ArmPkg/Include/Library/ArmMmuLib.h | 7 + ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibCore.c | 5 +- ArmPkg/Library/ArmMmuLib/Arm/ArmMmuLibCore.c | 394 ++++++++++++++++++- ArmVirtPkg/ArmVirt.dsc.inc | 5 + ArmVirtPkg/ArmVirtQemu.dsc | 2 - ArmVirtPkg/ArmVirtQemuKernel.dsc | 2 - 10 files changed, 412 insertions(+), 435 deletions(-) -- 2.7.4