Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Commit

Permalink
SecurityPkg:Tcg2Smm: Update Interrupt resource name
Browse files Browse the repository at this point in the history
Update TPM interrupt resource descriptor name for better compatibility to
old ASL compiler.

Cc: Long Qin <[email protected]>
Cc: Jiewen Yao <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Chao Zhang <[email protected]>
Reviewed-by: Long Qin <[email protected]>
  • Loading branch information
zhangchaointel committed Dec 12, 2017
1 parent dfc5a4d commit 73d7773
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions SecurityPkg/Tcg/Tcg2Smm/Tpm.asl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ DefinitionBlock (

Name(RESO, ResourceTemplate () {
Memory32Fixed (ReadWrite, 0xfed40000, 0x5000, REGS)
Interrupt(ResourceConsumer, Level, ActiveLow, Shared, , , IRQ) {12}
Interrupt(ResourceConsumer, Level, ActiveLow, Shared, , , INTR) {12}
})

//
Expand All @@ -120,16 +120,16 @@ DefinitionBlock (
// Use the field name to identify the offsets in the argument
// buffer and RESO buffer.
//
CreateDWordField(Arg0, ^IRQ._INT, IRQ0)
CreateDWordField(RESO, ^IRQ._INT, LIRQ)
CreateDWordField(Arg0, ^INTR._INT, IRQ0)
CreateDWordField(RESO, ^INTR._INT, LIRQ)
Store(IRQ0, LIRQ)

CreateBitField(Arg0, ^IRQ._HE, ITRG)
CreateBitField(RESO, ^IRQ._HE, LTRG)
CreateBitField(Arg0, ^INTR._HE, ITRG)
CreateBitField(RESO, ^INTR._HE, LTRG)
Store(ITRG, LTRG)

CreateBitField(Arg0, ^IRQ._LL, ILVL)
CreateBitField(RESO, ^IRQ._LL, LLVL)
CreateBitField(Arg0, ^INTR._LL, ILVL)
CreateBitField(RESO, ^INTR._LL, LLVL)
Store(ILVL, LLVL)

//
Expand Down

0 comments on commit 73d7773

Please sign in to comment.