Modestus Moon OS
R4
CS 450 project
|
Go to the source code of this file.
Functions | |
int | sys_req (int op_code) |
void | mpx_init (int cur_mod) |
void | sys_set_malloc (void *(*func)(size_t)) |
void | sys_set_free (int(*func)(void *)) |
void * | sys_alloc_mem (u32int size) |
int | sys_free_mem (void *ptr) |
void | idle () |
uint32_t * | sys_call (processContext_t *context) |
sys_call More... | |
Variables | |
param | params |
int | current_module = MODULE_R5 |
void *(* | student_malloc )(size_t) |
int(* | student_free )(void *) |
processContext_t * | callerContext |
void idle | ( | ) |
Definition at line 49 of file mpx_supt.c.
References EXIT, IDLE, readyQueue, serial_println(), and sys_req().
Referenced by kmain().
void mpx_init | ( | int | cur_mod | ) |
Definition at line 18 of file mpx_supt.c.
References current_module.
void* sys_alloc_mem | ( | u32int | size | ) |
Definition at line 33 of file mpx_supt.c.
References current_module, kmalloc(), and MODULE_R5.
Referenced by allocatePCB(), and makeNewNode().
uint32_t* sys_call | ( | processContext_t * | context | ) |
sys_call
context |
Definition at line 62 of file mpx_supt.c.
References callerContext, currentOperatingProcess, EXIT, freePCB(), IDLE, insertPCB(), kpanic(), param::op_code, READY, readyQueue, removePCB(), RUNNING, and SUCCESS.
int sys_free_mem | ( | void * | ptr | ) |
int sys_req | ( | int | op_code | ) |
Definition at line 11 of file mpx_supt.c.
References param::op_code.
Referenced by idle(), init_commhand(), kmain(), proc1(), proc2(), proc3(), proc4(), proc5(), and shutdownFunc().
void sys_set_free | ( | int(*)(void *) | func | ) |
void sys_set_malloc | ( | void *(*)(size_t) | func | ) |
processContext_t* callerContext |
Definition at line 60 of file mpx_supt.c.
Referenced by sys_call().
int current_module = MODULE_R5 |
Definition at line 7 of file mpx_supt.c.
Referenced by mpx_init(), sys_alloc_mem(), and sys_free_mem().
param params |
Definition at line 6 of file mpx_supt.c.
int(* student_free) (void *) |
Definition at line 9 of file mpx_supt.c.
Referenced by sys_free_mem(), and sys_set_free().
void*(* student_malloc) (size_t) |
Definition at line 8 of file mpx_supt.c.
Referenced by sys_set_malloc().