summaryrefslogtreecommitdiffstats
path: root/src/usr/example/example.C
blob: 6aa188f3c920b8ae72feb9931fc5dd7add6001b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <kernel/console.H>
#include <sys/mutex.h>
#include <sys/vfs.h>
#include <sys/task.h>
#include <tracinterface.H>

//static mutex_t value = mutex_create();

trace_desc_t g_exampleTrace;
TRAC_INIT(&g_exampleTrace, "EXAMPLE", 4096);

extern "C"
void _start(void*)
{
    printk("Executing example module.\n");
    TRACFCOMP(g_exampleTrace, "Executing example module: %d", task_gettid());
    task_end();
}
OpenPOWER on IntegriCloud