/*
 *  This Task is a memory protection example
 *
 *
 *
 */

#include <rtl_conf.h>
#include <time.h>
#include <pthread.h>
#include <rtl_ipc.h>
#include <semaphore.h>
#include <rtl_barrier.h>
#include <rtl_printf.h>
#include <unistd.h>
#include "examples.h"

#if MPROT_EXAMPLE

static unsigned long valor9=0x0;

pthread_t thread9;

extern unsigned long mprot_prueba;

void *task9(void *arg)
{

  while(1)
  {
    rtl_printf("Valor %d\n",valor9);
              //Access to a kernel variable
    mprot_prueba = 10;
  };
  
  return 0;
};





#endif
