Initialize CURRENT structure * * Initialize CURRENT structure passed as argument. * * @param the CURRENT structure to be initialized. * */
| 52 | * |
| 53 | */ |
| 54 | void current_initialize(current_t *the) |
| 55 | { |
| 56 | the->preemption = 0; |
| 57 | the->cpu = NULL; |
| 58 | the->thread = NULL; |
| 59 | the->task = NULL; |
| 60 | the->as = NULL; |
| 61 | the->magic = MAGIC; |
| 62 | } |
| 63 | |
| 64 | /** Copy CURRENT structure |
| 65 | * |
no outgoing calls
no test coverage detected