From: Sven Schnelle <svens@stackframe.org>
To: Helge Deller <deller@gmx.de>
Cc: linux-parisc@vger.kernel.org
Subject: Re: [PATCH 2/2] parisc: add support for TOC (transfer of control)
Date: Sun, 10 Oct 2021 21:36:37 +0200 [thread overview]
Message-ID: <87lf30hdtm.fsf@x1.stackframe.org> (raw)
In-Reply-To: <57e64e6d-88a6-7789-efa5-7e3bdbeae8df@gmx.de> (Helge Deller's message of "Sun, 10 Oct 2021 21:31:00 +0200")
Hi Helge,
Helge Deller <deller@gmx.de> writes:
> On 10/10/21 20:38, Sven Schnelle wrote:
>> +void notrace toc_intr(struct pt_regs *regs)
>> +{
>> + struct pdc_toc_pim_20 pim_data20;
>> + struct pdc_toc_pim_11 pim_data11;
>> +
>> + nmi_enter();
>> +
>> + if (boot_cpu_data.cpu_type >= pcxu) {
>
> I wonder if this is correct.
> If we boot a 32bit-kernel on a 64-bit (pcxu) machine, then
> I think the code below for pdc_pim_toc11() should be executed.
> So, maybe we need a #ifdef CONFIG_64BIT above...
>
>
>> + if (pdc_pim_toc20(&pim_data20))
>> + panic("Failed to get PIM data");
>> + toc20_to_pt_regs(regs, &pim_data20);
>> + } else {
>
> ... with an #else here
>
>> + if (pdc_pim_toc11(&pim_data11))
>> + panic("Failed to get PIM data");
>> + toc11_to_pt_regs(regs, &pim_data11);
>> + }
>
> and #endif here. ??
Hmm, that's what i understood from the HPMC PIM code,
transfer_pim_to_trap_frame(). If it's running a 32 Bit OS, than PDC
returns a wide frame on a 64 bit capable CPU? But maybe i have to read
the documentation/code again.
Regards
Sven
next prev parent reply other threads:[~2021-10-10 19:36 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-10 18:38 [PATCH v2 0/2] add TOC support Sven Schnelle
2021-10-10 18:38 ` [PATCH 1/2] parisc/firmware: add functions to retrieve TOC data Sven Schnelle
2021-10-11 15:05 ` Rolf Eike Beer
2021-10-11 20:13 ` Helge Deller
2021-10-12 20:33 ` Sven Schnelle
2021-10-12 20:52 ` Helge Deller
2021-10-10 18:38 ` [PATCH 2/2] parisc: add support for TOC (transfer of control) Sven Schnelle
2021-10-10 19:31 ` Helge Deller
2021-10-10 19:36 ` Sven Schnelle [this message]
2021-10-12 10:03 ` Helge Deller
2021-10-15 16:22 ` Rolf Eike Beer
-- strict thread matches above, loose matches on Subject: below --
2021-10-09 21:38 [PATCH 0/2] add TOC support Sven Schnelle
2021-10-09 21:38 ` [PATCH 2/2] parisc: add support for TOC (transfer of control) Sven Schnelle
2021-10-10 9:13 ` Helge Deller
2021-10-10 11:42 ` Sven Schnelle
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-all 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=87lf30hdtm.fsf@x1.stackframe.org \
--to=svens@stackframe.org \
--cc=deller@gmx.de \
--cc=linux-parisc@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).