Permalink
Browse files

We have -lgcc, which means % works!

  • Loading branch information...
singpolyma committed Apr 21, 2013
1 parent 98c5daa commit d94202f80b085a71c3bbefc0efe04eb10b087ab3
Showing with 3 additions and 6 deletions.
  1. +3 −6 kernel.c
View
@@ -190,14 +190,12 @@ struct pipe_ringbuffer {
#define RB_PUSH(rb, size, v) do { \
(rb).data[(rb).end] = (v); \
(rb).end++; \
if((rb).end > size) (rb).end = 0; \
(rb).end = ((rb).end + 1) % (size); \
} while(0)
#define RB_POP(rb, size, v) do { \
(v) = (rb).data[(rb).start]; \
(rb).start++; \
if((rb).start > size) (rb).start = 0; \
(rb).start = ((rb).start + 1) % (size); \
} while(0)
#define RB_LEN(rb, size) (((rb).end - (rb).start) + \
@@ -365,8 +363,7 @@ int main(void) {
}
/* Select next TASK_READY task */
while(TASK_READY != tasks[current_task =
(current_task+1 >= task_count ? 0 : current_task+1)][-1]);
while(TASK_READY != tasks[current_task = (current_task + 1) % task_count][-1]);
}
return 0;

0 comments on commit d94202f

Please sign in to comment.