comparison cos/kernel/kernel.c @ 28:47b7df514243

Moved Makefiles
author windel
date Wed, 28 Dec 2011 13:38:43 +0100
parents 7f74363f4c82
children 7e3bdcb391dc
comparison
equal deleted inserted replaced
27:7f74363f4c82 28:47b7df514243
21 { 21 {
22 init_screen(); 22 init_screen();
23 setupIDT(); 23 setupIDT();
24 init_heap(); 24 init_heap();
25 25
26 //new_task(hello_program);
27
28 // TODO: make below a user space program!
26 printf("Welcome!\n"); 29 printf("Welcome!\n");
27 30
28 while (1==1) 31 while (1==1)
29 { 32 {
30 char buffer[70]; 33 char buffer[70];
42 } 45 }
43 if ( strncmp(buffer, "help", 4)) 46 if ( strncmp(buffer, "help", 4))
44 { 47 {
45 printf("Help\n Try one of these commands:\n"); 48 printf("Help\n Try one of these commands:\n");
46 printf(" x: print system time in ms\n"); 49 printf(" x: print system time in ms\n");
50 printf(" r: reboot\n");
51 printf(" t: test\n");
47 } 52 }
48 if (strncmp(buffer, "r", 1)) 53 if (strncmp(buffer, "r", 1))
49 { 54 {
50 reboot(); 55 reboot();
51 } 56 }