From b7f9b071bf24a76b8ed227d303123f65210e4ff8 Mon Sep 17 00:00:00 2001 From: able Date: Sun, 29 Oct 2023 09:25:13 -0500 Subject: [PATCH] :) limine --- .../holeybytes/limine_framebuffer_driver.rhai | 17 +++++++++++++++++ repbuild/limine.cfg | 3 +++ repbuild/src/main.rs | 4 ++++ 3 files changed, 24 insertions(+) create mode 100644 repbuild/holeybytes/limine_framebuffer_driver.rhai diff --git a/repbuild/holeybytes/limine_framebuffer_driver.rhai b/repbuild/holeybytes/limine_framebuffer_driver.rhai new file mode 100644 index 0000000..e172e4c --- /dev/null +++ b/repbuild/holeybytes/limine_framebuffer_driver.rhai @@ -0,0 +1,17 @@ +// Change and add to this as you see fit. +// The STD and even syscalls are still in flux. +// Do your best to avoid adding bad design. +// Use std abstractions if they exist like logging functionality +import "repbuild/hblib/std" as std; + +// Define main +fn main(){ + // store from a register to a local address + // https://git.ablecorp.us/AbleOS/holey-bytes/src/branch/trunk/spec.md#memory-access-operations + // st(r1, r2, 0x100, 0x100); +} + +main(); + +// Terminate execution. +tx(); \ No newline at end of file diff --git a/repbuild/limine.cfg b/repbuild/limine.cfg index 4f29d90..e1acf4e 100644 --- a/repbuild/limine.cfg +++ b/repbuild/limine.cfg @@ -28,4 +28,7 @@ TERM_BACKDROP=008080 MODULE_CMDLINE="" MODULE_PATH=boot:///vfs_test.hbf + MODULE_CMDLINE="" + + MODULE_PATH=boot:///limine_framebuffer_driver.hbf MODULE_CMDLINE="" \ No newline at end of file diff --git a/repbuild/src/main.rs b/repbuild/src/main.rs index 2390e5a..b0b61d6 100644 --- a/repbuild/src/main.rs +++ b/repbuild/src/main.rs @@ -166,6 +166,10 @@ fn get_fs() -> Result, io::Error> { &mut File::open("target/holeybytes/vfs_test.hbf")?, &mut fs.root_dir().create_file("vfs_test.hbf")?, )?; + io::copy( + &mut File::open("target/holeybytes/limine_framebuffer_driver.hbf")?, + &mut fs.root_dir().create_file("limine_framebuffer_driver.hbf")?, + )?; drop(bootdir); Ok(fs)