1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-30 00:00:15 +01:00

add additional debug messages

This commit is contained in:
Stefan Lankes 2017-05-21 23:39:04 +02:00
parent 07cd31996e
commit 77e9ef0ca6

View file

@ -674,6 +674,8 @@ int wakeup_task(tid_t id)
core_id = task->last_core; core_id = task->last_core;
if (task->status == TASK_BLOCKED) { if (task->status == TASK_BLOCKED) {
LOG_DEBUG("wakeup task %d\n", id);
task->status = TASK_READY; task->status = TASK_READY;
ret = 0; ret = 0;
@ -711,6 +713,8 @@ int block_task(tid_t id)
core_id = task->last_core; core_id = task->last_core;
if (task->status == TASK_RUNNING) { if (task->status == TASK_RUNNING) {
LOG_DEBUG("block task %d\n", id);
task->status = TASK_BLOCKED; task->status = TASK_BLOCKED;
spinlock_irqsave_lock(&readyqueues[core_id].lock); spinlock_irqsave_lock(&readyqueues[core_id].lock);