[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.