diff options
| author | Aleksa Vuckovic <aleksav013@gmail.com> | 2022-11-26 00:22:10 +0100 |
|---|---|---|
| committer | Aleksa Vuckovic <aleksav013@gmail.com> | 2022-11-27 01:04:18 +0100 |
| commit | d43a3388a976a74ae109c5b8b5a31f82a16b45db (patch) | |
| tree | 51880414ee600ddfb3c7e3486c3d74beced36bfe /kernel/src/ubsan | |
| parent | 5d56d1a5b4d52702eb4e4ea6f05e4b6eebf41ca8 (diff) | |
fixing issues
1) main.c: order of init (multiboot.c must be after heap & paging
because it uses heap to allocate pages for framebuffer)
2) paging.c: zeroing new pages allocated via heap
3) multiboot2.c: invalid pointer arithmetic
4) libk/string.c: check for null pointers in memcpy
5) paging: only page_lvl2 should have FLAG_HUGE
6) keyboard.c: kfree(print_buff)
Diffstat (limited to 'kernel/src/ubsan')
| -rw-r--r-- | kernel/src/ubsan/ubsan.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/src/ubsan/ubsan.c b/kernel/src/ubsan/ubsan.c index 84283f7..9cd744d 100644 --- a/kernel/src/ubsan/ubsan.c +++ b/kernel/src/ubsan/ubsan.c @@ -52,11 +52,12 @@ static void ubsan_abort(const struct ubsan_source_location* location, if ( !location || !location->filename ) location = &unknown_location; - serial_printf( + printf( "filename = %s; line = %d; column = %d; violation = %s;\n", location->filename, location->line, location->column, violation); - while (true) { + for(;;) { + __asm__ volatile ("hlt;"); } } |
