Create a new pair of Rendezvous handles
(context_ptr: *mut Context)
| 526 | |
| 527 | /// Create a new pair of Rendezvous handles |
| 528 | fn sys_new_rendezvous(context_ptr: *mut Context) { |
| 529 | let context = unsafe {&mut (*context_ptr)}; |
| 530 | |
| 531 | match process::new_rendezvous() { |
| 532 | Ok((handle1, handle2)) => { |
| 533 | context.rax = 0; // Success! |
| 534 | context.rdi = handle1; |
| 535 | context.rsi = handle2; |
| 536 | } |
| 537 | Err(code) => { |
| 538 | context.rax = code; |
| 539 | } |
| 540 | } |
| 541 | } |
| 542 | |
| 543 | /// Make a copy of a Rendezvous |
| 544 | /// |
no test coverage detected