From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com [IPv6:2a00:1450:400c:c09::229]) (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 6C880821CF for ; Wed, 1 Mar 2017 08:31:50 -0800 (PST) Received: by mail-wm0-x229.google.com with SMTP id u199so40815237wmd.1 for ; Wed, 01 Mar 2017 08:31:50 -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=VA6R1qYCjDofWj7XXxyjmXJADdaPdykK8tf+XyBAtOY=; b=iJJEA1Cy3Y8diLmNJ/0xA+d0vVvjPqYNECthw0eU1ntc6lULlsvbBBvrA/DjhPmzcT jn2FI1jjcK8RhoaNGFWcX/npqLF5qqTzICRAKgu7oyUn1ucO+j/ZWNqzvdp+9tJ45TNN OHxutumc+p5S6tib3Qkv+6v/F0e2lQjC8RMcE= 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=VA6R1qYCjDofWj7XXxyjmXJADdaPdykK8tf+XyBAtOY=; b=TOd6R6QLH6Fmk2/JkuzuQe7OdOnNBvqqUd3M0LIh4cRHd/37XZ9Ql3GPxCwytLB7f5 Xs9+UeooYiMu0K5OXp7oCMzADveQegXw0HIvJW3XV4D+unDHlcRAnGOVWR1OkvbAbB+w i/h6hMiI14Bm3P0MgGxg1EPMFaQlBxcGsM/WeTQDhxh6IDQBWD2A0Du6cTFosa5px1/x YUk6E9nnnD0Vr1QarGGN1NEJEQi1Z4nIB2sRbQaFflWMni2JCVSj+eikFepUKPRkgTSv LtmFeB3gshoUltz9oB25ZbywnzpKL9XU++fUXTviE6ITfQu7h6OWtE8a7q7192vgAE+W jNjg== X-Gm-Message-State: AMke39mI5O3JcfE8K8099U0f7/bmbbCc8KsAqVobSDx9/l2tA0005SzgPZAzVPz98uzpag/p X-Received: by 10.28.74.221 with SMTP id n90mr4003034wmi.114.1488385909057; Wed, 01 Mar 2017 08:31:49 -0800 (PST) Received: from localhost.localdomain ([105.147.1.203]) by smtp.gmail.com with ESMTPSA id 11sm7275292wrb.10.2017.03.01.08.31.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Mar 2017 08:31:48 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org, lersek@redhat.com Cc: Ard Biesheuvel Date: Wed, 1 Mar 2017 16:31:38 +0000 Message-Id: <1488385903-30267-1-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [PATCH 0/5] 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: Wed, 01 Mar 2017 16:31:50 -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. Ard Biesheuvel (5): ArmPkg/ArmMmuLib AARCH64: use correct return type for exported functions 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 | 368 ------------------- ArmPkg/Drivers/CpuDxe/CpuDxe.h | 14 +- ArmPkg/Drivers/CpuDxe/CpuMmuCommon.c | 2 +- ArmPkg/Include/Library/ArmMmuLib.h | 7 + ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibCore.c | 57 ++- ArmPkg/Library/ArmMmuLib/Arm/ArmMmuLibCore.c | 371 +++++++++++++++++++- ArmVirtPkg/ArmVirt.dsc.inc | 5 + ArmVirtPkg/ArmVirtQemu.dsc | 2 - ArmVirtPkg/ArmVirtQemuKernel.dsc | 2 - 9 files changed, 405 insertions(+), 423 deletions(-) -- 2.7.4