Separate read function into blocking and async portions

This commit is contained in:
Justin C. Miller
2018-05-12 20:16:25 -07:00
parent 289104cde0
commit 0684fcf7e9
4 changed files with 73 additions and 18 deletions

View File

@@ -103,8 +103,7 @@ kernel_main(popcorn_data *header)
uint8_t buf[512];
kutil::memset(buf, 0, 512);
disk->read(1, sizeof(buf), buf);
while (buf[0] == 0) io_wait();
disk->read(0x200, sizeof(buf), buf);
console *cons = console::get();
uint8_t *p = &buf[0];