|
Modestus Moon OS
R4
CS 450 project
|
#include <system.h>

Go to the source code of this file.
Data Structures | |
| struct | param |
Macros | |
| #define | EXIT 0 |
| #define | IDLE 1 |
| #define | READ 2 |
| #define | WRITE 3 |
| #define | MODULE_R1 0 |
| #define | MODULE_R2 1 |
| #define | MODULE_R3 2 |
| #define | MODULE_R4 4 |
| #define | MODULE_R5 8 |
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 | |
| typedef | __attribute__ |
| #define EXIT 0 |
Definition at line 6 of file mpx_supt.h.
Referenced by idle(), proc1(), proc2(), proc3(), proc4(), proc5(), shutdownFunc(), and sys_call().
| #define IDLE 1 |
Definition at line 7 of file mpx_supt.h.
Referenced by idle(), init_commhand(), kmain(), proc1(), proc2(), proc3(), proc4(), proc5(), and sys_call().
| #define MODULE_R1 0 |
Definition at line 11 of file mpx_supt.h.
| #define MODULE_R2 1 |
Definition at line 12 of file mpx_supt.h.
| #define MODULE_R3 2 |
Definition at line 13 of file mpx_supt.h.
| #define MODULE_R4 4 |
Definition at line 14 of file mpx_supt.h.
| #define MODULE_R5 8 |
Definition at line 15 of file mpx_supt.h.
Referenced by sys_alloc_mem(), and sys_free_mem().
| #define READ 2 |
Definition at line 8 of file mpx_supt.h.
| #define WRITE 3 |
Definition at line 9 of file mpx_supt.h.
| 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 | ) |
| struct gdt_entry_struct __attribute__ |