forked from xamidev/pepperOS
Function comments (v1)
This commit is contained in:
@@ -11,6 +11,15 @@
|
||||
|
||||
extern struct init_status init;
|
||||
|
||||
/*
|
||||
* panic - Kernel panic
|
||||
* @ctx: CPU context (optional)
|
||||
* @str: Error message
|
||||
*
|
||||
* Ends execution of the kernel in case of an unrecoverable error.
|
||||
* Will display to terminal if it is initialized, otherwise serial only.
|
||||
* Can be called with or without a CPU context.
|
||||
*/
|
||||
void panic(struct cpu_status_t* ctx, const char* str)
|
||||
{
|
||||
CLEAR_INTERRUPTS;
|
||||
|
||||
Reference in New Issue
Block a user