Give kassert its own vector instead of DBZ

This commit is contained in:
Justin C. Miller
2018-05-15 21:38:44 -07:00
parent 5f7ec50055
commit 93e60cc136
4 changed files with 29 additions and 14 deletions

View File

@@ -98,7 +98,8 @@ kernel_main(popcorn_data *header)
uint8_t buf[512];
kutil::memset(buf, 0, 512);
disk->read(0x200, sizeof(buf), buf);
kassert(disk->read(0x200, sizeof(buf), buf),
"Disk read returned 0");
console *cons = console::get();
uint8_t *p = &buf[0];