Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: debug build compile error #13

Merged
merged 1 commit into from
Jul 24, 2023
Merged

fix: debug build compile error #13

merged 1 commit into from
Jul 24, 2023

Conversation

c0per
Copy link
Collaborator

@c0per c0per commented Jul 24, 2023

类似这个 issue rust-lang/rust#106838 的问题:

一个 asm!() 中定义的 macro 不保证能在另一个 asm!() 中使用。

在 debug 模式下编译时出现了编译错误,提示 macro 未知。
POP_GENERAL_REGS 和 LDR 等 macro 的定义位于 axhal,复制了一份到 axtask 中,解决了这个问题。

类似这个 issue 的问题:rust-lang/rust#106838

一个 asm!() 中定义的 macro 不保证能在另一个 asm!() 中使用。

在 debug 模式下编译时出现了编译错误,提示 macro 未知。
POP_GENERAL_REGS 和 LDR 等 macro 的定义位于 axhal,复制了一份到 axtask
中,解决了这个问题。
@c0per c0per merged commit f516e85 into dev Jul 24, 2023
@c0per c0per deleted the fix/debug-build branch July 24, 2023 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant