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

This commit is contained in:
Thomas Lovén 2018-02-20 13:32:54 +01:00
parent 2de7e537ea
commit d483d8f39e

View File

@ -8,9 +8,10 @@
#include <thread.h>
#include <scheduler.h>
int thread_id;
void thread_function()
{
int thread_id = thread()->tid;
thread_id = thread()->tid;
while(1)
{