Add stack frame to panic
This commit is contained in:
parent
b337e5193b
commit
cfcb806ebf
16 changed files with 169 additions and 103 deletions
|
|
@ -51,7 +51,7 @@ atomic_flag printf_lock = ATOMIC_FLAG_INIT;
|
|||
|
||||
int kprintf(const char *format_string, ...){
|
||||
extern struct flanterm_context *ft_ctx;
|
||||
//acquire_spinlock(&printf_lock);
|
||||
acquire_spinlock(&printf_lock);
|
||||
int state = NORMAL;
|
||||
va_list a_list;
|
||||
va_start(a_list, format_string);
|
||||
|
|
@ -114,7 +114,7 @@ int kprintf(const char *format_string, ...){
|
|||
}
|
||||
|
||||
va_end(a_list);
|
||||
//free_spinlock(&printf_lock);
|
||||
free_spinlock(&printf_lock);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue