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

PageTableEntry 类型是否应该使用 repr(transparent) #130

Open
mapleFU opened this issue Feb 14, 2021 · 0 comments
Open

PageTableEntry 类型是否应该使用 repr(transparent) #130

mapleFU opened this issue Feb 14, 2021 · 0 comments
Labels
learning Learner discussions

Comments

@mapleFU
Copy link
Contributor

mapleFU commented Feb 14, 2021

/// Sv39 结构的页表项
#[derive(Copy, Clone, Default)]
pub struct PageTableEntry(usize);

这个结构是不是最好是 repr(transparent) 的?按 Rust RFC 描述,感觉 repr(transparent) 能比较好控制 PageTableEntry 的 abi?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
learning Learner discussions
Projects
None yet
Development

No branches or pull requests

1 participant