:) limine

pull/11/head
able 2023-10-29 09:25:13 -05:00
parent ab0a43ccdd
commit 1c16ba7a8e
3 changed files with 24 additions and 0 deletions

View File

@ -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();

View File

@ -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=""

View File

@ -166,6 +166,10 @@ fn get_fs() -> Result<FileSystem<impl ReadWriteSeek>, 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)