Rev 1705 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1705 | Rev 1735 | ||
---|---|---|---|
Line 104... | Line 104... | ||
104 | map_sdt(h); |
104 | map_sdt(h); |
105 | if (*((__u32 *) &h->signature[0])==*((__u32 *) &signature_map[j].signature[0])) { |
105 | if (*((__u32 *) &h->signature[0])==*((__u32 *) &signature_map[j].signature[0])) { |
106 | if (!acpi_sdt_check((__u8 *) h)) |
106 | if (!acpi_sdt_check((__u8 *) h)) |
107 | goto next; |
107 | goto next; |
108 | *signature_map[j].sdt_ptr = h; |
108 | *signature_map[j].sdt_ptr = h; |
109 | printf("%#zX: ACPI %s\n", *signature_map[j].sdt_ptr, signature_map[j].description); |
109 | printf("%#zx: ACPI %s\n", *signature_map[j].sdt_ptr, signature_map[j].description); |
110 | } |
110 | } |
111 | } |
111 | } |
112 | next: |
112 | next: |
113 | ; |
113 | ; |
114 | } |
114 | } |
Line 125... | Line 125... | ||
125 | map_sdt(h); |
125 | map_sdt(h); |
126 | if (*((__u32 *) &h->signature[0])==*((__u32 *) &signature_map[j].signature[0])) { |
126 | if (*((__u32 *) &h->signature[0])==*((__u32 *) &signature_map[j].signature[0])) { |
127 | if (!acpi_sdt_check((__u8 *) h)) |
127 | if (!acpi_sdt_check((__u8 *) h)) |
128 | goto next; |
128 | goto next; |
129 | *signature_map[j].sdt_ptr = h; |
129 | *signature_map[j].sdt_ptr = h; |
130 | printf("%#zX: ACPI %s\n", *signature_map[j].sdt_ptr, signature_map[j].description); |
130 | printf("%#zx: ACPI %s\n", *signature_map[j].sdt_ptr, signature_map[j].description); |
131 | } |
131 | } |
132 | } |
132 | } |
133 | next: |
133 | next: |
134 | ; |
134 | ; |
135 | } |
135 | } |
Line 159... | Line 159... | ||
159 | } |
159 | } |
160 | 160 | ||
161 | return; |
161 | return; |
162 | 162 | ||
163 | rsdp_found: |
163 | rsdp_found: |
164 | printf("%#zX: ACPI Root System Description Pointer\n", acpi_rsdp); |
164 | printf("%#zx: ACPI Root System Description Pointer\n", acpi_rsdp); |
165 | 165 | ||
166 | acpi_rsdt = (struct acpi_rsdt *) (__native) acpi_rsdp->rsdt_address; |
166 | acpi_rsdt = (struct acpi_rsdt *) (__native) acpi_rsdp->rsdt_address; |
167 | if (acpi_rsdp->revision) acpi_xsdt = (struct acpi_xsdt *) ((__address) acpi_rsdp->xsdt_address); |
167 | if (acpi_rsdp->revision) acpi_xsdt = (struct acpi_xsdt *) ((__address) acpi_rsdp->xsdt_address); |
168 | 168 | ||
169 | if (acpi_rsdt) map_sdt((struct acpi_sdt_header *) acpi_rsdt); |
169 | if (acpi_rsdt) map_sdt((struct acpi_sdt_header *) acpi_rsdt); |