From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id E550D780091 for ; Mon, 22 Jan 2024 19:52:58 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=KGdooRmooeMbqxCtXb5kuuAP+yTtSwssseItICOq5Pg=; c=relaxed/simple; d=groups.io; h=Feedback-ID:Message-ID:Date:MIME-Version:User-Agent:To:From:Subject:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1705953177; v=1; b=FcHxByV9d+ecNmrJfnSFbi+s/4TwquW7CCER3Azbk/UzHYy8hxQFahOEmoVrIJ+J9fN1vPkk 4XffL0IZS5iDsiGcrqJPCYvRVBe7V/CmAVEfGfjA3CiO2a2rDw1c5MY31tUQYNNeiYd8uQl92CL EJYXijpM1q1npAUtbzjhWYZI= X-Received: by 127.0.0.2 with SMTP id 0WBNYY7687511xR2esvvVqOh; Mon, 22 Jan 2024 11:52:57 -0800 X-Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by mx.groups.io with SMTP id smtpd.web11.2422.1705953176458253744 for ; Mon, 22 Jan 2024 11:52:56 -0800 X-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id BBC2F3200A3D for ; Mon, 22 Jan 2024 14:52:55 -0500 (EST) X-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 22 Jan 2024 14:52:55 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdekiedguddvkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfvffhufgtgfesthejre dttddvjeenucfhrhhomheptfgvsggvtggtrgcuvehrrghnuceorhgvsggvtggtrgessghs ughiohdrtghomheqnecuggftrfgrthhtvghrnhepheeghfejkeekueeiveekffekteduhf fgffehueevtdeigeetiefffefgieefveevnecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomheprhgvsggvtggtrgessghsughiohdrtghomh X-ME-Proxy: Feedback-ID: i5b994698:Fastmail X-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 22 Jan 2024 14:52:54 -0500 (EST) Message-ID: <49f7e14e-532e-444c-8978-e290d4338386@bsdio.com> Date: Mon, 22 Jan 2024 12:52:52 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: "devel@edk2.groups.io" From: "Rebecca Cran" Subject: [edk2-devel] EFI_SYSTEM_TABLE allocated by AllocateRuntimeCopyPool isn't aligned to 4KB Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,rebecca@bsdio.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 3WWlr6Fpw6pijT88gFUUSk9Nx7686176AA= Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=FcHxByV9; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io I've been working on updating the T32 script EfiLoadDxe.cmm in=20 EmbeddedPkg/Scripts/LauterbachT32 and one of the issues I've run into is=20 that the EFI_SYSTEM_TABLE - pointed to by `gST` and `gDxeCoreST` - isn't=20 aligned to 4KB like the script expects. Instead, I'm seeing AllocateRuntimeCopyPool return 0xFB7D0018 in=20 MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c: // // Allocate the EFI System Table and EFI Runtime Service Table from=20 EfiRuntimeServicesData // Use the templates to initialize the contents of the EFI System Table=20 and EFI Runtime Services Table // gDxeCoreST =3D AllocateRuntimeCopyPool (sizeof (EFI_SYSTEM_TABLE),=20 &mEfiSystemTableTemplate); ASSERT (gDxeCoreST !=3D NULL); I'm wondering which is wrong: should AllocateRuntimeCopyPool be=20 returning a 4KB-aligned pointer, or is the script's assumption wrong? --=20 Rebecca Cran -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#114146): https://edk2.groups.io/g/devel/message/114146 Mute This Topic: https://groups.io/mt/103894456/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-