Rev 33 | Rev 116 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 33 | Rev 34 | ||
---|---|---|---|
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 | ||
81 | map_page_to_frame((__address) sdt, (__address) sdt, PAGE_NOT_CACHEABLE, 0); |
83 | map_page_to_frame((__address) sdt, (__address) sdt, PAGE_NOT_CACHEABLE, 0); |
- | 84 | ||
- | 85 | length = sdt->length + ((__address) sdt) - ((__address) sdt)&0xfffff000; |
|
- | 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); |
|
82 | } |
90 | } |
83 | 91 | ||
84 | void acpi_init(void) |
92 | void acpi_init(void) |
85 | { |
93 | { |
86 | __u8 *addr[2] = { NULL, (__u8 *) 0xe0000 }; |
94 | __u8 *addr[2] = { NULL, (__u8 *) 0xe0000 }; |