Rev 34 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 34 | Rev 116 | ||
---|---|---|---|
Line 76... | Line 76... | ||
76 | return !sum; |
76 | return !sum; |
77 | } |
77 | } |
78 | 78 | ||
79 | void map_sdt(struct acpi_sdt_header *sdt) |
79 | void map_sdt(struct acpi_sdt_header *sdt) |
80 | { |
80 | { |
81 | int i, cnt, length; |
- | |
82 | - | ||
83 | map_page_to_frame((__address) sdt, (__address) sdt, PAGE_NOT_CACHEABLE, 0); |
81 | map_page_to_frame((__address) sdt, (__address) sdt, PAGE_NOT_CACHEABLE, 0); |
84 | - | ||
85 | length = sdt->length + ((__address) sdt) - ((__address) sdt)&0xfffff000; |
82 | map_structure((__address) sdt, sdt->length); |
86 | cnt = length/PAGE_SIZE + (length%PAGE_SIZE>0); |
- | |
87 | - | ||
88 | for (i = 1; i < cnt; i++) |
- | |
89 | map_page_to_frame(((__address) sdt) + i*PAGE_SIZE, ((__address) sdt) + i*PAGE_SIZE, PAGE_NOT_CACHEABLE, 0); |
- | |
90 | } |
83 | } |
91 | 84 | ||
92 | void acpi_init(void) |
85 | void acpi_init(void) |
93 | { |
86 | { |
94 | __u8 *addr[2] = { NULL, (__u8 *) 0xe0000 }; |
87 | __u8 *addr[2] = { NULL, (__u8 *) 0xe0000 }; |