From 562fb7c9b25a1dd806797a0aa541b9018aa01476 Mon Sep 17 00:00:00 2001 From: able Date: Mon, 20 Nov 2023 03:13:18 -0600 Subject: [PATCH] meow --- kernel/src/holeybytes/ecah.rs | 5 ++++- sysdata/test-programs/hblib/std.rhai | 6 ++++-- sysdata/test-programs/main.rhai | 4 +--- sysdata/test-programs/vfs.rhai | 5 ++--- sysdata/test-programs/vfs_test.rhai | 13 ++++--------- 5 files changed, 15 insertions(+), 18 deletions(-) diff --git a/kernel/src/holeybytes/ecah.rs b/kernel/src/holeybytes/ecah.rs index cca6663..a5f1e94 100644 --- a/kernel/src/holeybytes/ecah.rs +++ b/kernel/src/holeybytes/ecah.rs @@ -83,7 +83,10 @@ pub fn handler(vm: &mut Vm) { msg_vec.push(value); } buff.push(msg_vec.clone()); - info!("Message {:?} has been sent to {}", msg_vec, buffer_id); + info!( + "Message {:?} has been sent to Buffer({})", + msg_vec, buffer_id + ); drop(buffs); } } diff --git a/sysdata/test-programs/hblib/std.rhai b/sysdata/test-programs/hblib/std.rhai index 9cf0411..4c16d52 100644 --- a/sysdata/test-programs/hblib/std.rhai +++ b/sysdata/test-programs/hblib/std.rhai @@ -47,7 +47,9 @@ fn Trace(string) {log(4, string);} fn open(string_path){ - let file_path = data::str("Meow meow meow bark bark bark"); + let file_path = data::str(string_path); ipc_send(2, file_path, file_path.len); } -fn write(){} \ No newline at end of file +fn write(){} +fn read(){} +fn close(){} \ No newline at end of file diff --git a/sysdata/test-programs/main.rhai b/sysdata/test-programs/main.rhai index 4b7c5cf..d66433e 100644 --- a/sysdata/test-programs/main.rhai +++ b/sysdata/test-programs/main.rhai @@ -6,9 +6,7 @@ fn main(){ std::Info("Hello, world!"); std::Debug("XYZ"); std::Trace("Trace Deez"); - - // std::open("/file.hbf"); - + tx(); } diff --git a/sysdata/test-programs/vfs.rhai b/sysdata/test-programs/vfs.rhai index 0d91943..bd28fd4 100644 --- a/sysdata/test-programs/vfs.rhai +++ b/sysdata/test-programs/vfs.rhai @@ -2,9 +2,8 @@ import "sysdata/test-programs/hblib/std" as std; fn main() { - - // jmp here - + std::ipc_recv(2); + un(); } diff --git a/sysdata/test-programs/vfs_test.rhai b/sysdata/test-programs/vfs_test.rhai index 1ff3285..b812470 100644 --- a/sysdata/test-programs/vfs_test.rhai +++ b/sysdata/test-programs/vfs_test.rhai @@ -2,15 +2,10 @@ import "sysdata/test-programs/hblib/std" as std; fn main(){ std::Info("Trying to open a file."); - // let ret = std::open("/file.hbf"); - // std::Info("File return " + ret); - - std::ipc_make_bound_buffer(1000); - - let str = data::str("ABC XYZ"); - std::ipc_send(2, str, str.len); - - std::ipc_recv(2); + std::open("/file.hbf"); + std::write(); + std::read(); + std::close(); std::Info("VFS Test done!"); // un();