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

C906/C910的拓展页表设置MAEE该如何关闭? #401

Closed
sukiiiKotori opened this issue Jul 29, 2023 · 3 comments
Closed

C906/C910的拓展页表设置MAEE该如何关闭? #401

sukiiiKotori opened this issue Jul 29, 2023 · 3 comments

Comments

@sukiiiKotori
Copy link

我在编写自己的操作系统时也遇到了该问题,在zCore文档的C910.md中,我看到开发人员使用了置MAEE为0的方式来关闭平头哥的页表扩展,请问具体该如何关闭呢?非常感谢

@elliott10
Copy link
Collaborator

elliott10 commented Jul 29, 2023

需要在M态关闭mxstatus寄存器的MAEE位。
具体代码请参考:
https://github.com/elliott10/opensbi/blob/thead_light-c910/platform/generic/platform.c#L61

@sukiiiKotori
Copy link
Author

非常感谢,但是我们比赛的时候用的是Uboot引导启动,可能没法修改sbi了。那我只能按他的要求设置标志位了

@elliott10
Copy link
Collaborator

非常感谢,但是我们比赛的时候用的是Uboot引导启动,可能没法修改sbi了。那我只能按他的要求设置标志位了

请问比赛你用的板子型号是?

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

2 participants