From e468dc911189e71509012fb0ed228cc765f641fa Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Wed, 1 Apr 2015 20:09:02 -0400 Subject: as of 2013-10-07 --- main.c | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 9bd8b55..c6d567f 100644 --- a/main.c +++ b/main.c @@ -12,24 +12,23 @@ pcb * pcb_list; pcb * ready_queue; pcb * io_init_queue; -int main(void) { +pcb pcb0; +pcb pcb1; +pcb pcb2; +pcb pcb3; +pcb pcb4; +pcb pcb5; +pcb pcb6; +pcb pcb7; +pcb pcb8; +pcb pcb9; +pcb pcb10; +pcb pcb11; +int main(void) { + printf("Booting MPX... \n"); /* Put initialization code here */ - // allocate memory for PCBs - pcb pcb0; - pcb pcb1; - pcb pcb2; - pcb pcb3; - pcb pcb4; - pcb pcb5; - pcb pcb6; - pcb pcb7; - pcb pcb8; - pcb pcb9; - pcb pcb10; - pcb pcb11; - // create the chain pcb0.chain = &pcb1; pcb1.chain = &pcb2; @@ -59,8 +58,6 @@ int main(void) { pcb_list = &pcb0; - printf("... booting MPX\n\n"); - comhan(); /* Execute the command handler */ return 0; -- cgit v1.2.3