Skip to content

Conversation

@PanQL
Copy link
Collaborator

@PanQL PanQL commented Mar 2, 2020

support almost all the userboot.so to exec

@PanQL PanQL requested review from wangrunji0408 and removed request for wangrunji0408 March 2, 2020 05:05
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 {
Copy link
Member

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,
Copy link
Member

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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果类型不匹配应该返回错误吧

@wangrunji0408 wangrunji0408 merged commit b306b1d into rcore-os:master Mar 2, 2020
@wangrunji0408 wangrunji0408 added the enhancement New feature or request label Jun 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants