sb/intel/common: Move definition of TRAP
Both TRAP and TRP0 are now only defined for i82801gx ASL. This fixes an issue with updating to IASL 20221020, with many intel platform builds failing with: dsdt.asl 38: TRP0 = 0 Error 6084 - ^ Object does not exist (TRP0) The error was ignored with older IASL. Change-Id: Ie8a59803f4a27a8315c16bde401f8ca90ee814a7 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70476 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
f8fbf0917c
commit
56395f4883
|
@ -11,16 +11,6 @@ Field (APMP, ByteAcc, NoLock, Preserve)
|
|||
|
||||
#include <arch/x86/acpi/post.asl>
|
||||
|
||||
#if CONFIG(ACPI_SOC_NVS)
|
||||
/* SMI I/O Trap */
|
||||
Method(TRAP, 1, Serialized)
|
||||
{
|
||||
SMIF = Arg0 // SMI Function
|
||||
TRP0 = 0 // Generate trap
|
||||
Return (SMIF) // Return value of SMI handler
|
||||
}
|
||||
#endif /* ACPI_SOC_NVS */
|
||||
|
||||
Method(GOS, 0)
|
||||
{
|
||||
/* Determine the Operating System and save the value in OSYS.
|
||||
|
|
|
@ -15,6 +15,14 @@ Scope(\)
|
|||
TRP0, 8 // IO-Trap at 0x808
|
||||
}
|
||||
|
||||
/* SMI I/O Trap */
|
||||
Method(TRAP, 1, Serialized)
|
||||
{
|
||||
SMIF = Arg0 // SMI Function
|
||||
TRP0 = 0 // Generate trap
|
||||
Return (SMIF) // Return value of SMI handler
|
||||
}
|
||||
|
||||
// ICH7 Power Management Registers, located at PMBASE (0x1f.0 0x40.l)
|
||||
OperationRegion(PMIO, SystemIO, DEFAULT_PMBASE, 0x80)
|
||||
Field(PMIO, ByteAcc, NoLock, Preserve)
|
||||
|
|
Loading…
Reference in New Issue