Enhance command execution with improved concurrency and documentation updates. Refined the CommandTaskContext structure for better task management and clarified usage instructions for 'memtest' and 'tasktest' commands in README.md.
This commit is contained in:
3
task.h
3
task.h
@@ -74,6 +74,9 @@ Task *task_current(void); /* return the running task's PCB */
|
||||
UINTN task_count(void); /* number of non-FREE tasks */
|
||||
void task_print_list(BootInfo *Boot); /* print task table (for `ps`) */
|
||||
|
||||
/* Block the current task until the target task has finished. */
|
||||
void task_wait(Task *t);
|
||||
|
||||
/* Assembly context switch (defined in context_switch.S). */
|
||||
extern void context_switch(UINT64 *old_rsp, UINT64 new_rsp);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user