Changes in kernel/generic/src/ipc/ipc.c [acf6b55:e3306d04] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/ipc.c
racf6b55 re3306d04 154 154 list_initialize(&box->answers); 155 155 list_initialize(&box->irq_notifs); 156 atomic_s et(&box->active_calls, 0);156 atomic_store(&box->active_calls, 0); 157 157 box->task = task; 158 158 } … … 204 204 phone->callee = NULL; 205 205 phone->state = IPC_PHONE_FREE; 206 atomic_s et(&phone->active_calls, 0);206 atomic_store(&phone->active_calls, 0); 207 207 phone->kobject = NULL; 208 208 } … … 783 783 static void ipc_wait_for_all_answered_calls(void) 784 784 { 785 while (atomic_ get(&TASK->answerbox.active_calls) != 0) {785 while (atomic_load(&TASK->answerbox.active_calls) != 0) { 786 786 call_t *call = NULL; 787 787 if (ipc_wait_for_call(&TASK->answerbox, … … 873 873 ipc_wait_for_all_answered_calls(); 874 874 875 assert(atomic_ get(&TASK->answerbox.active_calls) == 0);875 assert(atomic_load(&TASK->answerbox.active_calls) == 0); 876 876 } 877 877 … … 928 928 if (phone->state != IPC_PHONE_FREE) { 929 929 printf("%-11d %7" PRIun " ", (int) CAP_HANDLE_RAW(cap->handle), 930 atomic_ get(&phone->active_calls));930 atomic_load(&phone->active_calls)); 931 931 932 932 switch (phone->state) { … … 981 981 982 982 printf("Active calls: %" PRIun "\n", 983 atomic_ get(&task->answerbox.active_calls));983 atomic_load(&task->answerbox.active_calls)); 984 984 985 985 #ifdef __32_BITS__
Note:
See TracChangeset
for help on using the changeset viewer.