Skip to content

Conversation

@ZR233
Copy link

@ZR233 ZR233 commented Dec 11, 2025

To fix: #149877

Support extern "efiapi" for target loongarch64

Copilot AI review requested due to automatic review settings December 11, 2025 15:25
@rustbot
Copy link
Collaborator

rustbot commented Dec 11, 2025

These commits modify compiler targets.
(See the Target Tier Policy.)

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Dec 11, 2025
@rustbot
Copy link
Collaborator

rustbot commented Dec 11, 2025

r? @madsmtm

rustbot has assigned @madsmtm.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

This comment was marked as spam.

Copy link
Contributor

@madsmtm madsmtm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I'm unfamiliar with LoongArch, so I'll ping the target maintainers:

@rustbot ping loongarch

I'm also a bit unsure of the process, but I think this'll need a lang FCP. But let's get to that once the implementation is a bit more fleshed out.

View changes since this review

LoongArch64,
/// Architectures which don't need other considerations for ABI lowering
Other,
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should support be added in InlineAsmClobberAbi::parse as well?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, that was intentionally not done in #111499, so I'm unsure here?

LoongArch64,
/// Architectures which don't need other considerations for ABI lowering
Other,
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(ExternAbi::EfiApi, ArchKind::Aarch64 | ArchKind::Riscv | ArchKind::X86) => CanonAbi::C,
(
ExternAbi::EfiApi,
ArchKind::Aarch64 | ArchKind::Riscv | ArchKind::X86 | ArchKind::LoongArch64,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why only LoongArch64? Isn't LoongArch32 the same?

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 13, 2025
@rustbot
Copy link
Collaborator

rustbot commented Dec 13, 2025

Reminder, once the PR becomes ready for a review, use @rustbot ready.

@rustbot
Copy link
Collaborator

rustbot commented Dec 13, 2025

Error: This team (loongarch) cannot be pinged via this command; it may need to be added to triagebot.toml on the default branch.

Please file an issue on GitHub at triagebot if there's a problem with this bot, or reach out on #triagebot on Zulip.

@madsmtm
Copy link
Contributor

madsmtm commented Dec 13, 2025

Oh well, pinging loongarch people manually then: @heiher, @xiangzhai, @xen0n, @xry111

@heiher
Copy link
Contributor

heiher commented Dec 13, 2025

Thanks for your patch. Since LoongArch currently lacks basic UEFI support, adding efiapi does not change anything at the moment. We are actively working on bringing UEFI support to LoongArch, which involves the PE format specification, LLVM, and related components. More here:

loongson-community/discussions#108

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"efiapi" is not a supported ABI for loongarch64

4 participants