|
@@ -108,6 +108,10 @@ static inline void acpi_initrd_override(void *data, size_t size)
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+#define BAD_MADT_ENTRY(entry, end) ( \
|
|
|
|
+ (!entry) || (unsigned long)entry + sizeof(*entry) > end || \
|
|
|
|
+ ((struct acpi_subtable_header *)entry)->length < sizeof(*entry))
|
|
|
|
+
|
|
char * __acpi_map_table (unsigned long phys_addr, unsigned long size);
|
|
char * __acpi_map_table (unsigned long phys_addr, unsigned long size);
|
|
void __acpi_unmap_table(char *map, unsigned long size);
|
|
void __acpi_unmap_table(char *map, unsigned long size);
|
|
int early_acpi_boot_init(void);
|
|
int early_acpi_boot_init(void);
|