forked from koniifer/ableos
:) limine
This commit is contained in:
parent
94569624f6
commit
b7f9b071bf
17
repbuild/holeybytes/limine_framebuffer_driver.rhai
Normal file
17
repbuild/holeybytes/limine_framebuffer_driver.rhai
Normal 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();
|
|
@ -28,4 +28,7 @@ TERM_BACKDROP=008080
|
||||||
MODULE_CMDLINE=""
|
MODULE_CMDLINE=""
|
||||||
|
|
||||||
MODULE_PATH=boot:///vfs_test.hbf
|
MODULE_PATH=boot:///vfs_test.hbf
|
||||||
|
MODULE_CMDLINE=""
|
||||||
|
|
||||||
|
MODULE_PATH=boot:///limine_framebuffer_driver.hbf
|
||||||
MODULE_CMDLINE=""
|
MODULE_CMDLINE=""
|
|
@ -166,6 +166,10 @@ fn get_fs() -> Result<FileSystem<impl ReadWriteSeek>, io::Error> {
|
||||||
&mut File::open("target/holeybytes/vfs_test.hbf")?,
|
&mut File::open("target/holeybytes/vfs_test.hbf")?,
|
||||||
&mut fs.root_dir().create_file("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);
|
drop(bootdir);
|
||||||
Ok(fs)
|
Ok(fs)
|
||||||
|
|
Loading…
Reference in a new issue