[rtems-libbsd commit] link01: Initialize interfaces
Joel Sherrill
joel at rtems.org
Wed Jul 11 19:27:56 UTC 2012
Module: rtems-libbsd
Branch: master
Commit: 4f44b24fae018885babe84ee3cc9c26505681dde
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=4f44b24fae018885babe84ee3cc9c26505681dde
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Wed Jul 11 14:31:09 2012 -0500
link01: Initialize interfaces
---
testsuite/link01/Makefile | 1 +
testsuite/link01/test.c | 9 +++++++++
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/testsuite/link01/Makefile b/testsuite/link01/Makefile
index a5134fc..0f4c069 100644
--- a/testsuite/link01/Makefile
+++ b/testsuite/link01/Makefile
@@ -15,6 +15,7 @@ C_FILES = test.c
C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
AM_CPPFLAGS += -I $(INSTALL_BASE)/include
+LINK_LIBS += $(INSTALL_BASE)/libbsdc.a
LINK_LIBS += $(INSTALL_BASE)/libbsd.a ${REL_ARGS}
include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
diff --git a/testsuite/link01/test.c b/testsuite/link01/test.c
index 1c4b260..684a7d2 100644
--- a/testsuite/link01/test.c
+++ b/testsuite/link01/test.c
@@ -9,6 +9,9 @@
#include <stdio.h>
#include <freebsd/bsd.h>
+/* XXX temporary until in .h file */
+void rtems_initialize_interfaces(void);
+
rtems_task Init(
rtems_task_argument ignored
)
@@ -22,6 +25,12 @@ rtems_task Init(
rtems_bsd_initialize_with_interrupt_server();
+ puts( "Initializing interfaces" );
+ rtems_initialize_interfaces();
+
+ puts( "Sleeping to see what happens" );
+ sleep( 5 );
+
printf( "*** END OF LIBFREEBSD INITIALIZATION TEST ***\n" );
exit( 0 );
}
More information about the vc
mailing list