Added an idle function for long running functions to call.
This commit is contained in:
@@ -114,4 +114,9 @@ void main()
|
||||
/* ...and leave this loop in. There is an endless loop in
|
||||
* 'start.asm' also, if you accidentally delete this next line */
|
||||
for (;;);
|
||||
}
|
||||
|
||||
void idle()
|
||||
{
|
||||
__asm__ __volatile__ ("hlt");
|
||||
}
|
||||
+1
-1
@@ -9,7 +9,7 @@ void run_shell()
|
||||
puts("Starting interactive shell...\n");
|
||||
commandbuffer[0] = '\0';
|
||||
puts("#>");
|
||||
for(;;);
|
||||
for(;;) idle();
|
||||
}
|
||||
|
||||
void key_pressed(unsigned char* character)
|
||||
|
||||
Reference in New Issue
Block a user