Block the provided state until thread is complete. */
| 160 | |
| 161 | /* Block the provided state until thread is complete. */ |
| 162 | static asmlinkage void call_wrapper_block_state(void *arg) |
| 163 | { |
| 164 | struct block_boot_state *bbs = arg; |
| 165 | struct thread *current = current_thread(); |
| 166 | enum cb_err error; |
| 167 | |
| 168 | boot_state_block(bbs->state, bbs->seq); |
| 169 | error = current->entry(current->entry_arg); |
| 170 | boot_state_unblock(bbs->state, bbs->seq); |
| 171 | terminate_thread(current, error); |
| 172 | } |
| 173 | |
| 174 | /* Prepare a thread so that it starts by executing thread_entry(thread_arg). |
| 175 | * Within thread_entry() it will call func(arg). */ |
nothing calls this directly
no test coverage detected