You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
490 B

#include "../cpu/isr.h"
#include "../drivers/screen.h"
#include "kernel.h"
void main() {
isr_install();
irq_install();
kprint("Type something, it will go through the kernel\n"
"Type END to halt the CPU\n> ");
// Do we need an infinite loop here?
}
void user_input(char *input) {
if (strcmp(input, "END") == 0) {
kprint("Stopping the CPU. Bye!\n");
asm volatile("hlt");
}
kprint("You said: ");
kprint(input);
kprint("\n> ");
}