-
Couldn't load subscription status.
- Fork 214
add some syscalls #6
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
Conversation
| pub fn sys_cprng_draw_once(&self, mut buf: UserOutPtr<u64>, len: usize) -> ZxResult<usize> { | ||
| assert_eq!(len, 8usize); | ||
| let mut res = 0u64; | ||
| if unsafe { _rdrand64_step(&mut res) } == 1 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO:移到 HAL 里
|
|
||
| #[repr(u32)] | ||
| enum ZxInfo { | ||
| InfoNone = 0u32, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO:可以去掉 info 前缀
| } | ||
| unimplemented!() | ||
| } | ||
| Ok(0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果类型不匹配应该返回错误吧
support almost all the userboot.so to exec