blob: 0965bcfd22b4c3c7391d2d68808daf81e2fc2aed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#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();
extern "C"
void _init(void*)
{
// Call default constructors for any static objects.
extern void (*ctor_start_address)();
extern void (*ctor_end_address)();
void(**ctors)() = &ctor_start_address;
while(ctors != &ctor_end_address)
{
(*ctors)();
ctors++;
}
printk("Here! %lx, %s\n", (uint64_t) value, VFS_ROOT);
TRACFCOMP(NULL, "This is a test %lx, %s", (uint64_t) value, VFS_ROOT);
}
extern "C"
void _start(void*)
{
printk("Executing example module.\n");
task_end();
}
|