修复引用计数问题导致内核挂掉问题

This commit is contained in:
zhangzheng
2025-03-17 14:48:28 +08:00
parent 3ecafaed24
commit 58adc1d0b7
22 changed files with 300 additions and 120 deletions

View File

@@ -56,7 +56,7 @@ void printk(const char *fmt, ...)
thread_t *cut_th = thread_get_current();
state = spinlock_lock(&lock);
xsprintf(print_cache, "[%8d]%s: ",
xsprintf(print_cache, "[%8d][%8s]: ",
pre_cpu_is_init() ? sys_tick_cnt_get() : 0,
kobject_get_name(&cut_th->kobj));
print_raw(print_cache);