|
@@ -26,7 +26,6 @@ int * easta;
|
|
|
int * southa;
|
|
|
int * westa;
|
|
|
int test[5] = {0,0,0,0,0};
|
|
|
-kprintf("test success, %d", test[0]);
|
|
|
|
|
|
// car initializer/allocator
|
|
|
static car * newcar(Direction origin, Direction dest)
|
|
@@ -120,6 +119,7 @@ static bool rightturn(car * car)
|
|
|
// inits all arrays we need, lock.
|
|
|
void intersection_sync_init()
|
|
|
{
|
|
|
+ kprintf("test success, %d", test[0]);
|
|
|
globlock = lock_create("lightlock");
|
|
|
|
|
|
if (!(globlock))
|