/SPARTAN/trunk/arch/ia32/src/acpi/acpi.c |
---|
78,15 → 78,8 |
void map_sdt(struct acpi_sdt_header *sdt) |
{ |
int i, cnt, length; |
map_page_to_frame((__address) sdt, (__address) sdt, PAGE_NOT_CACHEABLE, 0); |
length = sdt->length + ((__address) sdt) - ((__address) sdt)&0xfffff000; |
cnt = length/PAGE_SIZE + (length%PAGE_SIZE>0); |
for (i = 1; i < cnt; i++) |
map_page_to_frame(((__address) sdt) + i*PAGE_SIZE, ((__address) sdt) + i*PAGE_SIZE, PAGE_NOT_CACHEABLE, 0); |
map_structure((__address) sdt, sdt->length); |
} |
void acpi_init(void) |