[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH V4 10/15] Add SMBIOS and runtime services setup arch functions.
>>> On 10.09.14 at 02:52, <roy.franz@xxxxxxxxxx> wrote: > @@ -805,49 +801,13 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE > *SystemTable) > boot_cpu_data.x86_capability[1] = cpuid_ext_features; > } > > - /* Obtain basic table pointers. */ > - for ( i = 0; i < efi_num_ct; ++i ) > - { > - static EFI_GUID __initdata acpi2_guid = ACPI_20_TABLE_GUID; > - static EFI_GUID __initdata acpi_guid = ACPI_TABLE_GUID; > - static EFI_GUID __initdata mps_guid = MPS_TABLE_GUID; > - static EFI_GUID __initdata smbios_guid = SMBIOS_TABLE_GUID; > - > - if ( match_guid(&acpi2_guid, &efi_ct[i].VendorGuid) ) > - efi.acpi20 = (long)efi_ct[i].VendorTable; > - if ( match_guid(&acpi_guid, &efi_ct[i].VendorGuid) ) > - efi.acpi = (long)efi_ct[i].VendorTable; > - if ( match_guid(&mps_guid, &efi_ct[i].VendorGuid) ) > - efi.mps = (long)efi_ct[i].VendorTable; > - if ( match_guid(&smbios_guid, &efi_ct[i].VendorGuid) ) > - efi.smbios = (long)efi_ct[i].VendorTable; > - } The only arch specific things I can see throughout this entire patch are the specific GUIDs and which fields they go into in the internal structure. The GUIDs can be put in a table, and the fields can be represented e.g. via offsetof(), paired with the respective GUID. Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |