forked from able/aos_userland
input update
This commit is contained in:
parent
f02eb25ca3
commit
db7bd504e5
BIN
aos_wasm_stress_test/aos_wasm_stress_test.wasm
Executable file
BIN
aos_wasm_stress_test/aos_wasm_stress_test.wasm
Executable file
Binary file not shown.
|
@ -1,3 +1,3 @@
|
|||
cargo build --release
|
||||
wasm-strip target/wasm32-unknown-unknown/release/aos_wasm_stress_test.wasm
|
||||
cargo build --release --target wasm32-unknown-unknown
|
||||
mv target/wasm32-unknown-unknown/release/aos_wasm_stress_test.wasm aos_wasm_stress_test.wasm
|
||||
wasm-strip aos_wasm_stress_test.wasm
|
|
@ -6,12 +6,14 @@ use libwasm::{driver::DriverExitCode, get_input};
|
|||
#[no_mangle]
|
||||
fn start() -> i32 {
|
||||
let rand;
|
||||
let ret;
|
||||
let mut ret;
|
||||
unsafe {
|
||||
send_signal(PID(1), Signals::Quit);
|
||||
rand = get_random();
|
||||
loop {
|
||||
ret = get_input();
|
||||
}
|
||||
}
|
||||
|
||||
// rand as i32
|
||||
|
||||
|
|
Loading…
Reference in a new issue