mirror of
https://github.com/t-crest/rtems.git
synced 2026-03-27 13:39:59 +00:00
Updated testsuite (replaced posix obsolete functions).
This commit is contained in:
@@ -11,6 +11,7 @@ include_bspdir = $(includedir)/bsp
|
||||
dist_project_lib_DATA = bsp_specs
|
||||
|
||||
include_HEADERS = include/bsp.h
|
||||
include_HEADERS += ../../shared/include/tm27.h
|
||||
|
||||
nodist_include_HEADERS = include/bspopts.h
|
||||
nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
|
||||
@@ -19,6 +20,7 @@ DISTCLEANFILES = include/bspopts.h
|
||||
noinst_PROGRAMS =
|
||||
|
||||
include_HEADERS += include/pasim.h
|
||||
include_HEADERS += ../../shared/include/coverhd.h
|
||||
|
||||
noinst_LIBRARIES = libbspstart.a
|
||||
libbspstart_a_SOURCES = ../../patmos/shared/start.S
|
||||
|
||||
@@ -16,4 +16,4 @@ CPU_CFLAGS = -msoft-float
|
||||
# optimize flag: typically -O2
|
||||
CFLAGS_OPTIMIZE_V = -O2 -g -Xllc -trap-func=abort_trap
|
||||
|
||||
LD_LIBS += $(PROJECT_RELEASE)/lib/start.o $(PROJECT_RELEASE)/lib/libsyms.ll $(MANAGERS_NOT_WANTED:%=-lno_%$(LIB_VARIANT)) -l=c -l=rtemscpu -l=rtemsbsp -nostartfiles -Xgold -Map -Xgold map.map -Xgold --script=$(PROJECT_RELEASE)/lib/linkcmds -Xopt -disable-internalize
|
||||
LINK_LIBS += $(PROJECT_RELEASE)/lib/start.o $(PROJECT_RELEASE)/lib/libsyms.ll -l=c -l=rtemscpu -l=rtemsbsp -nostartfiles -Xgold -Map -Xgold map.map -Xgold --script=$(PROJECT_RELEASE)/lib/linkcmds -Xopt -disable-internalize
|
||||
@@ -41,6 +41,10 @@ $(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
|
||||
|
||||
$(PROJECT_INCLUDE)/tm27.h: ../../shared/include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
|
||||
|
||||
$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
|
||||
@@ -53,6 +57,10 @@ $(PROJECT_INCLUDE)/pasim.h: include/pasim.h $(PROJECT_INCLUDE)/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/pasim.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/pasim.h
|
||||
|
||||
$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
|
||||
|
||||
$(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT)
|
||||
TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT)
|
||||
|
||||
36
c/src/lib/libbsp/patmos/pasim/timer/timer.c
Executable file
36
c/src/lib/libbsp/patmos/pasim/timer/timer.c
Executable file
@@ -0,0 +1,36 @@
|
||||
/* timer.c
|
||||
*
|
||||
* This file implements a benchmark timer using timer 2.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-1998.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* Project: T-CREST - Time-Predictable Multi-Core Architecture for Embedded Systems
|
||||
*
|
||||
* Copyright (C) GMVIS Skysoft S.A., 2013
|
||||
* @author Andr<64> Rocha
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*/
|
||||
|
||||
|
||||
#include <bsp.h>
|
||||
|
||||
void benchmark_timer_initialize(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
int benchmark_timer_read(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void benchmark_timer_disable_subtracting_average_overhead(
|
||||
bool find_flag
|
||||
)
|
||||
{
|
||||
|
||||
}
|
||||
0
cpukit/posix/src/posixtime.h
Normal file → Executable file
0
cpukit/posix/src/posixtime.h
Normal file → Executable file
8
testsuites/psxtests/psxclock/init.c
Normal file → Executable file
8
testsuites/psxtests/psxclock/init.c
Normal file → Executable file
@@ -108,7 +108,7 @@ rtems_task Init(
|
||||
rtems_test_assert( !remaining );
|
||||
|
||||
/* print new times to make sure it has changed and we can get the realtime */
|
||||
sc = clock_gettime( CLOCK_PROCESS_CPUTIME, &tv );
|
||||
sc = clock_gettime( CLOCK_PROCESS_CPUTIME_ID, &tv );
|
||||
rtems_test_assert( !sc );
|
||||
printf("Time since boot: (%" PRItime_t ", %ld)\n", tv.tv_sec,tv.tv_nsec );
|
||||
|
||||
@@ -222,7 +222,7 @@ rtems_task Init(
|
||||
#if defined(_POSIX_THREAD_CPUTIME)
|
||||
{
|
||||
struct timespec tp;
|
||||
sc = clock_gettime( CLOCK_THREAD_CPUTIME, &tp );
|
||||
sc = clock_gettime( CLOCK_THREAD_CPUTIME_ID, &tp );
|
||||
check_enosys( sc );
|
||||
}
|
||||
#endif
|
||||
@@ -231,7 +231,7 @@ rtems_task Init(
|
||||
#if defined(_POSIX_CPUTIME)
|
||||
{
|
||||
struct timespec tp;
|
||||
sc = clock_settime( CLOCK_PROCESS_CPUTIME, &tp );
|
||||
sc = clock_settime( CLOCK_PROCESS_CPUTIME_ID, &tp );
|
||||
check_enosys( sc );
|
||||
}
|
||||
#endif
|
||||
@@ -240,7 +240,7 @@ rtems_task Init(
|
||||
#if defined(_POSIX_THREAD_CPUTIME)
|
||||
{
|
||||
struct timespec tp;
|
||||
sc = clock_settime( CLOCK_THREAD_CPUTIME, &tp );
|
||||
sc = clock_settime( CLOCK_THREAD_CPUTIME_ID, &tp );
|
||||
check_enosys( sc );
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user