Rev 756 | Rev 1266 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 756 | Rev 1196 | ||
---|---|---|---|
Line 94... | Line 94... | ||
94 | map_sdt(h); |
94 | map_sdt(h); |
95 | if (*((__u32 *) &h->signature[0])==*((__u32 *) &signature_map[j].signature[0])) { |
95 | if (*((__u32 *) &h->signature[0])==*((__u32 *) &signature_map[j].signature[0])) { |
96 | if (!acpi_sdt_check((__u8 *) h)) |
96 | if (!acpi_sdt_check((__u8 *) h)) |
97 | goto next; |
97 | goto next; |
98 | *signature_map[j].sdt_ptr = h; |
98 | *signature_map[j].sdt_ptr = h; |
99 | printf("%P: ACPI %s\n", *signature_map[j].sdt_ptr, signature_map[j].description); |
99 | printf("%#zX: ACPI %s\n", *signature_map[j].sdt_ptr, signature_map[j].description); |
100 | } |
100 | } |
101 | } |
101 | } |
102 | next: |
102 | next: |
103 | ; |
103 | ; |
104 | } |
104 | } |
Line 115... | Line 115... | ||
115 | map_sdt(h); |
115 | map_sdt(h); |
116 | if (*((__u32 *) &h->signature[0])==*((__u32 *) &signature_map[j].signature[0])) { |
116 | if (*((__u32 *) &h->signature[0])==*((__u32 *) &signature_map[j].signature[0])) { |
117 | if (!acpi_sdt_check((__u8 *) h)) |
117 | if (!acpi_sdt_check((__u8 *) h)) |
118 | goto next; |
118 | goto next; |
119 | *signature_map[j].sdt_ptr = h; |
119 | *signature_map[j].sdt_ptr = h; |
120 | printf("%P: ACPI %s\n", *signature_map[j].sdt_ptr, signature_map[j].description); |
120 | printf("%#zX: ACPI %s\n", *signature_map[j].sdt_ptr, signature_map[j].description); |
121 | } |
121 | } |
122 | } |
122 | } |
123 | next: |
123 | next: |
124 | ; |
124 | ; |
125 | } |
125 | } |
Line 149... | Line 149... | ||
149 | } |
149 | } |
150 | 150 | ||
151 | return; |
151 | return; |
152 | 152 | ||
153 | rsdp_found: |
153 | rsdp_found: |
154 | printf("%P: ACPI Root System Description Pointer\n", acpi_rsdp); |
154 | printf("%#zX: ACPI Root System Description Pointer\n", acpi_rsdp); |
155 | 155 | ||
156 | acpi_rsdt = (struct acpi_rsdt *) (__native) acpi_rsdp->rsdt_address; |
156 | acpi_rsdt = (struct acpi_rsdt *) (__native) acpi_rsdp->rsdt_address; |
157 | if (acpi_rsdp->revision) acpi_xsdt = (struct acpi_xsdt *) ((__address) acpi_rsdp->xsdt_address); |
157 | if (acpi_rsdp->revision) acpi_xsdt = (struct acpi_xsdt *) ((__address) acpi_rsdp->xsdt_address); |
158 | 158 | ||
159 | if (acpi_rsdt) map_sdt((struct acpi_sdt_header *) acpi_rsdt); |
159 | if (acpi_rsdt) map_sdt((struct acpi_sdt_header *) acpi_rsdt); |