WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

[Xen-ia64-devel] [PATCH][Open GFW] fix incorrect EFI memmap

To: tgingold@xxxxxxx
Subject: [Xen-ia64-devel] [PATCH][Open GFW] fix incorrect EFI memmap
From: Kouya Shimura <kouya@xxxxxxxxxxxxxx>
Date: Wed, 23 Jan 2008 18:28:30 +0900
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 23 Jan 2008 01:28:58 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi Tristan,

Current EFI memmap doesn't have a entry of ACPI 2.0 Table.
This patch fixes it as follows:

Shell> memmap -b
Type       Start            End               # Pages          Attributes
...
available  00000000000E0000-00000000000EBFFF  0000000000000020 000000000000000F
ACPI_recl  00000000000EC000-00000000000EDFFF  0000000000000002 000000000000000F
available  00000000000EE000-000000000FFFFFFF  000000000000FF12 000000000000000F
...

Akio, This is a reason why /proc/acpi/dsdt can't be seen.

Thanks,
Kouya

Singed-off-by: Kouya Shimura <kouya@xxxxxxxxxxxxxx>

diff -r 6efa9014e0a5 edk2-sparse/EdkXenPkg/Dxe/XenAcpi/XenAcpi.c
--- a/edk2-sparse/EdkXenPkg/Dxe/XenAcpi/XenAcpi.c       Fri Jan 11 02:14:42 
2008 +0100
+++ b/edk2-sparse/EdkXenPkg/Dxe/XenAcpi/XenAcpi.c       Wed Jan 23 16:04:00 
2008 +0900
@@ -52,16 +52,7 @@ XenAcpiInitialize (
   acpi_sz = acpi_build_tables((UINT8 *)ACPI_PHYSICAL_ADDRESS);
   ASSERT((ACPI_PHYSICAL_ADDRESS + acpi_sz) <= 0xF0000);
 
-  Status = gDS->AddMemorySpace (
-                               EfiGcdMemoryTypeSystemMemory,
-                               ACPI_PHYSICAL_ADDRESS,
-                               acpi_sz,
-                               EFI_MEMORY_WB
-                               );
-  if (EFI_ERROR (Status)) {
-    DEBUG ((EFI_D_ERROR, "AddMemorySpace fail: %r!\n", Status));
-  }
-  else {
+  {
     EFI_PHYSICAL_ADDRESS        Memory;
 
     Memory = ACPI_PHYSICAL_ADDRESS;
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel