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

File: [local] / funnyos / tasks / hello.c (download)

Revision 1.2, Fri Nov 23 13:08:07 2007 UTC (16 years, 5 months ago) by nbrk
Branch: MAIN
Changes since 1.1: +10 -3 lines

print hello with dummy delay (use goto to do it forever)

/*
 * $Id: hello.c,v 1.2 2007/11/23 13:08:07 nbrk Exp $
 */
#include <sys/types.h>

#include <libkern/printf.h>

void
hello_enter()
{
	uint32_t a;

	printf("hello 1 task: enter\n");

a1:
	for (a = 0; a < 1000000; a++)
		;
	printf("hello from task 1\n");

	goto a1;

}