public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Zhang, Chao B" <chao.b.zhang@intel.com>
To: edk2-devel@lists.01.org
Cc: Long Qin <qin.long@intel.com>, Jiewen Yao <jiewen.yao@intel.com>,
	Chao Zhang <chao.b.zhang@intel.com>
Subject: [PATCH] SecurityPkg:Tcg2Smm: Update Interrupt resource name
Date: Tue, 12 Dec 2017 15:40:31 +0800	[thread overview]
Message-ID: <20171212074032.17872-1-chao.b.zhang@intel.com> (raw)

Update TPM interrupt resource descriptor name for better compatibility to
old ASL compiler.

Cc: Long Qin <qin.long@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
---
 SecurityPkg/Tcg/Tcg2Smm/Tpm.asl | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/SecurityPkg/Tcg/Tcg2Smm/Tpm.asl b/SecurityPkg/Tcg/Tcg2Smm/Tpm.asl
index 76a8a13..f528305 100644
--- a/SecurityPkg/Tcg/Tcg2Smm/Tpm.asl
+++ b/SecurityPkg/Tcg/Tcg2Smm/Tpm.asl
@@ -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}
       })
 
       //
@@ -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)
 
         //
-- 
1.9.5.msysgit.1



             reply	other threads:[~2017-12-12  7:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-12  7:40 Zhang, Chao B [this message]
2017-12-12  8:40 ` [PATCH] SecurityPkg:Tcg2Smm: Update Interrupt resource name Long, Qin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171212074032.17872-1-chao.b.zhang@intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox