|
@@ -66,7 +66,7 @@ static void push(car * newcar)
|
|
|
// compass + origin is the array we use to determine what to add to the first number
|
|
|
// newcar->dest gives the direction, which we use to find the offset indicating it's additive value
|
|
|
int total = *(dirs + newcar->origin) + *(*(compass + newcar->origin) + newcar->dest);
|
|
|
-
|
|
|
+ kprintf("halfway through push\n");
|
|
|
// with our offset, set the pointer here to newcar
|
|
|
*(active + total) = newcar;
|
|
|
}
|
|
@@ -239,6 +239,7 @@ void intersection_before_entry(Direction origin, Direction destination)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ kprintf("made it out of the for loop\n");
|
|
|
push(new);
|
|
|
kprintf("added a car to the int\n");
|
|
|
lock_release(globlock);
|