Skip to content

Commit 414f38c

Browse files
committed
Fix order of setting timeout
1 parent 5930c65 commit 414f38c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

kernel/inc/build_config.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
// version
4949
#define G_VERSION_MAJOR 0
5050
#define G_VERSION_MINOR 23
51-
#define G_VERSION_PATCH 0
51+
#define G_VERSION_PATCH 1
5252

5353
#define G_LOADER_VERSION_MAJOR 1
5454
#define G_LOADER_VERSION_MINOR 1

kernel/src/kernel/calls/syscall_system.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ void syscallAwaitIrq(g_task* task, g_syscall_await_irq* data)
134134
task->status = G_TASK_STATUS_WAITING;
135135
task->waitsFor = "irq";
136136
mutexRelease(&task->lock);
137-
taskingYield();
138137

139138
if(data->timeout)
140139
clockWaitForTime(task->id, clockGetLocal()->time + data->timeout);
141140

141+
taskingYield();
142142
INTERRUPTS_RESUME;
143143
}

0 commit comments

Comments
 (0)