1
0
Fork 0
forked from AbleOS/ableos

:) limine

This commit is contained in:
able 2023-10-29 09:25:13 -05:00
parent 94569624f6
commit b7f9b071bf
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)