mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
kernel: test: use as_ptr() for memory messages
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
1291a2b3aa
commit
657604a199
1 changed files with 3 additions and 2 deletions
|
|
@ -423,8 +423,8 @@ fn send_mutableborrow_message() {
|
|||
// println!("Received message from {}", envelope.sender);
|
||||
let message = envelope.body;
|
||||
if let xous_kernel::Message::MutableBorrow(m) = message {
|
||||
let buf = m.buf;
|
||||
let bt = unsafe { core::slice::from_raw_parts_mut(buf.as_mut_ptr(), buf.len()) };
|
||||
let bt = unsafe { core::slice::from_raw_parts_mut(m.buf.as_mut_ptr(), m.buf.len()) };
|
||||
// eprintln!("SERVER: UPDATING VALUES");
|
||||
for letter in bt.iter_mut() {
|
||||
*letter += 1;
|
||||
}
|
||||
|
|
@ -453,6 +453,7 @@ fn send_mutableborrow_message() {
|
|||
}
|
||||
|
||||
// Send the message to the server
|
||||
// eprintln!("CLIENT: SENDING MESSAGE: {:?}", test_bytes.to_vec());
|
||||
carton
|
||||
.lend_mut(conn, 3)
|
||||
.expect("couldn't mutably lend data");
|
||||
|
|
|
|||
Loading…
Reference in a new issue