|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT PATCH 2/5] lib/ukboot: Initialize lwip on boot
Signed-off-by: Sharan Santhanam <sharan.santhanam@xxxxxxxxx>
---
lib/ukboot/boot.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/lib/ukboot/boot.c b/lib/ukboot/boot.c
index e6dfffa..aad9740 100644
--- a/lib/ukboot/boot.c
+++ b/lib/ukboot/boot.c
@@ -58,6 +58,9 @@
#include <uk/argparse.h>
int main(int argc, char *argv[]) __weak;
+#ifdef CONFIG_LIBLWIP
+extern int liblwip_init(void);
+#endif /* CONFIG_LIBLWIP */
static void main_thread_func(void *arg) __noreturn;
@@ -80,6 +83,15 @@ static void main_thread_func(void *arg)
}
uk_printd(DLVL_INFO, "])\n");
+#ifdef CONFIG_LIBLWIP
+ /*
+ * TODO: We have an initial implementation where we call the
+ * initialization of some of the libraries. We might improve on this
+ * scheme by means of init functions in subsequent patch series
+ */
+ liblwip_init();
+#endif /* CONFIG_LIBLWIP */
+
/* call main */
ret = main(tma->argc, tma->argv);
uk_printd(DLVL_INFO, "main returned %d, halting system\n", ret);
--
2.7.4
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |