mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
services: benchmark-target: don't use private Lookup struct
Use a custom struct instead. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
3bd32389bf
commit
1e17d6402d
1 changed files with 1 additions and 3 deletions
|
|
@ -4,7 +4,6 @@ pub mod api;
|
|||
use api::*;
|
||||
|
||||
use xous::{CID, send_message};
|
||||
use xous_names::api::Lookup;
|
||||
use xous::ipc::Sendable;
|
||||
|
||||
pub fn test_scalar(cid: CID, testvar: u32) -> Result<u32, xous::Error> {
|
||||
|
|
@ -17,10 +16,9 @@ pub fn test_scalar(cid: CID, testvar: u32) -> Result<u32, xous::Error> {
|
|||
}
|
||||
|
||||
pub fn test_memory(cid: CID, testvar: u32) -> Result<u32, xous::Error> {
|
||||
//let reg = Lookup::new();
|
||||
let reg = TestStruct::new();
|
||||
let mut sendable_reg = Sendable::new(reg).expect("can't create test structure");
|
||||
sendable_reg.challenge[0] = testvar;
|
||||
sendable_reg.lend_mut(cid, 0).expect("test failure");
|
||||
Ok(sendable_reg.challenge[0])
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue