Rev 4341 | Rev 4389 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4341 | Rev 4343 | ||
---|---|---|---|
Line 517... | Line 517... | ||
517 | { |
517 | { |
518 | loader_t *ldr; |
518 | loader_t *ldr; |
519 | int rc; |
519 | int rc; |
520 | 520 | ||
521 | /* Spawn a program loader */ |
521 | /* Spawn a program loader */ |
522 | ldr = loader_spawn(path); |
522 | ldr = loader_connect(); |
523 | if (ldr == NULL) |
523 | if (ldr == NULL) |
524 | return 0; |
524 | return 0; |
525 | 525 | ||
526 | /* Get task ID. */ |
526 | /* Get task ID. */ |
527 | rc = loader_get_task_id(ldr, task_id); |
527 | rc = loader_get_task_id(ldr, task_id); |
Line 621... | Line 621... | ||
621 | val_type_t resp_def[OPER_MAX_ARGS] = { |
621 | val_type_t resp_def[OPER_MAX_ARGS] = { |
622 | V_INTEGER, |
622 | V_INTEGER, |
623 | V_INTEGER, |
623 | V_INTEGER, |
624 | V_INTEGER, |
624 | V_INTEGER, |
625 | V_INTEGER, |
625 | V_INTEGER, |
626 | V_INTEGER |
626 | V_INTEGER |
627 | }; |
627 | }; |
628 | 628 | ||
629 | next_thread_id = 1; |
629 | next_thread_id = 1; |
630 | paused = 0; |
630 | paused = 0; |
631 | 631 | ||
Line 656... | Line 656... | ||
656 | proto_add_oper(p, VFS_RENAME, o); |
656 | proto_add_oper(p, VFS_RENAME, o); |
657 | 657 | ||
658 | proto_register(SERVICE_VFS, p); |
658 | proto_register(SERVICE_VFS, p); |
659 | 659 | ||
660 | p = proto_new("console"); |
660 | p = proto_new("console"); |
- | 661 | resp_def[0] = V_INTEGER; resp_def[1] = V_INTEGER; |
|
661 | resp_def[0] = V_CHAR; |
662 | resp_def[2] = V_INTEGER; resp_def[3] = V_CHAR; |
662 | o = oper_new("getchar", 0, arg_def, V_INTEGER, 2, resp_def); |
663 | o = oper_new("getkey", 0, arg_def, V_ERRNO, 4, resp_def); |
663 | proto_add_oper(p, CONSOLE_GETCHAR, o); |
664 | proto_add_oper(p, CONSOLE_GETKEY, o); |
664 | 665 | ||
665 | arg_def[0] = V_CHAR; |
666 | arg_def[0] = V_CHAR; |
666 | o = oper_new("putchar", 1, arg_def, V_VOID, 0, resp_def); |
667 | o = oper_new("putchar", 1, arg_def, V_VOID, 0, resp_def); |
667 | proto_add_oper(p, CONSOLE_PUTCHAR, o); |
668 | proto_add_oper(p, CONSOLE_PUTCHAR, o); |
668 | o = oper_new("clear", 0, arg_def, V_VOID, 0, resp_def); |
669 | o = oper_new("clear", 0, arg_def, V_VOID, 0, resp_def); |