mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +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 api::*;
|
||||||
|
|
||||||
use xous::{CID, send_message};
|
use xous::{CID, send_message};
|
||||||
use xous_names::api::Lookup;
|
|
||||||
use xous::ipc::Sendable;
|
use xous::ipc::Sendable;
|
||||||
|
|
||||||
pub fn test_scalar(cid: CID, testvar: u32) -> Result<u32, xous::Error> {
|
pub fn test_scalar(cid: CID, testvar: u32) -> Result<u32, xous::Error> {
|
||||||
|
|
@ -17,7 +16,6 @@ pub fn test_scalar(cid: CID, testvar: u32) -> Result<u32, xous::Error> {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn test_memory(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 reg = TestStruct::new();
|
||||||
let mut sendable_reg = Sendable::new(reg).expect("can't create test structure");
|
let mut sendable_reg = Sendable::new(reg).expect("can't create test structure");
|
||||||
sendable_reg.challenge[0] = testvar;
|
sendable_reg.challenge[0] = testvar;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue