Am i missing something here ?

kermit the frog kermit at tower.com.ar
Tue Apr 27 02:37:03 CEST 1999


Well, ive attached the source code of my program. To anser to your
question, recv is initialized to task=6; ltherad=0; i know that my program
starts with task=5 so im using the next task available.

Cervi~no Ulises
<kermit at tower.com.ar>
<c-3087-2 at unrctu.edu.ar>
...............................................................................

-------------- next part --------------
#include <l4/types.h>
#include <l4/syscalls.h>
#include <l4/ipc.h>

#include <stdio.h>

void	task(void);

void
main(void)
{
  int error ;
  l4_threadid_t th, recv, sigma0;
  l4_msgdope_t result;
  dword_t d1, d2;


  th = l4_myself();
  printf("Hello, task: %d, thread: %d\n", th.id.task, th.id.lthread);

  sigma0.id.task = 2;
  sigma0.id.lthread = 0;
  recv.id.task = 6 ;
  recv.id.lthread = 0;
  recv = l4_task_new(recv, 6, (dword_t) task+(4096*2), (dword_t)task, L4_NIL_ID);

  if(recv.id.task == 0 && recv.id.lthread == 0)
	printf("Error en task\n");

/*  recv = l4_task_new(recv, 6, (dword_t) task+(4096*2), (dword_t) task, sigma0);*/

  for (;;) ;
}

void task()
{
	int a,b,c;
	for(;;) {
		printf(".");
		for(a=0; a<99999; a++)
			b = b + c;
	}
}


More information about the l4-hackers mailing list