8 #define dmi_alloc alloc_bootmem
10 #else /* CONFIG_X86_32 */
12 #define DMI_MAX_DATA 2048
14 extern int dmi_alloc_index
;
15 extern char dmi_alloc_data
[DMI_MAX_DATA
];
17 /* This is so early that there is no good way to allocate dynamic memory.
18 Allocate data in an BSS array. */
19 static inline void *dmi_alloc(unsigned len
)
21 int idx
= dmi_alloc_index
;
22 if ((dmi_alloc_index
+ len
) > DMI_MAX_DATA
)
24 dmi_alloc_index
+= len
;
25 return dmi_alloc_data
+ idx
;
30 /* Use early IO mappings for DMI because it's initialized early */
31 #define dmi_ioremap early_ioremap
32 #define dmi_iounmap early_iounmap