Skip to content

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

@Hlinbit

Description

@Hlinbit

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions