OpenCores
URL https://opencores.org/ocsvn/c0or1k/c0or1k/trunk

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [conts/] [posix/] [test0/] [container.c] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
/*
2
 * Container entry point for this task.
3
 *
4
 * Copyright (C) 2007-2009 Bahadir Bilgehan Balban
5
 */
6
 
7
#include <l4lib/types.h>
8
#include <l4lib/init.h>
9
#include <l4lib/utcb.h>
10
#include <posix_init.h>         /* Initialisers for posix library */
11
#include <stdlib.h>
12
 
13
int main(int argc, char *argv[]);
14
 
15
int __container_init(int argc, char **argv)
16
{
17
        void *envp = &argv[argc + 1];
18
 
19
        if ((char *)envp == *argv)
20
                envp = &argv[argc];
21
 
22
        __libposix_init(envp);
23
 
24
        /* Generic L4 thread initialisation */
25
        __l4_init();
26
 
27
        /* Entry to main */
28
        return main(argc, argv);
29
}
30
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.