tarfeef101 hace 6 años
padre
commit
a2322c7a14
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      kern/synchprobs/traffic_synch.c

+ 3 - 0
kern/synchprobs/traffic_synch.c

@@ -78,6 +78,9 @@ static void clearint(car * done)
   // 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
   // set the array of active cars to null at this value
+  kprintf("first third: %d", *(dirs + done->origin));
+  kprintf("second third: %p", *(compass + done->origin));
+  kprintf("third third: %d", *(*(compass + done->origin) + done->dest));
   int total = *(dirs + done->origin) + *(*(compass + done->origin) + done->dest);
   *(active + total) = NULL;