Rev 1498 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1498 | Rev 2216 | ||
---|---|---|---|
Line 6... | Line 6... | ||
6 | 6 | ||
7 | /****************************************************************************** |
7 | /****************************************************************************** |
8 | * |
8 | * |
9 | * 1. Copyright Notice |
9 | * 1. Copyright Notice |
10 | * |
10 | * |
11 | * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
11 | * Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
12 | * All rights reserved. |
12 | * All rights reserved. |
13 | * |
13 | * |
14 | * 2. License |
14 | * 2. License |
15 | * |
15 | * |
Line 214... | Line 214... | ||
214 | return_ACPI_STATUS (Status); |
214 | return_ACPI_STATUS (Status); |
215 | } |
215 | } |
216 | } |
216 | } |
Line 217... | Line 217... | ||
217 | 217 | ||
- | 218 | /* |
|
- | 219 | * Validate the incoming table signature. |
|
218 | /* |
220 | * |
219 | * Originally, we checked the table signature for "SSDT" or "PSDT" here. |
221 | * 1) Originally, we checked the table signature for "SSDT" or "PSDT". |
220 | * Next, we added support for OEMx tables, signature "OEM". |
222 | * 2) We added support for OEMx tables, signature "OEM". |
221 | * Valid tables were encountered with a null signature, so we've just |
223 | * 3) Valid tables were encountered with a null signature, so we just |
- | 224 | * gave up on validating the signature, (05/2008). |
|
- | 225 | * 4) We encountered non-AML tables such as the MADT, which caused |
|
222 | * given up on validating the signature, since it seems to be a waste |
226 | * interpreter errors and kernel faults. So now, we once again allow |
223 | * of code. The original code was removed (05/2008). |
227 | * only "SSDT", "OEMx", and now, also a null signature. (05/2011). |
- | 228 | */ |
|
- | 229 | if ((TableDesc->Pointer->Signature[0] != 0x00) && |
|
- | 230 | (!ACPI_COMPARE_NAME (TableDesc->Pointer->Signature, ACPI_SIG_SSDT)) && |
|
- | 231 | (ACPI_STRNCMP (TableDesc->Pointer->Signature, "OEM", 3))) |
|
- | 232 | { |
|
- | 233 | ACPI_ERROR ((AE_INFO, |
|
- | 234 | "Table has invalid signature [%4.4s] (0x%8.8X), must be SSDT or OEMx", |
|
- | 235 | AcpiUtValidAcpiName (*(UINT32 *) TableDesc->Pointer->Signature) ? |
|
- | 236 | TableDesc->Pointer->Signature : "????", |
|
- | 237 | *(UINT32 *) TableDesc->Pointer->Signature)); |
|
- | 238 | ||
- | 239 | return_ACPI_STATUS (AE_BAD_SIGNATURE); |
|
Line 224... | Line 240... | ||
224 | */ |
240 | } |
Line 225... | Line 241... | ||
225 | 241 |