mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[ACPICA] Update to version 20201217. CORE-17410
This commit is contained in:
parent
8de143e058
commit
9587fe1c36
18 changed files with 43 additions and 25 deletions
|
@ -102,7 +102,7 @@ AcpiDsExecBeginControlOp (
|
|||
}
|
||||
}
|
||||
|
||||
/*lint -fallthrough */
|
||||
ACPI_FALLTHROUGH;
|
||||
|
||||
case AML_IF_OP:
|
||||
/*
|
||||
|
|
|
@ -146,7 +146,7 @@ AcpiDsDumpMethodStack (
|
|||
|
||||
/* Ignore control codes, they are not errors */
|
||||
|
||||
if ((Status & AE_CODE_MASK) == AE_CODE_CONTROL)
|
||||
if (ACPI_CNTL_EXCEPTION (Status))
|
||||
{
|
||||
return_VOID;
|
||||
}
|
||||
|
|
|
@ -664,8 +664,7 @@ AcpiDsExecEndOp (
|
|||
break;
|
||||
}
|
||||
|
||||
/* Fall through */
|
||||
/*lint -fallthrough */
|
||||
ACPI_FALLTHROUGH;
|
||||
|
||||
case AML_INT_EVAL_SUBTREE_OP:
|
||||
|
||||
|
|
|
@ -267,7 +267,7 @@ AcpiDsLoad1BeginOp (
|
|||
break;
|
||||
}
|
||||
|
||||
/*lint -fallthrough */
|
||||
ACPI_FALLTHROUGH;
|
||||
|
||||
default:
|
||||
|
||||
|
|
|
@ -258,7 +258,7 @@ AcpiDsLoad2BeginOp (
|
|||
break;
|
||||
}
|
||||
|
||||
/*lint -fallthrough */
|
||||
ACPI_FALLTHROUGH;
|
||||
|
||||
default:
|
||||
|
||||
|
|
|
@ -508,7 +508,7 @@ AcpiExFieldDatumIo (
|
|||
* RegionField case and write the datum to the Operation Region
|
||||
*/
|
||||
|
||||
/*lint -fallthrough */
|
||||
ACPI_FALLTHROUGH;
|
||||
|
||||
case ACPI_TYPE_LOCAL_REGION_FIELD:
|
||||
/*
|
||||
|
|
|
@ -250,7 +250,7 @@ AcpiExResolveOperands (
|
|||
|
||||
TargetOp = AML_DEBUG_OP;
|
||||
|
||||
/*lint -fallthrough */
|
||||
ACPI_FALLTHROUGH;
|
||||
|
||||
case ACPI_REFCLASS_ARG:
|
||||
case ACPI_REFCLASS_LOCAL:
|
||||
|
@ -314,7 +314,7 @@ AcpiExResolveOperands (
|
|||
* Else not a string - fall through to the normal Reference
|
||||
* case below
|
||||
*/
|
||||
/*lint -fallthrough */
|
||||
ACPI_FALLTHROUGH;
|
||||
|
||||
case ARGI_REFERENCE: /* References: */
|
||||
case ARGI_INTEGER_REF:
|
||||
|
|
|
@ -140,7 +140,7 @@ AcpiExStore (
|
|||
return_ACPI_STATUS (AE_OK);
|
||||
}
|
||||
|
||||
/*lint -fallthrough */
|
||||
ACPI_FALLTHROUGH;
|
||||
|
||||
default:
|
||||
|
||||
|
@ -477,7 +477,7 @@ AcpiExStoreObjectToNode (
|
|||
break;
|
||||
}
|
||||
|
||||
/* Fallthrough */
|
||||
ACPI_FALLTHROUGH;
|
||||
|
||||
case ACPI_TYPE_DEVICE:
|
||||
case ACPI_TYPE_EVENT:
|
||||
|
|
|
@ -146,7 +146,7 @@ AcpiHwLowSetGpe (
|
|||
return (AE_BAD_PARAMETER);
|
||||
}
|
||||
|
||||
/*lint -fallthrough */
|
||||
ACPI_FALLTHROUGH;
|
||||
|
||||
case ACPI_GPE_ENABLE:
|
||||
|
||||
|
|
|
@ -96,11 +96,11 @@ typedef struct acpi_exception_info
|
|||
|
||||
#define AE_OK (ACPI_STATUS) 0x0000
|
||||
|
||||
#define ACPI_ENV_EXCEPTION(Status) (Status & AE_CODE_ENVIRONMENTAL)
|
||||
#define ACPI_AML_EXCEPTION(Status) (Status & AE_CODE_AML)
|
||||
#define ACPI_PROG_EXCEPTION(Status) (Status & AE_CODE_PROGRAMMER)
|
||||
#define ACPI_TABLE_EXCEPTION(Status) (Status & AE_CODE_ACPI_TABLES)
|
||||
#define ACPI_CNTL_EXCEPTION(Status) (Status & AE_CODE_CONTROL)
|
||||
#define ACPI_ENV_EXCEPTION(Status) (((Status) & AE_CODE_MASK) == AE_CODE_ENVIRONMENTAL)
|
||||
#define ACPI_AML_EXCEPTION(Status) (((Status) & AE_CODE_MASK) == AE_CODE_AML)
|
||||
#define ACPI_PROG_EXCEPTION(Status) (((Status) & AE_CODE_MASK) == AE_CODE_PROGRAMMER)
|
||||
#define ACPI_TABLE_EXCEPTION(Status) (((Status) & AE_CODE_MASK) == AE_CODE_ACPI_TABLES)
|
||||
#define ACPI_CNTL_EXCEPTION(Status) (((Status) & AE_CODE_MASK) == AE_CODE_CONTROL)
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
|
||||
/* Current ACPICA subsystem version in YYYYMMDD format */
|
||||
|
||||
#define ACPI_CA_VERSION 0x20201113
|
||||
#define ACPI_CA_VERSION 0x20201217
|
||||
|
||||
#include "acconfig.h"
|
||||
#include "actypes.h"
|
||||
|
|
|
@ -1429,5 +1429,10 @@ typedef enum
|
|||
|
||||
#define ACPI_OPT_END -1
|
||||
|
||||
/* Definitions for explicit fallthrough */
|
||||
|
||||
#ifndef ACPI_FALLTHROUGH
|
||||
#define ACPI_FALLTHROUGH do {} while(0)
|
||||
#endif
|
||||
|
||||
#endif /* __ACTYPES_H__ */
|
||||
|
|
|
@ -88,6 +88,21 @@ typedef __builtin_va_list va_list;
|
|||
|
||||
#define ACPI_USE_NATIVE_MATH64
|
||||
|
||||
/* GCC did not support __has_attribute until 5.1. */
|
||||
|
||||
#ifndef __has_attribute
|
||||
#define __has_attribute(x) 0
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Explictly mark intentional explicit fallthrough to silence
|
||||
* -Wimplicit-fallthrough in GCC 7.1+.
|
||||
*/
|
||||
|
||||
#if __has_attribute(__fallthrough__)
|
||||
#define ACPI_FALLTHROUGH __attribute__((__fallthrough__))
|
||||
#endif
|
||||
|
||||
#ifdef __REACTOS__
|
||||
/* Flush CPU cache - used when going to sleep. Wbinvd or similar. */
|
||||
|
||||
|
|
|
@ -302,8 +302,7 @@ AcpiPsParseLoop (
|
|||
*/
|
||||
WalkState->Op = NULL;
|
||||
Status = AcpiDsGetPredicateValue (WalkState, ACPI_TO_POINTER (TRUE));
|
||||
if (ACPI_FAILURE (Status) &&
|
||||
((Status & AE_CODE_MASK) != AE_CODE_CONTROL))
|
||||
if (ACPI_FAILURE (Status) && !ACPI_CNTL_EXCEPTION (Status))
|
||||
{
|
||||
if (Status == AE_AML_NO_RETURN_VALUE)
|
||||
{
|
||||
|
|
|
@ -425,7 +425,7 @@ AcpiPsNextParseState (
|
|||
default:
|
||||
|
||||
Status = CallbackStatus;
|
||||
if ((CallbackStatus & AE_CODE_MASK) == AE_CODE_CONTROL)
|
||||
if (ACPI_CNTL_EXCEPTION (CallbackStatus))
|
||||
{
|
||||
Status = AE_OK;
|
||||
}
|
||||
|
|
|
@ -158,7 +158,7 @@ AcpiUtDeleteInternalObj (
|
|||
(void) AcpiEvDeleteGpeBlock (Object->Device.GpeBlock);
|
||||
}
|
||||
|
||||
/*lint -fallthrough */
|
||||
ACPI_FALLTHROUGH;
|
||||
|
||||
case ACPI_TYPE_PROCESSOR:
|
||||
case ACPI_TYPE_THERMAL:
|
||||
|
|
|
@ -166,7 +166,7 @@ AcpiUtConvertDecimalString (
|
|||
* 1) Runtime: terminate with no error, per the ACPI spec
|
||||
* 2) Compiler: return an error
|
||||
*/
|
||||
if (!isdigit (*String))
|
||||
if (!isdigit ((int) *String))
|
||||
{
|
||||
#ifdef ACPI_ASL_COMPILER
|
||||
Status = AE_BAD_DECIMAL_CONSTANT;
|
||||
|
@ -228,7 +228,7 @@ AcpiUtConvertHexString (
|
|||
* 1) Runtime: terminate with no error, per the ACPI spec
|
||||
* 2) Compiler: return an error
|
||||
*/
|
||||
if (!isxdigit (*String))
|
||||
if (!isxdigit ((int) *String))
|
||||
{
|
||||
#ifdef ACPI_ASL_COMPILER
|
||||
Status = AE_BAD_HEX_CONSTANT;
|
||||
|
|
|
@ -69,7 +69,7 @@ URL: https://gitlab.freedesktop.org/mesa/glu, ftp://ftp.freedesktop.org/pub/mesa
|
|||
|
||||
Title: ACPICA
|
||||
Path: drivers/bus/acpi/acpica
|
||||
Used Version: 20201113
|
||||
Used Version: 20201217
|
||||
License: GPL-2.0 (https://spdx.org/licenses/GPL-2.0.html)
|
||||
URL: https://acpica.org/
|
||||
|
||||
|
|
Loading…
Reference in a new issue