summaryrefslogtreecommitdiff
path: root/dde_pcnet32
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2012-11-25 23:49:29 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-11-25 23:49:29 +0000
commit36318d1929e9437df0402a78ff63a70f78d6a89e (patch)
tree38588eaa8b400d7abf384a17e21dea75b104b177 /dde_pcnet32
parenteaa21da4ea94937a1bc2157c042a233d524d17ce (diff)
parentd261675a592f6109826ccbdb07c7f485c4c88683 (diff)
Merge branch 'dde-upstream' into dde
Conflicts: dde_e100/Makefile dde_e1000/Makefile dde_ne2k_pci/Makefile dde_pcnet32/Makefile dde_rtl8139/Makefile
Diffstat (limited to 'dde_pcnet32')
-rw-r--r--dde_pcnet32/Makefile2
-rw-r--r--dde_pcnet32/main.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/dde_pcnet32/Makefile b/dde_pcnet32/Makefile
index 0268d80b..e228a619 100644
--- a/dde_pcnet32/Makefile
+++ b/dde_pcnet32/Makefile
@@ -7,7 +7,7 @@ TARGET = dde_pcnet32
SRC_C = main.c pcnet32.c
-LIBS += $(libmachdev_path) -ldde_linux26.o -ldde_linux26_net $(libddekit_path) -lfshelp -ltrivfs -lpciaccess -lz -lthreads -lshouldbeinlibc -lports $(libslab_path) $(libbpf_path)
+LIBS += $(libmachdev_path) -ldde_linux26.o -ldde_linux26_net $(libddekit_path) -lfshelp -ltrivfs -lpciaccess -lz -lpthread -lshouldbeinlibc -lports $(libslab_path) $(libbpf_path)
CFLAGS += -g -I$(PKGDIR)/include -I$(BUILDDIR)/include
# DDE configuration
diff --git a/dde_pcnet32/main.c b/dde_pcnet32/main.c
index 98f4452a..df8df1eb 100644
--- a/dde_pcnet32/main.c
+++ b/dde_pcnet32/main.c
@@ -12,6 +12,8 @@ int using_std = 1;
int main(int argc, char **argv)
{
+ pthread_t thread;
+
l4dde26_init();
l4dde26_process_init();
l4dde26_softirq_init();
@@ -25,7 +27,8 @@ int main(int argc, char **argv)
mach_device_init();
trivfs_init();
- cthread_detach (cthread_fork (ds_server, NULL));
+ pthread_create (&thread, NULL, ds_server, NULL);
+ pthread_detach (thread);
trivfs_server();
return 0;