Changeset eafec07


Ignore:
Timestamp:
Aug 4, 2020, 5:27:00 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
85eafc5
Parents:
53ee27e
Message:

More pointer fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/io.cfa

    r53ee27e reafec07  
    244244                                uint32_t idx = (i + off) & mask;
    245245                                struct io_uring_sqe * sqe = &ring.submit_q.sqes[idx];
    246                                 volatile uint64_t * udata = &sqe->user_data;
     246                                volatile uint64_t * udata = (volatile uint64_t *)&sqe->user_data;
    247247
    248248                                if( *udata == expected &&
     
    319319                __io_data & ring = *ctx->thrd.ring;
    320320                // Get now the data we definetely need
    321                 uint32_t * const tail = ring.submit_q.tail;
     321                volatile uint32_t * const tail = ring.submit_q.tail;
    322322                const uint32_t mask  = *ring.submit_q.mask;
    323323
     
    366366                        }
    367367
    368                         /* paranoid */ verify( ret > 0 || (ring.ring_flags & IORING_SETUP_SQPOLL) );
     368                        /* paranoid */ verify( ret > 0 || to_submit == 0 || (ring.ring_flags & IORING_SETUP_SQPOLL) );
    369369
    370370                        // Release the consumed SQEs
Note: See TracChangeset for help on using the changeset viewer.