From: "Michael Brown" <mcb30@ipxe.org>
To: devel@edk2.groups.io, ray.ni@intel.com,
Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Laszlo Ersek <lersek@redhat.com>,
Gerd Hoffmann <kraxel@redhat.com>,
"Kinney, Michael D" <michael.d.kinney@intel.com>
Subject: Re: [edk2-devel] [PATCH 1/1] MdeModulePkg: Move NestedInterruptTplLib to MdeModulePkg
Date: Sat, 20 Jan 2024 17:02:13 +0000 [thread overview]
Message-ID: <0102018d27d2a7dd-b78be487-1f36-4b42-b118-49a2f9c5451a-000000@eu-west-1.amazonses.com> (raw)
In-Reply-To: <MN6PR11MB824421D73C80FEC6374B392E8C772@MN6PR11MB8244.namprd11.prod.outlook.com>
On 20/01/2024 07:03, Ni, Ray wrote:
> Can you submit another patch to add Iret.h to the INF file [Sources] section?
>
> Without that, incremental build might not work if changes are made in Iret.h.
Good catch, thank you. I will send a v2.
> It doesn't support non-x86 CPU. Will ARM have similar problems?
> +Ard,
The underlying issue is not x86-specific, so it would make sense for all
timer interrupt handlers to make use of NestedInterruptTplLib.
The Arm ARM states in D1.3.2 that when an interrupt is raised, the
PSTATE.I and PSTATE.F bits are both set to 1. I believe the following
code in Iret.c should therefore work for AArch64:
+ #elif defined (MDE_CPU_AARCH64)
+
+ //
+ // Set IRQ-disabled and FIQ-disabled flags.
+ //
+ SystemContext.SystemContextAArch64->SPSR |= (SPSR_I | SPSR_F);
+
(plus whatever .inf changes are needed to pick up the ArmLib headers
where SPSR_I and SPSR_F are defined).
Thanks,
Michael
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#114118): https://edk2.groups.io/g/devel/message/114118
Mute This Topic: https://groups.io/mt/103841406/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
prev parent reply other threads:[~2024-01-20 17:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-19 23:25 [edk2-devel] [PATCH 1/1] MdeModulePkg: Move NestedInterruptTplLib to MdeModulePkg Michael Brown
2024-01-20 7:03 ` Ni, Ray
2024-01-20 17:02 ` Michael Brown [this message]
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=0102018d27d2a7dd-b78be487-1f36-4b42-b118-49a2f9c5451a-000000@eu-west-1.amazonses.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