summaryrefslogtreecommitdiff
path: root/main.ha
diff options
context:
space:
mode:
authorAlejandro Sior <aho@sior.be>2022-05-21 14:04:42 +0200
committerAlejandro Sior <aho@sior.be>2022-05-21 14:04:42 +0200
commit3aefeeb723b8822916fb39b7c32551c35c06e32f (patch)
tree380494fb2184101961e395d6d81accf91138efbe /main.ha
parent35c9df451d4f415632a4a1f64b06d1de12340687 (diff)
boot: reorganize bios and drive modules
Diffstat (limited to 'main.ha')
-rw-r--r--main.ha4
1 files changed, 1 insertions, 3 deletions
diff --git a/main.ha b/main.ha
index e26fb26..e640d04 100644
--- a/main.ha
+++ b/main.ha
@@ -2,7 +2,6 @@ use vga;
use term;
use rt;
use bios;
-use bios::drive;
use drive;
export fn main() void = {
@@ -15,9 +14,8 @@ export fn main() void = {
term::print(&text, "a");
};
- //bios::drive::read(0, 512, bios::ws: uintptr);
let dest = 0x100000: uintptr: *[*]u8;
- bios::drive::read(0, 512, dest)!;
+ drive::read(0, 512, dest)!;
if (dest[511] == 0xaa) {
term::print(&text, "\nnice!");
};