summaryrefslogtreecommitdiff
path: root/main.c
blob: ec764056a32aa60686f990bfc725e056eb087efa (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
32
33
34
35
36
#include <dde26.h> /* l4dde26_*() */
#include <dde26_net.h> /* l4dde26 networking */

#include <linux/netdevice.h> /* struct sk_buff */
#include <linux/pci.h> /* pci_unregister_driver() */
#include <linux/init.h>  // initcall()
#include <linux/delay.h> // msleep()

#include "machdev.h"
#include "check_kernel.h"

int using_std = 1;

int main(int argc, char **argv)
{
	check_kernel();

	l4dde26_init();
	l4dde26_process_init();
	l4dde26_softirq_init();

	printk("Initializing skb subsystem\n");
	skb_init();

	l4dde26_do_initcalls();

	machdev_init(argc, argv);

	ddekit_thread_create (machdev_run1, NULL, "ds_server");
	machdev_run2();

	/* Let the other threads do their job */
	pthread_exit(NULL);

	return 0;
}