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

Why use UPIntrFreeCell to manage global resources instead of UPSafeCell? #90

Open
Hlinbit opened this issue May 9, 2023 · 1 comment

Comments

@Hlinbit
Copy link

Hlinbit commented May 9, 2023

After comparing the code in rCore and the code in rCore-Tutorial-Code-2022S, I notice that rCore uses UPIntrFreeCell to manage the global resources while the lab code uses UPSafeCell.
Why the change is necessary? In fact the document didn't give any explanation. And most confusing is that when we access the value in UPIntrFreeCell, the sie is read and some information is recorded in IntrMaskingInfo.
Can anyone help me ?

@wangrunji0408
Copy link
Member

cc @wyfcyx

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