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

Failed to access CSR 0xc01 from M-modesbi_trap_error #181

Open
Mammon-github opened this issue Mar 28, 2023 · 0 comments
Open

Failed to access CSR 0xc01 from M-modesbi_trap_error #181

Mammon-github opened this issue Mar 28, 2023 · 0 comments

Comments

@Mammon-github
Copy link

Mammon-github commented Mar 28, 2023

When I was running linux kernel on sifive unmatched board, I found that get_cycles() always return 0, this function will return the value of CSR_TIME register, It shouldn‘t be zero. but the CSR_CYCLE can be read and working properly.
By reading the SiFive FU740-C000 Manual. I realized that RTC may need a battery, and the problem persisted even after the battery was installed.
Then I add those code in Opensbi:
jj_mtime_addr = 0x0200_BFF8 (mtime register addr in clint)
image
And error occurs:
image
I don‘t known why CSR_TIME can't be access.
please help me

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