Changeset 7812a7b5 for libcfa/src/concurrency/io.cfa
- Timestamp:
- Jun 30, 2020, 1:21:39 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 398e8e9, 9f7fff4
- Parents:
- bdce852
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/io.cfa
rbdce852 r7812a7b5 505 505 /* paranoid */ verify(&cqe); 506 506 507 struct io_user_data * data = (struct io_user_data *) cqe.user_data;507 struct io_user_data * data = (struct io_user_data *)(uintptr_t)cqe.user_data; 508 508 __cfadbg_print_safe( io, "Kernel I/O : Performed reading io cqe %p, result %d for %p\n", data, cqe.res, data->thrd ); 509 509 … … 831 831 (this){ opcode, fd }; 832 832 this.off = off; 833 this.addr = (uint64_t) addr;833 this.addr = (uint64_t)(uintptr_t)addr; 834 834 this.len = len; 835 835 } … … 845 845 struct io_uring_sqe * sqe; \ 846 846 uint32_t idx; \ 847 [sqe, idx] = __submit_alloc( ring, (uint64_t) &data );847 [sqe, idx] = __submit_alloc( ring, (uint64_t)(uintptr_t)&data ); 848 848 849 849 #define __submit_wait \ 850 850 /*__cfaabi_bits_print_safe( STDERR_FILENO, "Preparing user data %p for %p\n", &data, data.thrd );*/ \ 851 verify( sqe->user_data == (uint64_t) &data ); \851 verify( sqe->user_data == (uint64_t)(uintptr_t)&data ); \ 852 852 __submit( ring, idx ); \ 853 853 park( __cfaabi_dbg_ctx ); \
Note: See TracChangeset
for help on using the changeset viewer.