Example yunq implementation for one Yellowstone endpoint.
This commit is contained in:
parent
51d40f6db6
commit
3eea4d811a
11 changed files with 301 additions and 3 deletions
|
|
@ -15,7 +15,7 @@ const Z_INIT_ENDPOINT: u64 = 0x4100_0000;
|
|||
|
||||
static mut SELF_PROC_CAP: syscall::zcap = 0;
|
||||
static mut SELF_VMAS_CAP: syscall::zcap = 0;
|
||||
static mut INIT_ENDPOINT: syscall::zcap = 0;
|
||||
pub static mut INIT_ENDPOINT: syscall::zcap = 0;
|
||||
|
||||
pub fn parse_init_port(port_cap: syscall::zcap) {
|
||||
loop {
|
||||
|
|
|
|||
|
|
@ -59,7 +59,18 @@ impl From<u64> for ZError {
|
|||
|
||||
impl fmt::Debug for ZError {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
f.write_str("ZError")
|
||||
let str = match self {
|
||||
ZError::INVALID_ARGUMENT => "INVALID_ARGUMENT",
|
||||
ZError::BUFFER_SIZE => "BUFFER_SIZE",
|
||||
ZError::INTERNAL => "INTERNAL",
|
||||
ZError::UNIMPLEMENTED => "UNIMPLEMENTED",
|
||||
ZError::INVALID_RESPONSE => "INVALID_RESPONSE",
|
||||
ZError::CAP_NOT_FOUND => "CAP_NOT_FOUND",
|
||||
ZError::CAP_WRONG_TYPE => "CAP_WRONG_TYPE",
|
||||
ZError::CAP_PERMISSION_DENIED => "CAP_PERMISSION_DENIED",
|
||||
_ => "ZError",
|
||||
};
|
||||
f.write_str(str)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue