Changes in kernel/test/synch/rcu1.c [7850dda:8848276] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/synch/rcu1.c
r7850dda r8848276 27 27 */ 28 28 29 #include <assert.h>30 29 #include <test.h> 31 30 #include <arch.h> … … 82 81 static void run_thread(size_t k, void (*func)(void*), void *arg) 83 82 { 84 assert(thread[k] == NULL);83 ASSERT(thread[k] == NULL); 85 84 86 85 thread[k] = thread_create(func, arg, TASK, THREAD_FLAG_NONE, … … 131 130 static void run_one(void (*func)(void*), void *arg) 132 131 { 133 assert(one_idx < MAX_THREADS);132 ASSERT(one_idx < MAX_THREADS); 134 133 run_thread(one_idx, func, arg); 135 134 ++one_idx; … … 139 138 static void join_one(void) 140 139 { 141 assert(0 < one_idx && one_idx <= MAX_THREADS);140 ASSERT(0 < one_idx && one_idx <= MAX_THREADS); 142 141 143 142 --one_idx; … … 169 168 static void get_seq(size_t from, size_t to, size_t steps, size_t *seq) 170 169 { 171 assert(0 < steps && from <= to && 0 < to);170 ASSERT(0 < steps && from <= to && 0 < to); 172 171 size_t inc = (to - from) / (steps - 1); 173 172 … … 305 304 static void one_cb_done(rcu_item_t *item) 306 305 { 307 assert( ((item_w_cookie_t *)item)->cookie == magic_cookie);306 ASSERT( ((item_w_cookie_t *)item)->cookie == magic_cookie); 308 307 one_cb_is_done = 1; 309 308 TPRINTF("Callback()\n"); … … 389 388 static void seq_func(void *arg) 390 389 { 391 /*392 * Temporarily workaround GCC 7.1.0 internal393 * compiler error when compiling for riscv64.394 */395 #ifndef KARCH_riscv64396 390 seq_work_t *work = (seq_work_t*)arg; 397 391 … … 440 434 } 441 435 442 } 443 #else 444 (void) seq_cb; 445 #endif 436 } 446 437 } 447 438 … … 569 560 { 570 561 preempt_t *p = (preempt_t*)arg; 571 assert(!p->e.exited);562 ASSERT(!p->e.exited); 572 563 573 564 TPRINTF("reader_prev{ "); … … 589 580 { 590 581 preempt_t *p = (preempt_t*)arg; 591 assert(!p->e.exited);582 ASSERT(!p->e.exited); 592 583 593 584 TPRINTF("reader_inside_cur{ "); … … 614 605 { 615 606 preempt_t *p = (preempt_t*)arg; 616 assert(!p->e.exited);607 ASSERT(!p->e.exited); 617 608 618 609 TPRINTF("reader_cur{ "); … … 636 627 { 637 628 preempt_t *p = (preempt_t*)arg; 638 assert(!p->e.exited);629 ASSERT(!p->e.exited); 639 630 640 631 TPRINTF("reader_next1{ "); … … 658 649 { 659 650 preempt_t *p = (preempt_t*)arg; 660 assert(!p->e.exited);651 ASSERT(!p->e.exited); 661 652 662 653 TPRINTF("reader_next2{ ");
Note:
See TracChangeset
for help on using the changeset viewer.