panic: add panic function
also remove print messages from APIC driver
This commit is contained in:
parent
e27faa1a02
commit
1cf54c7fd3
4 changed files with 10 additions and 3 deletions
3
fs/vfs.c
3
fs/vfs.c
|
|
@ -273,7 +273,7 @@ void vfs_init(const char *rootdev_name)
|
|||
struct block_device *rootdev = block_get_device(rootdev_name);
|
||||
if (!rootdev) {
|
||||
kprintf(LOG_ERROR "Failed to find root device %s\n", rootdev_name);
|
||||
return;
|
||||
panic();
|
||||
}
|
||||
|
||||
kprintf(LOG_DEBUG "Found root device %s\n", rootdev_name);
|
||||
|
|
@ -286,6 +286,7 @@ void vfs_init(const char *rootdev_name)
|
|||
return;
|
||||
} else {
|
||||
kprintf(LOG_DEBUG "Mounted root device %s\n", rootdev_name);
|
||||
panic();
|
||||
}
|
||||
|
||||
fs->mount_point = kzalloc(2, ALLOC_KERN);
|
||||
|
|
|
|||
Loading…
Reference in a new issue