[BACK]Return to hello.c CVS log [TXT][DIR] Up to [local] / funnyos / tasks

Annotation of funnyos/tasks/hello.c, Revision 1.2

1.1       nbrk        1: /*
1.2     ! nbrk        2:  * $Id: hello.c,v 1.1 2007/11/20 16:09:16 nbrk Exp $
1.1       nbrk        3:  */
                      4: #include <sys/types.h>
                      5:
                      6: #include <libkern/printf.h>
                      7:
                      8: void
                      9: hello_enter()
                     10: {
1.2     ! nbrk       11:        uint32_t a;
1.1       nbrk       12:
1.2     ! nbrk       13:        printf("hello 1 task: enter\n");
        !            14:
        !            15: a1:
        !            16:        for (a = 0; a < 1000000; a++)
1.1       nbrk       17:                ;
1.2     ! nbrk       18:        printf("hello from task 1\n");
        !            19:
        !            20:        goto a1;
        !            21:
1.1       nbrk       22: }
                     23:

CVSweb