diff options
author | Ben Burwell <ben@benburwell.com> | 2015-04-01 20:26:26 -0400 |
---|---|---|
committer | Ben Burwell <ben@benburwell.com> | 2015-04-01 20:26:26 -0400 |
commit | e282a861d5868868940b449681f2ee5da3e439e8 (patch) | |
tree | dc1fb0b3708d717e6c3695fffc77d5df7a0934a8 /mpx.h | |
parent | e781fb26fdd422ea72c3a0eeba817e4faa5f663b (diff) |
as of 2013-10-292013-10-29
Diffstat (limited to 'mpx.h')
-rw-r--r-- | mpx.h | 20 |
1 files changed, 18 insertions, 2 deletions
@@ -12,7 +12,8 @@ #define EXIT_CODE 0 /* Process requesting termination. code. */
#define CON 1 /* The console device - keyboard & monitor. */
#define PRT 2 /* The printer device - LPT1. */
-#define COM 3 /* The serial port - COM1. */
+#define COM 3 /* The serial port - COM1. +#define */
/* MPX System request types. */
@@ -80,6 +81,15 @@ void cmd_alias(char *[]); void cmd_show(char *[]);
void cmd_allocate(char *[]);
void cmd_free(char *[]);
+
+void cmd_load(char *[]);
+void cmd_resume(char *[]);
+void cmd_run(char *[]);
+void cmd_suspend(char *[]);
+void cmd_terminate(char *[]);
+void cmd_setpri(char *[]);
+void cmd_dispatch();
+
void sys_req(int,int,char *,int *); /* MPX system request function. */
int directory(dir *, int); /* Support function to load the */
/* directory array. */
@@ -113,6 +123,11 @@ void sys_exit(void); void interrupt dispatch(void);
void interrupt sys_call(void);
+/**
+ * Load.c
+ */
+int load(unsigned *,char []);
+
/*
* Global variable EXTERN directives.
*
@@ -129,4 +144,5 @@ extern pcb * pcb_list; extern pcb * ready_queue;
extern pcb * io_init_queue;
extern pcb * cop; /* The currently operating process. */
-extern unsigned sys_stack[];
\ No newline at end of file +extern unsigned sys_stack[];
+extern unsigned sp_save; /* So that mod 4 can return to cmd_dispatch */
\ No newline at end of file |