mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
kernel: hosted: print status adding memory to return val
When returning memory to a thread, attach memory if present. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
74b3fde198
commit
04a3493550
1 changed files with 3 additions and 0 deletions
|
|
@ -290,6 +290,7 @@ impl Process {
|
|||
|
||||
if let Some(mem) = result.memory() {
|
||||
let s = unsafe { core::slice::from_raw_parts(mem.as_ptr(), mem.len()) };
|
||||
print!(" [adding {} additional bytes from result]", s.len());
|
||||
response.extend_from_slice(&s);
|
||||
}
|
||||
|
||||
|
|
@ -304,6 +305,7 @@ impl Process {
|
|||
// "memory was waiting to be returned, but message was not a result message"
|
||||
// );
|
||||
// }
|
||||
print!(" [adding {} additional bytes from memory being returned]", buf.len());
|
||||
response.extend_from_slice(&buf);
|
||||
}
|
||||
|
||||
|
|
@ -312,6 +314,7 @@ impl Process {
|
|||
// current_pid_idx + 1,
|
||||
// response
|
||||
// );
|
||||
print!(" [setting thread return value to {} bytes]", response.len());
|
||||
process
|
||||
.conn
|
||||
.as_mut()
|
||||
|
|
|
|||
Loading…
Reference in a new issue