1
0
Fork 0
forked from koniifer/ableos
This commit is contained in:
able 2023-11-20 03:13:18 -06:00
parent 762b2aa3ae
commit 562fb7c9b2
5 changed files with 15 additions and 18 deletions

View file

@ -83,7 +83,10 @@ pub fn handler(vm: &mut Vm) {
msg_vec.push(value); msg_vec.push(value);
} }
buff.push(msg_vec.clone()); 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); drop(buffs);
} }
} }

View file

@ -47,7 +47,9 @@ fn Trace(string) {log(4, string);}
fn open(string_path){ 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); ipc_send(2, file_path, file_path.len);
} }
fn write(){} fn write(){}
fn read(){}
fn close(){}

View file

@ -7,8 +7,6 @@ fn main(){
std::Debug("XYZ"); std::Debug("XYZ");
std::Trace("Trace Deez"); std::Trace("Trace Deez");
// std::open("/file.hbf");
tx(); tx();
} }

View file

@ -2,9 +2,8 @@
import "sysdata/test-programs/hblib/std" as std; import "sysdata/test-programs/hblib/std" as std;
fn main() { fn main() {
std::ipc_recv(2);
// jmp here un();
} }

View file

@ -2,15 +2,10 @@ import "sysdata/test-programs/hblib/std" as std;
fn main(){ fn main(){
std::Info("Trying to open a file."); std::Info("Trying to open a file.");
// let ret = std::open("/file.hbf"); std::open("/file.hbf");
// std::Info("File return " + ret); std::write();
std::read();
std::ipc_make_bound_buffer(1000); std::close();
let str = data::str("ABC XYZ");
std::ipc_send(2, str, str.len);
std::ipc_recv(2);
std::Info("VFS Test done!"); std::Info("VFS Test done!");
// un(); // un();