From 969c255511a4bd12e6becc11b2a822f24c1fbb76 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 31 Jul 2009 17:11:41 -0700 Subject: platform: relax rom scanning alignment for ahci platforms The PCI-3.0 Firmware specification allows for option-roms to have 512-byte alignment rather than 2048-byte. As there does not appear to be a reliable method to detect a PCI-3.0 compliant BIOS from userspace we allow the imsm platform detection code to presume that a system modern enough to have an Intel AHCI controller does not have dangerous/legacy ISA regions in the option-ROM memory space. An environment variable to disable this behaviour, IMSM_SAFE_OROM_SCAN, is added in case this presumption is ever proven wrong. Reported-by: Hans de Goede Signed-off-by: Dan Williams --- probe_roms.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'probe_roms.h') diff --git a/probe_roms.h b/probe_roms.h index 557e9335..a1e291a1 100644 --- a/probe_roms.h +++ b/probe_roms.h @@ -18,7 +18,7 @@ */ void probe_roms_exit(void); -int probe_roms_init(void); +int probe_roms_init(unsigned long align); typedef int (*scan_fn)(const void *start, const void *end); int scan_adapter_roms(scan_fn fn); void probe_roms(void); -- cgit v1.2.3