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

[question]A request on c-based bbl payload example #304

Open
SoloGao opened this issue Sep 8, 2023 · 0 comments
Open

[question]A request on c-based bbl payload example #304

SoloGao opened this issue Sep 8, 2023 · 0 comments

Comments

@SoloGao
Copy link

SoloGao commented Sep 8, 2023

Hi, I'm new for risc-v development. We aim to build a risc-v machine mode program can run on spike. Because we want to use htif functions, we try to use bbl with --enable-boot-machine, just like what's mentioned in #104 .
However, because the dummy payload is written purely in ASM, and used some "magic for me" ecalls, I can neither reproduce the "sbi_console_putchar" and "sbi_shutdown" in c, nor make a usable ld to link all things together. Could someone give a payload example in c to show how to build/how to use the putchar/shutdown function? Thanks!

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