Ejemplo n.º 1
0
static int _do_or_die(int argc, char *argv[]) {
	int result = shell_do(argc, argv);
	if(result == SHELL_NOT_FOUND) {
		user_err("shell: Could not find function `%s`", argv[0]);
	}
	return result;
}
Ejemplo n.º 2
0
int main(void)
{
#if 0
    int i;
    printf("enter text: "); fflush(stdout);
    gets(buf);
    fflush(stdin);
    printf("   text entered: %s\n", buf);

    lexer_init(buf);

    for(i = 0, lexer_process();
        lexer_has_token() && i < 8;
        i++, lexer_process())
    {
        printf("\thas token\n");
        token[i] = lexer_get_token();
        token_display(&token[i]);
    }
#endif

    shell_do();

    return 0;
}
Ejemplo n.º 3
0
void kmain(void)
{
    //bsod();

    intr_disable();
    
    idt_init();
    pic_init();

    console_init();
    if (keyboard_init())
        goto error;

    kprintf("kernel86\n");

    intr_enable();

    shell_do();

error:
    kprintf("error");
    while (1)
        ;
    
}