mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-06-30 06:58:03 +08:00
link01: Initialize interfaces
This commit is contained in:
parent
514a0e5841
commit
4f44b24fae
@ -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
|
||||
|
@ -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 );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user