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

calling custom IRQ instructions in C code #225

Open
QJTM opened this issue Jan 25, 2023 · 0 comments
Open

calling custom IRQ instructions in C code #225

QJTM opened this issue Jan 25, 2023 · 0 comments

Comments

@QJTM
Copy link

QJTM commented Jan 25, 2023

I'm trying to call the instruction "picorv32_timer_insn" in some C code.
Usually, to call assembly instruction I use, for instance, the line asm volatile ("addi x10, x0, 9").
When trying to use the line asm picorv32_timer_insn(x15, x10), and compiling, i get the following error message :

image

I've included a #incude "custom_ops.S" at the beginning of my file, tried to pass the file custom_ops.S to the assembler as an input file while compiling, but I can't manage to make it work.
Is there a something i'm missing, such as a calling convention ?

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

No branches or pull requests

1 participant