Global variables are overwritten... let's fix that

This commit is contained in:
thomas committed 2018-03-29 19:36:32 +02:00
1 parent 2de7e537ea
commit d483d8f39e
1 file changed
+2 -1
+2 -1
View File
@@ -8,9 +8,10 @@
#include <thread.h> #include <thread.h>
#include <scheduler.h> #include <scheduler.h>
int thread_id;
void thread_function() void thread_function()
{ {
int thread_id = thread()->tid; thread_id = thread()->tid;
while(1) while(1)
{ {