From patchwork Wed Mar 1 16:31:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 94721 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp1856956obz; Wed, 1 Mar 2017 08:31:52 -0800 (PST) X-Received: by 10.84.135.34 with SMTP id 31mr11337519pli.50.1488385912604; Wed, 01 Mar 2017 08:31:52 -0800 (PST) Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id y9si5045303pli.30.2017.03.01.08.31.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Mar 2017 08:31:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 066DE821D0; Wed, 1 Mar 2017 08:31:52 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org 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 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: [edk2] [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: , Cc: Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel