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

Greenhills support: fix the naked_function inline asm expansion compile error #40

Merged
merged 2 commits into from
Dec 30, 2024

Conversation

extinguish
Copy link
Contributor

  1. fix the naked_function inline asm expansion compile error with Greenhills compiler
  2. fix the incorrect stub-function entry address of svc call

@CLAassistant
Copy link

CLAassistant commented Dec 24, 2024

CLA assistant check
All committers have signed the CLA.

we should add "#" before the immediate value, otherwise the following
build error will report:
/tmp/ccAK89TT.s: Assembler messages:
/tmp/ccAK89TT.s:40: Error: immediate expression requires a # prefix -- `mov r0,(3)'

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
the stub-function entry address is stored in r4, we should branch to the
stub-function with blx r4, not r5

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
@extinguish extinguish force-pushed the ghs_fix_naked_func_err branch from aa540a8 to 93f4586 Compare December 30, 2024 06:06
@xiaoxiang781216 xiaoxiang781216 merged commit 067d0f4 into open-vela:dev Dec 30, 2024
3 checks passed
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.

4 participants