From 0c2d8ec48a116cadb86564bc1226e308e197d4c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ralf=20Cors=C3=A9pius?= Date: Wed, 23 May 2012 16:44:33 +0200 Subject: Revert "libtests/complex: Avoid generated files" This reverts commit a80a108d447d596e476611108cd468ec993be4a6. --- testsuites/libtests/complex/Makefile.am | 20 +++++ testsuites/libtests/complex/docomplex.c | 106 +++++++++++++++++++++++++-- testsuites/libtests/complex/docomplex.h | 122 ------------------------------- testsuites/libtests/complex/docomplex.in | 116 +++++++++++++++++++++++++++++ testsuites/libtests/complex/docomplexf.c | 107 +++++++++++++++++++++++++-- testsuites/libtests/complex/docomplexl.c | 107 +++++++++++++++++++++++++-- testsuites/libtests/complex/init.c | 4 + 7 files changed, 437 insertions(+), 145 deletions(-) delete mode 100644 testsuites/libtests/complex/docomplex.h create mode 100644 testsuites/libtests/complex/docomplex.in diff --git a/testsuites/libtests/complex/Makefile.am b/testsuites/libtests/complex/Makefile.am index 7861d4a437..2a16eec2ce 100644 --- a/testsuites/libtests/complex/Makefile.am +++ b/testsuites/libtests/complex/Makefile.am @@ -2,10 +2,30 @@ if HAS_COMPLEX rtems_tests_PROGRAMS = complex complex_SOURCES = init.c docomplex.c docomplexf.c docomplexl.c endif +EXTRA_DIST = docomplex.in # FIXME: Skip long double, not yet supported in newlib complex_CPPFLAGS = $(AM_CPPFLAGS) -DNO_LONG_DOUBLE +docomplex.c: $(srcdir)/docomplex.in + sed -e 's,[@]FTYPE[@],double,' \ + -e 's,[@]FSUFFIX[@], ,g' \ + -e 's,[@]FGUARD[@],NO_DOUBLE,' \ + $(srcdir)/docomplex.in > $(srcdir)/docomplex.c + +docomplexf.c: $(srcdir)/docomplex.in + sed -e 's,[@]FTYPE[@],float,' \ + -e 's,[@]FSUFFIX[@],f,g' \ + -e 's,[@]FGUARD[@],NO_FLOAT,' \ + $(srcdir)/docomplex.in > $(srcdir)/docomplexf.c + +docomplexl.c: $(srcdir)/docomplex.in + sed -e 's,[@]FTYPE[@],long double,' \ + -e 's,[@]FSUFFIX[@],l,g' \ + -e 's,%f,%Lf,g' \ + -e 's,[@]FGUARD[@],NO_LONG_DOUBLE,' \ + $(srcdir)/docomplex.in > $(srcdir)/docomplexl.c + dist_rtems_tests_DATA = complex.scn include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg diff --git a/testsuites/libtests/complex/docomplex.c b/testsuites/libtests/complex/docomplex.c index 4872b5d15c..7a1b96135b 100644 --- a/testsuites/libtests/complex/docomplex.c +++ b/testsuites/libtests/complex/docomplex.c @@ -11,14 +11,106 @@ */ #ifdef HAVE_CONFIG_H - #include "config.h" +#include "config.h" #endif -#ifdef NO_DOUBLE - #define PROVIDE_EMPTY_FUNC -#endif +#include +#include + +extern void docomplex (void); + +void +docomplex (void) +{ +#ifndef NO_DOUBLE + complex double ca, cb, cc; + double f1; + + ca = 1.0 + 1.0 * I; + cb = 1.0 - 1.0 * I; + + f1 = cabs (ca); + fprintf (stdout, "cabs : %f\n", f1); + + cc = cacos (ca); + fprintf (stdout, "cacos : %f %fi\n", creal (cc), + cimag (cc)); + + cc = cacosh (ca); + fprintf (stdout, "cacosh : %f %fi\n", creal (cc), + cimag (cc)); + + f1 = carg (ca); + fprintf (stdout, "carg : %f\n", f1); + + cc = casin (ca); + fprintf (stdout, "casin : %f %fi\n", creal (cc), + cimag (cc)); + + cc = casinh (ca); + fprintf (stdout, "casinh : %f %fi\n", creal (cc), + cimag (cc)); + + cc = catan (ca); + fprintf (stdout, "catan : %f %fi\n", creal (cc), + cimag (cc)); + + cc = catanh (ca); + fprintf (stdout, "catanh : %f %fi\n", creal (cc), + cimag (cc)); + + cc = ccos (ca); + fprintf (stdout, "ccos : %f %fi\n", creal (cc), + cimag (cc)); -#define FTYPE double -#define PRI "%f" + cc = ccosh (ca); + fprintf (stdout, "ccosh : %f %fi\n", creal (cc), + cimag (cc)); -#include "docomplex.h" + cc = cexp (ca); + fprintf (stdout, "cexp : %f %fi\n", creal (cc), + cimag (cc)); + + f1 = cimag (ca); + fprintf (stdout, "cimag : %f\n", f1); + + cc = clog (ca); + fprintf (stdout, "clog : %f %fi\n", creal (cc), + cimag (cc)); + + cc = conj (ca); + fprintf (stdout, "conj : %f %fi\n", creal (cc), + cimag (cc)); + + cc = cpow (ca, cb); + fprintf (stdout, "cpow : %f %fi\n", creal (cc), + cimag (cc)); + + cc = cproj (ca); + fprintf (stdout, "cproj : %f %fi\n", creal (cc), + cimag (cc)); + + f1 = creal (ca); + fprintf (stdout, "creal : %f\n", f1); + + cc = csin (ca); + fprintf (stdout, "csin : %f %fi\n", creal (cc), + cimag (cc)); + + cc = csinh (ca); + fprintf (stdout, "csinh : %f %fi\n", creal (cc), + cimag (cc)); + + cc = csqrt (ca); + fprintf (stdout, "csqrt : %f %fi\n", creal (cc), + cimag (cc)); + + cc = ctan (ca); + fprintf (stdout, "ctan : %f %fi\n", creal (cc), + cimag (cc)); + + cc = ctanh (ca); + fprintf (stdout, "ctanh : %f %fi\n", creal (cc), + cimag (cc)); +#endif +} diff --git a/testsuites/libtests/complex/docomplex.h b/testsuites/libtests/complex/docomplex.h deleted file mode 100644 index 96ce9eb1a9..0000000000 --- a/testsuites/libtests/complex/docomplex.h +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright (c) 2010, 2011 by - * Ralf Corsepius, Ulm/Germany. All rights reserved. - * - * Permission to use, copy, modify, and distribute this software - * is freely granted, provided that this notice is preserved. - */ - -#include -#include - -#define CONCAT(x, y) x ## y -#define XCONCAT(x, y) CONCAT(x, y) - -#define STRINGIFY(x, y) # x # y -#define XSTRINGIFY(x, y) STRINGIFY(x, y) - -#ifdef SUFFIX - #define FUNC(name) XCONCAT(name, SUFFIX) - #define STR(name) XSTRINGIFY(name, SUFFIX) -#else - #define FUNC(name) XCONCAT(name, ) - #define STR(name) XSTRINGIFY(name, ) " " -#endif - -extern void FUNC(docomplex) (void); - -void -FUNC(docomplex) (void) -{ -#ifndef PROVIDE_EMPTY_FUNC - complex FTYPE ca, cb, cc; - FTYPE f1; - - ca = 1.0 + 1.0 * I; - cb = 1.0 - 1.0 * I; - - f1 = FUNC(cabs) (ca); - fprintf (stdout, STR(cabs) " : " PRI "\n", f1); - - cc = FUNC(cacos) (ca); - fprintf (stdout, STR(cacos) " : " PRI " " PRI "i\n", FUNC(creal) (cc), - FUNC(cimag) (cc)); - - cc = FUNC(cacosh) (ca); - fprintf (stdout, STR(cacosh) ": " PRI " " PRI "i\n", FUNC(creal) (cc), - FUNC(cimag) (cc)); - - f1 = FUNC(carg) (ca); - fprintf (stdout, STR(carg) " : " PRI "\n", f1); - - cc = FUNC(casin) (ca); - fprintf (stdout, STR(casin) " : " PRI " " PRI "i\n", FUNC(creal) (cc), - FUNC(cimag) (cc)); - - cc = FUNC(casinh) (ca); - fprintf (stdout, STR(casinh) ": " PRI " " PRI "i\n", FUNC(creal) (cc), - FUNC(cimag) (cc)); - - cc = FUNC(catan) (ca); - fprintf (stdout, STR(catan) " : " PRI " " PRI "i\n", FUNC(creal) (cc), - FUNC(cimag) (cc)); - - cc = FUNC(catanh) (ca); - fprintf (stdout, STR(catanh) ": " PRI " " PRI "i\n", FUNC(creal) (cc), - FUNC(cimag) (cc)); - - cc = FUNC(ccos) (ca); - fprintf (stdout, STR(ccos) " : " PRI " " PRI "i\n", FUNC(creal) (cc), - FUNC(cimag) (cc)); - - cc = FUNC(ccosh) (ca); - fprintf (stdout, STR(ccosh) " : " PRI " " PRI "i\n", FUNC(creal) (cc), - FUNC(cimag) (cc)); - - cc = FUNC(cexp) (ca); - fprintf (stdout, STR(cexp) " : " PRI " " PRI "i\n", FUNC(creal) (cc), - FUNC(cimag) (cc)); - - f1 = FUNC(cimag) (ca); - fprintf (stdout, STR(cimag) " : " PRI "\n", f1); - - cc = FUNC(clog) (ca); - fprintf (stdout, STR(clog) " : " PRI " " PRI "i\n", FUNC(creal) (cc), - FUNC(cimag) (cc)); - - cc = FUNC(conj) (ca); - fprintf (stdout, STR(conj) " : " PRI " " PRI "i\n", FUNC(creal) (cc), - FUNC(cimag) (cc)); - - cc = FUNC(cpow) (ca, cb); - fprintf (stdout, STR(cpow) " : " PRI " " PRI "i\n", FUNC(creal) (cc), - FUNC(cimag) (cc)); - - cc = FUNC(cproj) (ca); - fprintf (stdout, STR(cproj) " : " PRI " " PRI "i\n", FUNC(creal) (cc), - FUNC(cimag) (cc)); - - f1 = FUNC(creal) (ca); - fprintf (stdout, STR(creal) " : " PRI "\n", f1); - - cc = FUNC(csin) (ca); - fprintf (stdout, STR(csin) " : " PRI " " PRI "i\n", FUNC(creal) (cc), - FUNC(cimag) (cc)); - - cc = FUNC(csinh) (ca); - fprintf (stdout, STR(csinh) " : " PRI " " PRI "i\n", FUNC(creal) (cc), - FUNC(cimag) (cc)); - - cc = FUNC(csqrt) (ca); - fprintf (stdout, STR(csqrt) " : " PRI " " PRI "i\n", FUNC(creal) (cc), - FUNC(cimag) (cc)); - - cc = FUNC(ctan) (ca); - fprintf (stdout, STR(ctan) " : " PRI " " PRI "i\n", FUNC(creal) (cc), - FUNC(cimag) (cc)); - - cc = FUNC(ctanh) (ca); - fprintf (stdout, STR(ctanh) " : " PRI " " PRI "i\n", FUNC(creal) (cc), - FUNC(cimag) (cc)); -#endif -} diff --git a/testsuites/libtests/complex/docomplex.in b/testsuites/libtests/complex/docomplex.in new file mode 100644 index 0000000000..e476f6dfd3 --- /dev/null +++ b/testsuites/libtests/complex/docomplex.in @@ -0,0 +1,116 @@ +/* + * Copyright (c) 2010, 2011 by + * Ralf Corsepius, Ulm/Germany. All rights reserved. + * + * Permission to use, copy, modify, and distribute this software + * is freely granted, provided that this notice is preserved. + */ + +/* + * Try to compile and link against POSIX complex math routines. + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include + +extern void docomplex@FSUFFIX@ (void); + +void +docomplex@FSUFFIX@ (void) +{ +#ifndef @FGUARD@ + complex @FTYPE@ ca, cb, cc; + @FTYPE@ f1; + + ca = 1.0 + 1.0 * I; + cb = 1.0 - 1.0 * I; + + f1 = cabs@FSUFFIX@ (ca); + fprintf (stdout, "cabs@FSUFFIX@ : %f\n", f1); + + cc = cacos@FSUFFIX@ (ca); + fprintf (stdout, "cacos@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), + cimag@FSUFFIX@ (cc)); + + cc = cacosh@FSUFFIX@ (ca); + fprintf (stdout, "cacosh@FSUFFIX@: %f %fi\n", creal@FSUFFIX@ (cc), + cimag@FSUFFIX@ (cc)); + + f1 = carg@FSUFFIX@ (ca); + fprintf (stdout, "carg@FSUFFIX@ : %f\n", f1); + + cc = casin@FSUFFIX@ (ca); + fprintf (stdout, "casin@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), + cimag@FSUFFIX@ (cc)); + + cc = casinh@FSUFFIX@ (ca); + fprintf (stdout, "casinh@FSUFFIX@: %f %fi\n", creal@FSUFFIX@ (cc), + cimag@FSUFFIX@ (cc)); + + cc = catan@FSUFFIX@ (ca); + fprintf (stdout, "catan@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), + cimag@FSUFFIX@ (cc)); + + cc = catanh@FSUFFIX@ (ca); + fprintf (stdout, "catanh@FSUFFIX@: %f %fi\n", creal@FSUFFIX@ (cc), + cimag@FSUFFIX@ (cc)); + + cc = ccos@FSUFFIX@ (ca); + fprintf (stdout, "ccos@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), + cimag@FSUFFIX@ (cc)); + + cc = ccosh@FSUFFIX@ (ca); + fprintf (stdout, "ccosh@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), + cimag@FSUFFIX@ (cc)); + + cc = cexp@FSUFFIX@ (ca); + fprintf (stdout, "cexp@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), + cimag@FSUFFIX@ (cc)); + + f1 = cimag@FSUFFIX@ (ca); + fprintf (stdout, "cimag@FSUFFIX@ : %f\n", f1); + + cc = clog@FSUFFIX@ (ca); + fprintf (stdout, "clog@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), + cimag@FSUFFIX@ (cc)); + + cc = conj@FSUFFIX@ (ca); + fprintf (stdout, "conj@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), + cimag@FSUFFIX@ (cc)); + + cc = cpow@FSUFFIX@ (ca, cb); + fprintf (stdout, "cpow@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), + cimag@FSUFFIX@ (cc)); + + cc = cproj@FSUFFIX@ (ca); + fprintf (stdout, "cproj@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), + cimag@FSUFFIX@ (cc)); + + f1 = creal@FSUFFIX@ (ca); + fprintf (stdout, "creal@FSUFFIX@ : %f\n", f1); + + cc = csin@FSUFFIX@ (ca); + fprintf (stdout, "csin@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), + cimag@FSUFFIX@ (cc)); + + cc = csinh@FSUFFIX@ (ca); + fprintf (stdout, "csinh@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), + cimag@FSUFFIX@ (cc)); + + cc = csqrt@FSUFFIX@ (ca); + fprintf (stdout, "csqrt@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), + cimag@FSUFFIX@ (cc)); + + cc = ctan@FSUFFIX@ (ca); + fprintf (stdout, "ctan@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), + cimag@FSUFFIX@ (cc)); + + cc = ctanh@FSUFFIX@ (ca); + fprintf (stdout, "ctanh@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), + cimag@FSUFFIX@ (cc)); +#endif +} diff --git a/testsuites/libtests/complex/docomplexf.c b/testsuites/libtests/complex/docomplexf.c index b51f888232..ff2e73d3f6 100644 --- a/testsuites/libtests/complex/docomplexf.c +++ b/testsuites/libtests/complex/docomplexf.c @@ -11,15 +11,106 @@ */ #ifdef HAVE_CONFIG_H - #include "config.h" +#include "config.h" #endif -#ifdef NO_FLOAT - #define PROVIDE_EMPTY_FUNC -#endif +#include +#include + +extern void docomplexf (void); + +void +docomplexf (void) +{ +#ifndef NO_FLOAT + complex float ca, cb, cc; + float f1; + + ca = 1.0 + 1.0 * I; + cb = 1.0 - 1.0 * I; + + f1 = cabsf (ca); + fprintf (stdout, "cabsf : %f\n", f1); + + cc = cacosf (ca); + fprintf (stdout, "cacosf : %f %fi\n", crealf (cc), + cimagf (cc)); + + cc = cacoshf (ca); + fprintf (stdout, "cacoshf: %f %fi\n", crealf (cc), + cimagf (cc)); + + f1 = cargf (ca); + fprintf (stdout, "cargf : %f\n", f1); + + cc = casinf (ca); + fprintf (stdout, "casinf : %f %fi\n", crealf (cc), + cimagf (cc)); + + cc = casinhf (ca); + fprintf (stdout, "casinhf: %f %fi\n", crealf (cc), + cimagf (cc)); + + cc = catanf (ca); + fprintf (stdout, "catanf : %f %fi\n", crealf (cc), + cimagf (cc)); + + cc = catanhf (ca); + fprintf (stdout, "catanhf: %f %fi\n", crealf (cc), + cimagf (cc)); + + cc = ccosf (ca); + fprintf (stdout, "ccosf : %f %fi\n", crealf (cc), + cimagf (cc)); -#define SUFFIX f -#define FTYPE float -#define PRI "%f" + cc = ccoshf (ca); + fprintf (stdout, "ccoshf : %f %fi\n", crealf (cc), + cimagf (cc)); -#include "docomplex.h" + cc = cexpf (ca); + fprintf (stdout, "cexpf : %f %fi\n", crealf (cc), + cimagf (cc)); + + f1 = cimagf (ca); + fprintf (stdout, "cimagf : %f\n", f1); + + cc = clogf (ca); + fprintf (stdout, "clogf : %f %fi\n", crealf (cc), + cimagf (cc)); + + cc = conjf (ca); + fprintf (stdout, "conjf : %f %fi\n", crealf (cc), + cimagf (cc)); + + cc = cpowf (ca, cb); + fprintf (stdout, "cpowf : %f %fi\n", crealf (cc), + cimagf (cc)); + + cc = cprojf (ca); + fprintf (stdout, "cprojf : %f %fi\n", crealf (cc), + cimagf (cc)); + + f1 = crealf (ca); + fprintf (stdout, "crealf : %f\n", f1); + + cc = csinf (ca); + fprintf (stdout, "csinf : %f %fi\n", crealf (cc), + cimagf (cc)); + + cc = csinhf (ca); + fprintf (stdout, "csinhf : %f %fi\n", crealf (cc), + cimagf (cc)); + + cc = csqrtf (ca); + fprintf (stdout, "csqrtf : %f %fi\n", crealf (cc), + cimagf (cc)); + + cc = ctanf (ca); + fprintf (stdout, "ctanf : %f %fi\n", crealf (cc), + cimagf (cc)); + + cc = ctanhf (ca); + fprintf (stdout, "ctanhf : %f %fi\n", crealf (cc), + cimagf (cc)); +#endif +} diff --git a/testsuites/libtests/complex/docomplexl.c b/testsuites/libtests/complex/docomplexl.c index 87817c7773..f63d00ad30 100644 --- a/testsuites/libtests/complex/docomplexl.c +++ b/testsuites/libtests/complex/docomplexl.c @@ -11,15 +11,106 @@ */ #ifdef HAVE_CONFIG_H - #include "config.h" +#include "config.h" #endif -#ifdef NO_LONG_DOUBLE - #define PROVIDE_EMPTY_FUNC -#endif +#include +#include + +extern void docomplexl (void); + +void +docomplexl (void) +{ +#ifndef NO_LONG_DOUBLE + complex long double ca, cb, cc; + long double f1; + + ca = 1.0 + 1.0 * I; + cb = 1.0 - 1.0 * I; + + f1 = cabsl (ca); + fprintf (stdout, "cabsl : %Lf\n", f1); + + cc = cacosl (ca); + fprintf (stdout, "cacosl : %Lf %Lfi\n", creall (cc), + cimagl (cc)); + + cc = cacoshl (ca); + fprintf (stdout, "cacoshl: %Lf %Lfi\n", creall (cc), + cimagl (cc)); + + f1 = cargl (ca); + fprintf (stdout, "cargl : %Lf\n", f1); + + cc = casinl (ca); + fprintf (stdout, "casinl : %Lf %Lfi\n", creall (cc), + cimagl (cc)); + + cc = casinhl (ca); + fprintf (stdout, "casinhl: %Lf %Lfi\n", creall (cc), + cimagl (cc)); + + cc = catanl (ca); + fprintf (stdout, "catanl : %Lf %Lfi\n", creall (cc), + cimagl (cc)); + + cc = catanhl (ca); + fprintf (stdout, "catanhl: %Lf %Lfi\n", creall (cc), + cimagl (cc)); + + cc = ccosl (ca); + fprintf (stdout, "ccosl : %Lf %Lfi\n", creall (cc), + cimagl (cc)); -#define SUFFIX l -#define FTYPE long double -#define PRI "%Lf" + cc = ccoshl (ca); + fprintf (stdout, "ccoshl : %Lf %Lfi\n", creall (cc), + cimagl (cc)); -#include "docomplex.h" + cc = cexpl (ca); + fprintf (stdout, "cexpl : %Lf %Lfi\n", creall (cc), + cimagl (cc)); + + f1 = cimagl (ca); + fprintf (stdout, "cimagl : %Lf\n", f1); + + cc = clogl (ca); + fprintf (stdout, "clogl : %Lf %Lfi\n", creall (cc), + cimagl (cc)); + + cc = conjl (ca); + fprintf (stdout, "conjl : %Lf %Lfi\n", creall (cc), + cimagl (cc)); + + cc = cpowl (ca, cb); + fprintf (stdout, "cpowl : %Lf %Lfi\n", creall (cc), + cimagl (cc)); + + cc = cprojl (ca); + fprintf (stdout, "cprojl : %Lf %Lfi\n", creall (cc), + cimagl (cc)); + + f1 = creall (ca); + fprintf (stdout, "creall : %Lf\n", f1); + + cc = csinl (ca); + fprintf (stdout, "csinl : %Lf %Lfi\n", creall (cc), + cimagl (cc)); + + cc = csinhl (ca); + fprintf (stdout, "csinhl : %Lf %Lfi\n", creall (cc), + cimagl (cc)); + + cc = csqrtl (ca); + fprintf (stdout, "csqrtl : %Lf %Lfi\n", creall (cc), + cimagl (cc)); + + cc = ctanl (ca); + fprintf (stdout, "ctanl : %Lf %Lfi\n", creall (cc), + cimagl (cc)); + + cc = ctanhl (ca); + fprintf (stdout, "ctanhl : %Lf %Lfi\n", creall (cc), + cimagl (cc)); +#endif +} diff --git a/testsuites/libtests/complex/init.c b/testsuites/libtests/complex/init.c index 2f3c800506..82554f4816 100644 --- a/testsuites/libtests/complex/init.c +++ b/testsuites/libtests/complex/init.c @@ -31,7 +31,9 @@ extern void docomplex(void); extern void docomplexf(void); +#ifndef NO_LONG_DOUBLE extern void docomplexl(void); +#endif #if __rtems__ /* NOTICE: the clock driver is explicitly disabled */ @@ -58,7 +60,9 @@ int main( void ) docomplex(); docomplexf(); +#ifndef NO_LONG_DOUBLE docomplexl(); +#endif fprintf( stdout, "*** END OF COMPLEX MATH TEST ***\n" ); exit( 0 ); } -- cgit v1.2.3 From 87c8d8aba6a9582ca5eeacd332b5b107e26ea50f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ralf=20Cors=C3=A9pius?= Date: Wed, 23 May 2012 16:45:01 +0200 Subject: Revert "libtests/math*: Avoid generated files" This reverts commit 6a5bd1c65c005457455db344f2ee831d7a5cf99b. --- testsuites/libtests/math/Makefile.am | 8 +- testsuites/libtests/math/domath.c | 275 ++++++++++++++++++++++++++++++- testsuites/libtests/math/domath.h | 293 ---------------------------------- testsuites/libtests/math/domath.in | 287 +++++++++++++++++++++++++++++++++ testsuites/libtests/mathf/Makefile.am | 8 +- testsuites/libtests/mathf/domathf.c | 276 +++++++++++++++++++++++++++++++- testsuites/libtests/mathl/Makefile.am | 9 +- testsuites/libtests/mathl/domathl.c | 276 +++++++++++++++++++++++++++++++- 8 files changed, 1116 insertions(+), 316 deletions(-) delete mode 100644 testsuites/libtests/math/domath.h create mode 100644 testsuites/libtests/math/domath.in diff --git a/testsuites/libtests/math/Makefile.am b/testsuites/libtests/math/Makefile.am index 835bd931a5..5a8a010810 100644 --- a/testsuites/libtests/math/Makefile.am +++ b/testsuites/libtests/math/Makefile.am @@ -1,5 +1,12 @@ rtems_tests_PROGRAMS = math math_SOURCES = init.c domath.c +EXTRA_DIST = $(srcdir)/../math/domath.in + +$(srcdir)/domath.c: $(srcdir)/../math/domath.in + sed -e 's,[@]FTYPE[@],double,' \ + -e 's,[@]FSUFFIX[@], ,g' \ + -e 's,[@]FGUARD[@],NO_DOUBLE,' \ + $(srcdir)/../math/domath.in > $(srcdir)/domath.c dist_rtems_tests_DATA = math.scn @@ -7,7 +14,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg include $(top_srcdir)/../automake/compile.am include $(top_srcdir)/../automake/leaf.am -math_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/math math_LDADD = -lm LINK_OBJS = $(math_OBJECTS) $(math_LDADD) diff --git a/testsuites/libtests/math/domath.c b/testsuites/libtests/math/domath.c index 3485fb210c..cc145142f3 100644 --- a/testsuites/libtests/math/domath.c +++ b/testsuites/libtests/math/domath.c @@ -11,14 +11,277 @@ */ #ifdef HAVE_CONFIG_H - #include "config.h" +#include "config.h" #endif -#ifdef NO_DOUBLE - #define PROVIDE_EMPTY_FUNC +#include +#include + +#ifndef M_PI_2 +#define M_PI_2 1.57079632679489661923 +#endif + +#ifndef M_PI_4 +#define M_PI_4 0.78539816339744830962 #endif -#define FTYPE double -#define PRI "%f" +extern void domath (void); + +void +domath (void) +{ +#ifndef NO_DOUBLE + double f1; + double f2; + + int i1; + + f1 = acos (0.0); + fprintf( stdout, "acos : %f\n", f1); + + f1 = acosh (0.0); + fprintf( stdout, "acosh : %f\n", f1); + + f1 = asin (1.0); + fprintf( stdout, "asin : %f\n", f1); + + f1 = asinh (1.0); + fprintf( stdout, "asinh : %f\n", f1); + + f1 = atan (M_PI_4); + fprintf( stdout, "atan : %f\n", f1); + + f1 = atan2 (2.3, 2.3); + fprintf( stdout, "atan2 : %f\n", f1); + + f1 = atanh (1.0); + fprintf( stdout, "atanh : %f\n", f1); + + f1 = cbrt (27.0); + fprintf( stdout, "cbrt : %f\n", f1); + + f1 = ceil (3.5); + fprintf( stdout, "ceil : %f\n", f1); + + f1 = copysign (3.5, -2.5); + fprintf( stdout, "copysign : %f\n", f1); + + f1 = cos (M_PI_2); + fprintf( stdout, "cos : %f\n", f1); + + f1 = cosh (M_PI_2); + fprintf( stdout, "cosh : %f\n", f1); + + f1 = erf (42.0); + fprintf( stdout, "erf : %f\n", f1); + + f1 = erfc (42.0); + fprintf( stdout, "erfc : %f\n", f1); + + f1 = exp (0.42); + fprintf( stdout, "exp : %f\n", f1); + + f1 = exp2 (0.42); + fprintf( stdout, "exp2 : %f\n", f1); + + f1 = expm1 (0.00042); + fprintf( stdout, "expm1 : %f\n", f1); + + f1 = fabs (-1.123); + fprintf( stdout, "fabs : %f\n", f1); + + f1 = fdim (1.123, 2.123); + fprintf( stdout, "fdim : %f\n", f1); + + f1 = floor (0.5); + fprintf( stdout, "floor : %f\n", f1); + f1 = floor (-0.5); + fprintf( stdout, "floor : %f\n", f1); + + f1 = fma (2.1, 2.2, 3.01); + fprintf( stdout, "fma : %f\n", f1); + + f1 = fmax (-0.42, 0.42); + fprintf( stdout, "fmax : %f\n", f1); + + f1 = fmin (-0.42, 0.42); + fprintf( stdout, "fmin : %f\n", f1); + + f1 = fmod (42.0, 3.0); + fprintf( stdout, "fmod : %f\n", f1); + + /* no type-specific variant */ + i1 = fpclassify(1.0); + fprintf( stdout, "fpclassify : %d\n", i1); + + f1 = frexp (42.0, &i1); + fprintf( stdout, "frexp : %f\n", f1); + + f1 = hypot (42.0, 42.0); + fprintf( stdout, "hypot : %f\n", f1); + + i1 = ilogb (42.0); + fprintf( stdout, "ilogb : %d\n", i1); + + /* no type-specific variant */ + i1 = isfinite(3.0); + fprintf( stdout, "isfinite : %d\n", i1); + + /* no type-specific variant */ + i1 = isgreater(3.0, 3.1); + fprintf( stdout, "isgreater : %d\n", i1); + + /* no type-specific variant */ + i1 = isgreaterequal(3.0, 3.1); + fprintf( stdout, "isgreaterequal : %d\n", i1); + + /* no type-specific variant */ + i1 = isinf(3.0); + fprintf( stdout, "isinf : %d\n", i1); + + /* no type-specific variant */ + i1 = isless(3.0, 3.1); + fprintf( stdout, "isless : %d\n", i1); + + /* no type-specific variant */ + i1 = islessequal(3.0, 3.1); + fprintf( stdout, "islessequal : %d\n", i1); + + /* no type-specific variant */ + i1 = islessgreater(3.0, 3.1); + fprintf( stdout, "islessgreater : %d\n", i1); -#include + /* no type-specific variant */ + i1 = isnan(0.0); + fprintf( stdout, "isnan : %d\n", i1); + + /* no type-specific variant */ + i1 = isnormal(3.0); + fprintf( stdout, "isnormal : %d\n", i1); + + /* no type-specific variant */ + f1 = isunordered(1.0, 2.0); + fprintf( stdout, "isunordered : %d\n", i1); + + f1 = j0 (1.2); + fprintf( stdout, "j0 : %f\n", f1); + + f1 = j1 (1.2); + fprintf( stdout, "j1 : %f\n", f1); + + f1 = jn (2,1.2); + fprintf( stdout, "jn : %f\n", f1); + + f1 = ldexp (1.2,3); + fprintf( stdout, "ldexp : %f\n", f1); + + f1 = lgamma (42.0); + fprintf( stdout, "lgamma : %f\n", f1); + + f1 = llrint (-0.5); + fprintf( stdout, "llrint : %f\n", f1); + f1 = llrint (0.5); + fprintf( stdout, "llrint : %f\n", f1); + + f1 = llround (-0.5); + fprintf( stdout, "lround : %f\n", f1); + f1 = llround (0.5); + fprintf( stdout, "lround : %f\n", f1); + + f1 = log (42.0); + fprintf( stdout, "log : %f\n", f1); + + f1 = log10 (42.0); + fprintf( stdout, "log10 : %f\n", f1); + + f1 = log1p (42.0); + fprintf( stdout, "log1p : %f\n", f1); + + f1 = log2 (42.0); + fprintf( stdout, "log2 : %f\n", f1); + + f1 = logb (42.0); + fprintf( stdout, "logb : %f\n", f1); + + f1 = lrint (-0.5); + fprintf( stdout, "lrint : %f\n", f1); + f1 = lrint (0.5); + fprintf( stdout, "lrint : %f\n", f1); + + f1 = lround (-0.5); + fprintf( stdout, "lround : %f\n", f1); + f1 = lround (0.5); + fprintf( stdout, "lround : %f\n", f1); + + f1 = modf (42.0,&f2); + fprintf( stdout, "lmodf : %f\n", f1); + + f1 = nan (""); + fprintf( stdout, "nan : %f\n", f1); + + f1 = nearbyint (1.5); + fprintf( stdout, "nearbyint : %f\n", f1); + + f1 = nextafter (1.5,2.0); + fprintf( stdout, "nextafter : %f\n", f1); + + f1 = pow (3.01, 2.0); + fprintf( stdout, "pow : %f\n", f1); + + f1 = remainder (3.01,2.0); + fprintf( stdout, "remainder : %f\n", f1); + + f1 = remquo (29.0,3.0,&i1); + fprintf( stdout, "remquo : %f\n", f1); + + f1 = rint (0.5); + fprintf( stdout, "rint : %f\n", f1); + f1 = rint (-0.5); + fprintf( stdout, "rint : %f\n", f1); + + f1 = round (0.5); + fprintf( stdout, "round : %f\n", f1); + f1 = round (-0.5); + fprintf( stdout, "round : %f\n", f1); + + f1 = scalbln (1.2,3); + fprintf( stdout, "scalbln : %f\n", f1); + + f1 = scalbn (1.2,3); + fprintf( stdout, "scalbn : %f\n", f1); + + /* no type-specific variant */ + i1 = signbit(1.0); + fprintf( stdout, "signbit : %i\n", i1); + + f1 = sin (M_PI_4); + fprintf( stdout, "sin : %f\n", f1); + + f1 = sinh (M_PI_4); + fprintf( stdout, "sinh : %f\n", f1); + + f1 = sqrt (9.0); + fprintf( stdout, "sqrt : %f\n", f1); + + f1 = tan (M_PI_4); + fprintf( stdout, "tan : %f\n", f1); + + f1 = tanh (M_PI_4); + fprintf( stdout, "tanh : %f\n", f1); + + f1 = tgamma (2.1); + fprintf( stdout, "tgamma : %f\n", f1); + + f1 = trunc (3.5); + fprintf( stdout, "trunc : %f\n", f1); + + f1 = y0 (1.2); + fprintf( stdout, "y0 : %f\n", f1); + + f1 = y1 (1.2); + fprintf( stdout, "y1 : %f\n", f1); + + f1 = yn (3,1.2); + fprintf( stdout, "yn : %f\n", f1); +#endif +} diff --git a/testsuites/libtests/math/domath.h b/testsuites/libtests/math/domath.h deleted file mode 100644 index 4915577d57..0000000000 --- a/testsuites/libtests/math/domath.h +++ /dev/null @@ -1,293 +0,0 @@ -/* - * Copyright (c) 2010, 2011 by - * Ralf Corsepius, Ulm/Germany. All rights reserved. - * - * Permission to use, copy, modify, and distribute this software - * is freely granted, provided that this notice is preserved. - */ - -#include -#include - -#ifndef M_PI_2 -#define M_PI_2 1.57079632679489661923 -#endif - -#ifndef M_PI_4 -#define M_PI_4 0.78539816339744830962 -#endif - -#define CONCAT(x, y) x ## y -#define XCONCAT(x, y) CONCAT(x, y) - -#define STRINGIFY(x, y) # x # y -#define XSTRINGIFY(x, y) STRINGIFY(x, y) - -#ifdef SUFFIX - #define FUNC(name) XCONCAT(name, SUFFIX) - #define STR(name) XSTRINGIFY(name, SUFFIX) -#else - #define FUNC(name) XCONCAT(name, ) - #define STR(name) XSTRINGIFY(name, ) " " -#endif - -extern void FUNC(domath) (void); - -void -FUNC(domath) (void) -{ -#ifndef PROVIDE_EMPTY_FUNC - FTYPE f1; - FTYPE f2; - - int i1; - - f1 = FUNC(acos) (0.0); - fprintf( stdout, STR(acos) " : " PRI "\n", f1); - - f1 = FUNC(acosh) (0.0); - fprintf( stdout, STR(acosh) " : " PRI "\n", f1); - - f1 = FUNC(asin) (1.0); - fprintf( stdout, STR(asin) " : " PRI "\n", f1); - - f1 = FUNC(asinh) (1.0); - fprintf( stdout, STR(asinh) " : " PRI "\n", f1); - - f1 = FUNC(atan) (M_PI_4); - fprintf( stdout, STR(atan) " : " PRI "\n", f1); - - f1 = FUNC(atan2) (2.3, 2.3); - fprintf( stdout, STR(atan2) " : " PRI "\n", f1); - - f1 = FUNC(atanh) (1.0); - fprintf( stdout, STR(atanh) " : " PRI "\n", f1); - - f1 = FUNC(cbrt) (27.0); - fprintf( stdout, STR(cbrt) " : " PRI "\n", f1); - - f1 = FUNC(ceil) (3.5); - fprintf( stdout, STR(ceil) " : " PRI "\n", f1); - - f1 = FUNC(copysign) (3.5, -2.5); - fprintf( stdout, STR(copysign) " : " PRI "\n", f1); - - f1 = FUNC(cos) (M_PI_2); - fprintf( stdout, STR(cos) " : " PRI "\n", f1); - - f1 = FUNC(cosh) (M_PI_2); - fprintf( stdout, STR(cosh) " : " PRI "\n", f1); - - f1 = FUNC(erf) (42.0); - fprintf( stdout, STR(erf) " : " PRI "\n", f1); - - f1 = FUNC(erfc) (42.0); - fprintf( stdout, STR(erfc) " : " PRI "\n", f1); - - f1 = FUNC(exp) (0.42); - fprintf( stdout, STR(exp) " : " PRI "\n", f1); - - f1 = FUNC(exp2) (0.42); - fprintf( stdout, STR(exp2) " : " PRI "\n", f1); - - f1 = FUNC(expm1) (0.00042); - fprintf( stdout, STR(expm1) " : " PRI "\n", f1); - - f1 = FUNC(fabs) (-1.123); - fprintf( stdout, STR(fabs) " : " PRI "\n", f1); - - f1 = FUNC(fdim) (1.123, 2.123); - fprintf( stdout, STR(fdim) " : " PRI "\n", f1); - - f1 = FUNC(floor) (0.5); - fprintf( stdout, STR(floor) " : " PRI "\n", f1); - f1 = FUNC(floor) (-0.5); - fprintf( stdout, STR(floor) " : " PRI "\n", f1); - - f1 = FUNC(fma) (2.1, 2.2, 3.01); - fprintf( stdout, STR(fma) " : " PRI "\n", f1); - - f1 = FUNC(fmax) (-0.42, 0.42); - fprintf( stdout, STR(fmax) " : " PRI "\n", f1); - - f1 = FUNC(fmin) (-0.42, 0.42); - fprintf( stdout, STR(fmin) " : " PRI "\n", f1); - - f1 = FUNC(fmod) (42.0, 3.0); - fprintf( stdout, STR(fmod) " : " PRI "\n", f1); - - /* no type-specific variant */ - i1 = fpclassify(1.0); - fprintf( stdout, "fpclassify : %d\n", i1); - - f1 = FUNC(frexp) (42.0, &i1); - fprintf( stdout, STR(frexp) " : " PRI "\n", f1); - - f1 = FUNC(hypot) (42.0, 42.0); - fprintf( stdout, STR(hypot) " : " PRI "\n", f1); - - i1 = FUNC(ilogb) (42.0); - fprintf( stdout, STR(ilogb) " : %d\n", i1); - - /* no type-specific variant */ - i1 = isfinite(3.0); - fprintf( stdout, "isfinite : %d\n", i1); - - /* no type-specific variant */ - i1 = isgreater(3.0, 3.1); - fprintf( stdout, "isgreater : %d\n", i1); - - /* no type-specific variant */ - i1 = isgreaterequal(3.0, 3.1); - fprintf( stdout, "isgreaterequal : %d\n", i1); - - /* no type-specific variant */ - i1 = isinf(3.0); - fprintf( stdout, "isinf : %d\n", i1); - - /* no type-specific variant */ - i1 = isless(3.0, 3.1); - fprintf( stdout, "isless : %d\n", i1); - - /* no type-specific variant */ - i1 = islessequal(3.0, 3.1); - fprintf( stdout, "islessequal : %d\n", i1); - - /* no type-specific variant */ - i1 = islessgreater(3.0, 3.1); - fprintf( stdout, "islessgreater : %d\n", i1); - - /* no type-specific variant */ - i1 = isnan(0.0); - fprintf( stdout, "isnan : %d\n", i1); - - /* no type-specific variant */ - i1 = isnormal(3.0); - fprintf( stdout, "isnormal : %d\n", i1); - - /* no type-specific variant */ - f1 = isunordered(1.0, 2.0); - fprintf( stdout, "isunordered : %d\n", i1); - - f1 = FUNC(j0) (1.2); - fprintf( stdout, STR(j0) " : " PRI "\n", f1); - - f1 = FUNC(j1) (1.2); - fprintf( stdout, STR(j1) " : " PRI "\n", f1); - - f1 = FUNC(jn) (2,1.2); - fprintf( stdout, STR(jn) " : " PRI "\n", f1); - - f1 = FUNC(ldexp) (1.2,3); - fprintf( stdout, STR(ldexp) " : " PRI "\n", f1); - - f1 = FUNC(lgamma) (42.0); - fprintf( stdout, STR(lgamma) " : " PRI "\n", f1); - - f1 = FUNC(llrint) (-0.5); - fprintf( stdout, STR(llrint) " : " PRI "\n", f1); - f1 = FUNC(llrint) (0.5); - fprintf( stdout, STR(llrint) " : " PRI "\n", f1); - - f1 = FUNC(llround) (-0.5); - fprintf( stdout, STR(lround) " : " PRI "\n", f1); - f1 = FUNC(llround) (0.5); - fprintf( stdout, STR(lround) " : " PRI "\n", f1); - - f1 = FUNC(log) (42.0); - fprintf( stdout, STR(log) " : " PRI "\n", f1); - - f1 = FUNC(log10) (42.0); - fprintf( stdout, STR(log10) " : " PRI "\n", f1); - - f1 = FUNC(log1p) (42.0); - fprintf( stdout, STR(log1p) " : " PRI "\n", f1); - - f1 = FUNC(log2) (42.0); - fprintf( stdout, STR(log2) " : " PRI "\n", f1); - - f1 = FUNC(logb) (42.0); - fprintf( stdout, STR(logb) " : " PRI "\n", f1); - - f1 = FUNC(lrint) (-0.5); - fprintf( stdout, STR(lrint) " : " PRI "\n", f1); - f1 = FUNC(lrint) (0.5); - fprintf( stdout, STR(lrint) " : " PRI "\n", f1); - - f1 = FUNC(lround) (-0.5); - fprintf( stdout, STR(lround) " : " PRI "\n", f1); - f1 = FUNC(lround) (0.5); - fprintf( stdout, STR(lround) " : " PRI "\n", f1); - - f1 = FUNC(modf) (42.0,&f2); - fprintf( stdout, STR(lmodf) " : " PRI "\n", f1); - - f1 = FUNC(nan) (""); - fprintf( stdout, STR(nan) " : " PRI "\n", f1); - - f1 = FUNC(nearbyint) (1.5); - fprintf( stdout, STR(nearbyint) " : " PRI "\n", f1); - - f1 = FUNC(nextafter) (1.5,2.0); - fprintf( stdout, STR(nextafter) " : " PRI "\n", f1); - - f1 = FUNC(pow) (3.01, 2.0); - fprintf( stdout, STR(pow) " : " PRI "\n", f1); - - f1 = FUNC(remainder) (3.01,2.0); - fprintf( stdout, STR(remainder) " : " PRI "\n", f1); - - f1 = FUNC(remquo) (29.0,3.0,&i1); - fprintf( stdout, STR(remquo) " : " PRI "\n", f1); - - f1 = FUNC(rint) (0.5); - fprintf( stdout, STR(rint) " : " PRI "\n", f1); - f1 = FUNC(rint) (-0.5); - fprintf( stdout, STR(rint) " : " PRI "\n", f1); - - f1 = FUNC(round) (0.5); - fprintf( stdout, STR(round) " : " PRI "\n", f1); - f1 = FUNC(round) (-0.5); - fprintf( stdout, STR(round) " : " PRI "\n", f1); - - f1 = FUNC(scalbln) (1.2,3); - fprintf( stdout, STR(scalbln) " : " PRI "\n", f1); - - f1 = FUNC(scalbn) (1.2,3); - fprintf( stdout, STR(scalbn) " : " PRI "\n", f1); - - /* no type-specific variant */ - i1 = signbit(1.0); - fprintf( stdout, "signbit : %i\n", i1); - - f1 = FUNC(sin) (M_PI_4); - fprintf( stdout, STR(sin) " : " PRI "\n", f1); - - f1 = FUNC(sinh) (M_PI_4); - fprintf( stdout, STR(sinh) " : " PRI "\n", f1); - - f1 = FUNC(sqrt) (9.0); - fprintf( stdout, STR(sqrt) " : " PRI "\n", f1); - - f1 = FUNC(tan) (M_PI_4); - fprintf( stdout, STR(tan) " : " PRI "\n", f1); - - f1 = FUNC(tanh) (M_PI_4); - fprintf( stdout, STR(tanh) " : " PRI "\n", f1); - - f1 = FUNC(tgamma) (2.1); - fprintf( stdout, STR(tgamma) " : " PRI "\n", f1); - - f1 = FUNC(trunc) (3.5); - fprintf( stdout, STR(trunc) " : " PRI "\n", f1); - - f1 = FUNC(y0) (1.2); - fprintf( stdout, STR(y0) " : " PRI "\n", f1); - - f1 = FUNC(y1) (1.2); - fprintf( stdout, STR(y1) " : " PRI "\n", f1); - - f1 = FUNC(yn) (3,1.2); - fprintf( stdout, STR(yn) " : " PRI "\n", f1); -#endif -} diff --git a/testsuites/libtests/math/domath.in b/testsuites/libtests/math/domath.in new file mode 100644 index 0000000000..92bafff276 --- /dev/null +++ b/testsuites/libtests/math/domath.in @@ -0,0 +1,287 @@ +/* + * Copyright (c) 2010, 2011 by + * Ralf Corsepius, Ulm/Germany. All rights reserved. + * + * Permission to use, copy, modify, and distribute this software + * is freely granted, provided that this notice is preserved. + */ + +/* + * Try to compile and link against POSIX math routines. + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include + +#ifndef M_PI_2 +#define M_PI_2 1.57079632679489661923 +#endif + +#ifndef M_PI_4 +#define M_PI_4 0.78539816339744830962 +#endif + +extern void domath@FSUFFIX@ (void); + +void +domath@FSUFFIX@ (void) +{ +#ifndef @FGUARD@ + @FTYPE@ f1; + @FTYPE@ f2; + + int i1; + + f1 = acos@FSUFFIX@(0.0); + fprintf( stdout, "acos@FSUFFIX@ : %f\n", f1); + + f1 = acosh@FSUFFIX@(0.0); + fprintf( stdout, "acosh@FSUFFIX@ : %f\n", f1); + + f1 = asin@FSUFFIX@(1.0); + fprintf( stdout, "asin@FSUFFIX@ : %f\n", f1); + + f1 = asinh@FSUFFIX@(1.0); + fprintf( stdout, "asinh@FSUFFIX@ : %f\n", f1); + + f1 = atan@FSUFFIX@(M_PI_4); + fprintf( stdout, "atan@FSUFFIX@ : %f\n", f1); + + f1 = atan2@FSUFFIX@(2.3, 2.3); + fprintf( stdout, "atan2@FSUFFIX@ : %f\n", f1); + + f1 = atanh@FSUFFIX@(1.0); + fprintf( stdout, "atanh@FSUFFIX@ : %f\n", f1); + + f1 = cbrt@FSUFFIX@(27.0); + fprintf( stdout, "cbrt@FSUFFIX@ : %f\n", f1); + + f1 = ceil@FSUFFIX@(3.5); + fprintf( stdout, "ceil@FSUFFIX@ : %f\n", f1); + + f1 = copysign@FSUFFIX@(3.5, -2.5); + fprintf( stdout, "copysign@FSUFFIX@ : %f\n", f1); + + f1 = cos@FSUFFIX@(M_PI_2); + fprintf( stdout, "cos@FSUFFIX@ : %f\n", f1); + + f1 = cosh@FSUFFIX@(M_PI_2); + fprintf( stdout, "cosh@FSUFFIX@ : %f\n", f1); + + f1 = erf@FSUFFIX@(42.0); + fprintf( stdout, "erf@FSUFFIX@ : %f\n", f1); + + f1 = erfc@FSUFFIX@(42.0); + fprintf( stdout, "erfc@FSUFFIX@ : %f\n", f1); + + f1 = exp@FSUFFIX@(0.42); + fprintf( stdout, "exp@FSUFFIX@ : %f\n", f1); + + f1 = exp2@FSUFFIX@(0.42); + fprintf( stdout, "exp2@FSUFFIX@ : %f\n", f1); + + f1 = expm1@FSUFFIX@(0.00042); + fprintf( stdout, "expm1@FSUFFIX@ : %f\n", f1); + + f1 = fabs@FSUFFIX@(-1.123); + fprintf( stdout, "fabs@FSUFFIX@ : %f\n", f1); + + f1 = fdim@FSUFFIX@(1.123, 2.123); + fprintf( stdout, "fdim@FSUFFIX@ : %f\n", f1); + + f1 = floor@FSUFFIX@(0.5); + fprintf( stdout, "floor@FSUFFIX@ : %f\n", f1); + f1 = floor@FSUFFIX@(-0.5); + fprintf( stdout, "floor@FSUFFIX@ : %f\n", f1); + + f1 = fma@FSUFFIX@(2.1, 2.2, 3.01); + fprintf( stdout, "fma@FSUFFIX@ : %f\n", f1); + + f1 = fmax@FSUFFIX@(-0.42, 0.42); + fprintf( stdout, "fmax@FSUFFIX@ : %f\n", f1); + + f1 = fmin@FSUFFIX@(-0.42, 0.42); + fprintf( stdout, "fmin@FSUFFIX@ : %f\n", f1); + + f1 = fmod@FSUFFIX@(42.0, 3.0); + fprintf( stdout, "fmod@FSUFFIX@ : %f\n", f1); + + /* no type-specific variant */ + i1 = fpclassify(1.0); + fprintf( stdout, "fpclassify : %d\n", i1); + + f1 = frexp@FSUFFIX@(42.0, &i1); + fprintf( stdout, "frexp@FSUFFIX@ : %f\n", f1); + + f1 = hypot@FSUFFIX@(42.0, 42.0); + fprintf( stdout, "hypot@FSUFFIX@ : %f\n", f1); + + i1 = ilogb@FSUFFIX@(42.0); + fprintf( stdout, "ilogb@FSUFFIX@ : %d\n", i1); + + /* no type-specific variant */ + i1 = isfinite(3.0); + fprintf( stdout, "isfinite : %d\n", i1); + + /* no type-specific variant */ + i1 = isgreater(3.0, 3.1); + fprintf( stdout, "isgreater : %d\n", i1); + + /* no type-specific variant */ + i1 = isgreaterequal(3.0, 3.1); + fprintf( stdout, "isgreaterequal : %d\n", i1); + + /* no type-specific variant */ + i1 = isinf(3.0); + fprintf( stdout, "isinf : %d\n", i1); + + /* no type-specific variant */ + i1 = isless(3.0, 3.1); + fprintf( stdout, "isless : %d\n", i1); + + /* no type-specific variant */ + i1 = islessequal(3.0, 3.1); + fprintf( stdout, "islessequal : %d\n", i1); + + /* no type-specific variant */ + i1 = islessgreater(3.0, 3.1); + fprintf( stdout, "islessgreater : %d\n", i1); + + /* no type-specific variant */ + i1 = isnan(0.0); + fprintf( stdout, "isnan : %d\n", i1); + + /* no type-specific variant */ + i1 = isnormal(3.0); + fprintf( stdout, "isnormal : %d\n", i1); + + /* no type-specific variant */ + f1 = isunordered(1.0, 2.0); + fprintf( stdout, "isunordered : %d\n", i1); + + f1 = j0@FSUFFIX@(1.2); + fprintf( stdout, "j0@FSUFFIX@ : %f\n", f1); + + f1 = j1@FSUFFIX@(1.2); + fprintf( stdout, "j1@FSUFFIX@ : %f\n", f1); + + f1 = jn@FSUFFIX@(2,1.2); + fprintf( stdout, "jn@FSUFFIX@ : %f\n", f1); + + f1 = ldexp@FSUFFIX@(1.2,3); + fprintf( stdout, "ldexp@FSUFFIX@ : %f\n", f1); + + f1 = lgamma@FSUFFIX@(42.0); + fprintf( stdout, "lgamma@FSUFFIX@ : %f\n", f1); + + f1 = llrint@FSUFFIX@(-0.5); + fprintf( stdout, "llrint@FSUFFIX@ : %f\n", f1); + f1 = llrint@FSUFFIX@(0.5); + fprintf( stdout, "llrint@FSUFFIX@ : %f\n", f1); + + f1 = llround@FSUFFIX@(-0.5); + fprintf( stdout, "lround@FSUFFIX@ : %f\n", f1); + f1 = llround@FSUFFIX@(0.5); + fprintf( stdout, "lround@FSUFFIX@ : %f\n", f1); + + f1 = log@FSUFFIX@(42.0); + fprintf( stdout, "log@FSUFFIX@ : %f\n", f1); + + f1 = log10@FSUFFIX@(42.0); + fprintf( stdout, "log10@FSUFFIX@ : %f\n", f1); + + f1 = log1p@FSUFFIX@(42.0); + fprintf( stdout, "log1p@FSUFFIX@ : %f\n", f1); + + f1 = log2@FSUFFIX@(42.0); + fprintf( stdout, "log2@FSUFFIX@ : %f\n", f1); + + f1 = logb@FSUFFIX@(42.0); + fprintf( stdout, "logb@FSUFFIX@ : %f\n", f1); + + f1 = lrint@FSUFFIX@(-0.5); + fprintf( stdout, "lrint@FSUFFIX@ : %f\n", f1); + f1 = lrint@FSUFFIX@(0.5); + fprintf( stdout, "lrint@FSUFFIX@ : %f\n", f1); + + f1 = lround@FSUFFIX@(-0.5); + fprintf( stdout, "lround@FSUFFIX@ : %f\n", f1); + f1 = lround@FSUFFIX@(0.5); + fprintf( stdout, "lround@FSUFFIX@ : %f\n", f1); + + f1 = modf@FSUFFIX@(42.0,&f2); + fprintf( stdout, "lmodf@FSUFFIX@ : %f\n", f1); + + f1 = nan@FSUFFIX@(""); + fprintf( stdout, "nan@FSUFFIX@ : %f\n", f1); + + f1 = nearbyint@FSUFFIX@(1.5); + fprintf( stdout, "nearbyint@FSUFFIX@ : %f\n", f1); + + f1 = nextafter@FSUFFIX@(1.5,2.0); + fprintf( stdout, "nextafter@FSUFFIX@ : %f\n", f1); + + f1 = pow@FSUFFIX@(3.01, 2.0); + fprintf( stdout, "pow@FSUFFIX@ : %f\n", f1); + + f1 = remainder@FSUFFIX@(3.01,2.0); + fprintf( stdout, "remainder@FSUFFIX@ : %f\n", f1); + + f1 = remquo@FSUFFIX@(29.0,3.0,&i1); + fprintf( stdout, "remquo@FSUFFIX@ : %f\n", f1); + + f1 = rint@FSUFFIX@(0.5); + fprintf( stdout, "rint@FSUFFIX@ : %f\n", f1); + f1 = rint@FSUFFIX@(-0.5); + fprintf( stdout, "rint@FSUFFIX@ : %f\n", f1); + + f1 = round@FSUFFIX@(0.5); + fprintf( stdout, "round@FSUFFIX@ : %f\n", f1); + f1 = round@FSUFFIX@(-0.5); + fprintf( stdout, "round@FSUFFIX@ : %f\n", f1); + + f1 = scalbln@FSUFFIX@(1.2,3); + fprintf( stdout, "scalbln@FSUFFIX@ : %f\n", f1); + + f1 = scalbn@FSUFFIX@(1.2,3); + fprintf( stdout, "scalbn@FSUFFIX@ : %f\n", f1); + + /* no type-specific variant */ + i1 = signbit(1.0); + fprintf( stdout, "signbit : %i\n", i1); + + f1 = sin@FSUFFIX@(M_PI_4); + fprintf( stdout, "sin@FSUFFIX@ : %f\n", f1); + + f1 = sinh@FSUFFIX@(M_PI_4); + fprintf( stdout, "sinh@FSUFFIX@ : %f\n", f1); + + f1 = sqrt@FSUFFIX@(9.0); + fprintf( stdout, "sqrt@FSUFFIX@ : %f\n", f1); + + f1 = tan@FSUFFIX@(M_PI_4); + fprintf( stdout, "tan@FSUFFIX@ : %f\n", f1); + + f1 = tanh@FSUFFIX@(M_PI_4); + fprintf( stdout, "tanh@FSUFFIX@ : %f\n", f1); + + f1 = tgamma@FSUFFIX@(2.1); + fprintf( stdout, "tgamma@FSUFFIX@ : %f\n", f1); + + f1 = trunc@FSUFFIX@(3.5); + fprintf( stdout, "trunc@FSUFFIX@ : %f\n", f1); + + f1 = y0@FSUFFIX@(1.2); + fprintf( stdout, "y0@FSUFFIX@ : %f\n", f1); + + f1 = y1@FSUFFIX@(1.2); + fprintf( stdout, "y1@FSUFFIX@ : %f\n", f1); + + f1 = yn@FSUFFIX@(3,1.2); + fprintf( stdout, "yn@FSUFFIX@ : %f\n", f1); +#endif +} diff --git a/testsuites/libtests/mathf/Makefile.am b/testsuites/libtests/mathf/Makefile.am index e4bd7ba10c..0834145292 100644 --- a/testsuites/libtests/mathf/Makefile.am +++ b/testsuites/libtests/mathf/Makefile.am @@ -1,5 +1,12 @@ rtems_tests_PROGRAMS = mathf mathf_SOURCES = init.c domathf.c +EXTRA_DIST = $(srcdir)/../math/domath.in + +$(srcdir)/domathf.c: $(srcdir)/../math/domath.in + sed -e 's,[@]FTYPE[@],float,' \ + -e 's,[@]FSUFFIX[@],f,g' \ + -e 's,[@]FGUARD[@],NO_FLOAT,' \ + $(srcdir)/../math/domath.in > $(srcdir)/domathf.c dist_rtems_tests_DATA = mathf.scn @@ -7,7 +14,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg include $(top_srcdir)/../automake/compile.am include $(top_srcdir)/../automake/leaf.am -mathf_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/math mathf_LDADD = -lm LINK_OBJS = $(mathf_OBJECTS) $(mathf_LDADD) diff --git a/testsuites/libtests/mathf/domathf.c b/testsuites/libtests/mathf/domathf.c index 3aece952d7..b5db14d63a 100644 --- a/testsuites/libtests/mathf/domathf.c +++ b/testsuites/libtests/mathf/domathf.c @@ -11,15 +11,277 @@ */ #ifdef HAVE_CONFIG_H - #include "config.h" +#include "config.h" #endif -#ifdef NO_FLOAT - #define PROVIDE_EMPTY_FUNC +#include +#include + +#ifndef M_PI_2 +#define M_PI_2 1.57079632679489661923 +#endif + +#ifndef M_PI_4 +#define M_PI_4 0.78539816339744830962 #endif -#define SUFFIX f -#define FTYPE float -#define PRI "%f" +extern void domathf (void); + +void +domathf (void) +{ +#ifndef NO_FLOAT + float f1; + float f2; + + int i1; + + f1 = acosf(0.0); + fprintf( stdout, "acosf : %f\n", f1); + + f1 = acoshf(0.0); + fprintf( stdout, "acoshf : %f\n", f1); + + f1 = asinf(1.0); + fprintf( stdout, "asinf : %f\n", f1); + + f1 = asinhf(1.0); + fprintf( stdout, "asinhf : %f\n", f1); + + f1 = atanf(M_PI_4); + fprintf( stdout, "atanf : %f\n", f1); + + f1 = atan2f(2.3, 2.3); + fprintf( stdout, "atan2f : %f\n", f1); + + f1 = atanhf(1.0); + fprintf( stdout, "atanhf : %f\n", f1); + + f1 = cbrtf(27.0); + fprintf( stdout, "cbrtf : %f\n", f1); + + f1 = ceilf(3.5); + fprintf( stdout, "ceilf : %f\n", f1); + + f1 = copysignf(3.5, -2.5); + fprintf( stdout, "copysignf : %f\n", f1); + + f1 = cosf(M_PI_2); + fprintf( stdout, "cosf : %f\n", f1); + + f1 = coshf(M_PI_2); + fprintf( stdout, "coshf : %f\n", f1); + + f1 = erff(42.0); + fprintf( stdout, "erff : %f\n", f1); + + f1 = erfcf(42.0); + fprintf( stdout, "erfcf : %f\n", f1); + + f1 = expf(0.42); + fprintf( stdout, "expf : %f\n", f1); + + f1 = exp2f(0.42); + fprintf( stdout, "exp2f : %f\n", f1); + + f1 = expm1f(0.00042); + fprintf( stdout, "expm1f : %f\n", f1); + + f1 = fabsf(-1.123); + fprintf( stdout, "fabsf : %f\n", f1); + + f1 = fdimf(1.123, 2.123); + fprintf( stdout, "fdimf : %f\n", f1); + + f1 = floorf(0.5); + fprintf( stdout, "floorf : %f\n", f1); + f1 = floorf(-0.5); + fprintf( stdout, "floorf : %f\n", f1); + + f1 = fmaf(2.1, 2.2, 3.01); + fprintf( stdout, "fmaf : %f\n", f1); + + f1 = fmaxf(-0.42, 0.42); + fprintf( stdout, "fmaxf : %f\n", f1); + + f1 = fminf(-0.42, 0.42); + fprintf( stdout, "fminf : %f\n", f1); + + f1 = fmodf(42.0, 3.0); + fprintf( stdout, "fmodf : %f\n", f1); + + /* no type-specific variant */ + i1 = fpclassify(1.0); + fprintf( stdout, "fpclassify : %d\n", i1); + + f1 = frexpf(42.0, &i1); + fprintf( stdout, "frexpf : %f\n", f1); + + f1 = hypotf(42.0, 42.0); + fprintf( stdout, "hypotf : %f\n", f1); + + i1 = ilogbf(42.0); + fprintf( stdout, "ilogbf : %d\n", i1); + + /* no type-specific variant */ + i1 = isfinite(3.0); + fprintf( stdout, "isfinite : %d\n", i1); + + /* no type-specific variant */ + i1 = isgreater(3.0, 3.1); + fprintf( stdout, "isgreater : %d\n", i1); + + /* no type-specific variant */ + i1 = isgreaterequal(3.0, 3.1); + fprintf( stdout, "isgreaterequal : %d\n", i1); + + /* no type-specific variant */ + i1 = isinf(3.0); + fprintf( stdout, "isinf : %d\n", i1); + + /* no type-specific variant */ + i1 = isless(3.0, 3.1); + fprintf( stdout, "isless : %d\n", i1); + + /* no type-specific variant */ + i1 = islessequal(3.0, 3.1); + fprintf( stdout, "islessequal : %d\n", i1); + + /* no type-specific variant */ + i1 = islessgreater(3.0, 3.1); + fprintf( stdout, "islessgreater : %d\n", i1); -#include + /* no type-specific variant */ + i1 = isnan(0.0); + fprintf( stdout, "isnan : %d\n", i1); + + /* no type-specific variant */ + i1 = isnormal(3.0); + fprintf( stdout, "isnormal : %d\n", i1); + + /* no type-specific variant */ + f1 = isunordered(1.0, 2.0); + fprintf( stdout, "isunordered : %d\n", i1); + + f1 = j0f(1.2); + fprintf( stdout, "j0f : %f\n", f1); + + f1 = j1f(1.2); + fprintf( stdout, "j1f : %f\n", f1); + + f1 = jnf(2,1.2); + fprintf( stdout, "jnf : %f\n", f1); + + f1 = ldexpf(1.2,3); + fprintf( stdout, "ldexpf : %f\n", f1); + + f1 = lgammaf(42.0); + fprintf( stdout, "lgammaf : %f\n", f1); + + f1 = llrintf(-0.5); + fprintf( stdout, "llrintf : %f\n", f1); + f1 = llrintf(0.5); + fprintf( stdout, "llrintf : %f\n", f1); + + f1 = llroundf(-0.5); + fprintf( stdout, "lroundf : %f\n", f1); + f1 = llroundf(0.5); + fprintf( stdout, "lroundf : %f\n", f1); + + f1 = logf(42.0); + fprintf( stdout, "logf : %f\n", f1); + + f1 = log10f(42.0); + fprintf( stdout, "log10f : %f\n", f1); + + f1 = log1pf(42.0); + fprintf( stdout, "log1pf : %f\n", f1); + + f1 = log2f(42.0); + fprintf( stdout, "log2f : %f\n", f1); + + f1 = logbf(42.0); + fprintf( stdout, "logbf : %f\n", f1); + + f1 = lrintf(-0.5); + fprintf( stdout, "lrintf : %f\n", f1); + f1 = lrintf(0.5); + fprintf( stdout, "lrintf : %f\n", f1); + + f1 = lroundf(-0.5); + fprintf( stdout, "lroundf : %f\n", f1); + f1 = lroundf(0.5); + fprintf( stdout, "lroundf : %f\n", f1); + + f1 = modff(42.0,&f2); + fprintf( stdout, "lmodff : %f\n", f1); + + f1 = nanf(""); + fprintf( stdout, "nanf : %f\n", f1); + + f1 = nearbyintf(1.5); + fprintf( stdout, "nearbyintf : %f\n", f1); + + f1 = nextafterf(1.5,2.0); + fprintf( stdout, "nextafterf : %f\n", f1); + + f1 = powf(3.01, 2.0); + fprintf( stdout, "powf : %f\n", f1); + + f1 = remainderf(3.01,2.0); + fprintf( stdout, "remainderf : %f\n", f1); + + f1 = remquof(29.0,3.0,&i1); + fprintf( stdout, "remquof : %f\n", f1); + + f1 = rintf(0.5); + fprintf( stdout, "rintf : %f\n", f1); + f1 = rintf(-0.5); + fprintf( stdout, "rintf : %f\n", f1); + + f1 = roundf(0.5); + fprintf( stdout, "roundf : %f\n", f1); + f1 = roundf(-0.5); + fprintf( stdout, "roundf : %f\n", f1); + + f1 = scalblnf(1.2,3); + fprintf( stdout, "scalblnf : %f\n", f1); + + f1 = scalbnf(1.2,3); + fprintf( stdout, "scalbnf : %f\n", f1); + + /* no type-specific variant */ + i1 = signbit(1.0); + fprintf( stdout, "signbit : %i\n", i1); + + f1 = sinf(M_PI_4); + fprintf( stdout, "sinf : %f\n", f1); + + f1 = sinhf(M_PI_4); + fprintf( stdout, "sinhf : %f\n", f1); + + f1 = sqrtf(9.0); + fprintf( stdout, "sqrtf : %f\n", f1); + + f1 = tanf(M_PI_4); + fprintf( stdout, "tanf : %f\n", f1); + + f1 = tanhf(M_PI_4); + fprintf( stdout, "tanhf : %f\n", f1); + + f1 = tgammaf(2.1); + fprintf( stdout, "tgammaf : %f\n", f1); + + f1 = truncf(3.5); + fprintf( stdout, "truncf : %f\n", f1); + + f1 = y0f(1.2); + fprintf( stdout, "y0f : %f\n", f1); + + f1 = y1f(1.2); + fprintf( stdout, "y1f : %f\n", f1); + + f1 = ynf(3,1.2); + fprintf( stdout, "ynf : %f\n", f1); +#endif +} diff --git a/testsuites/libtests/mathl/Makefile.am b/testsuites/libtests/mathl/Makefile.am index b7a823460c..23d21d65c0 100644 --- a/testsuites/libtests/mathl/Makefile.am +++ b/testsuites/libtests/mathl/Makefile.am @@ -4,7 +4,14 @@ EXTRA_DIST = $(srcdir)/../math/domath.in # FIXME: Skip long double, not yet supported in newlib # => This test currently is a nop -mathl_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/math -DNO_LONG_DOUBLE +mathl_CPPFLAGS = $(AM_CPPFLAGS) -DNO_LONG_DOUBLE + +$(srcdir)/domathl.c: $(srcdir)/../math/domath.in + sed -e 's,[@]FTYPE[@],long double,' \ + -e 's,[@]FSUFFIX[@],l,g' \ + -e 's,%f,%Lf,g' \ + -e 's,[@]FGUARD[@],NO_LONG_DOUBLE,' \ + $(srcdir)/../math/domath.in > $(srcdir)/domathl.c dist_rtems_tests_DATA = mathl.scn diff --git a/testsuites/libtests/mathl/domathl.c b/testsuites/libtests/mathl/domathl.c index d0758dcc74..3ff381d712 100644 --- a/testsuites/libtests/mathl/domathl.c +++ b/testsuites/libtests/mathl/domathl.c @@ -11,15 +11,277 @@ */ #ifdef HAVE_CONFIG_H - #include "config.h" +#include "config.h" #endif -#ifdef NO_LONG_DOUBLE - #define PROVIDE_EMPTY_FUNC +#include +#include + +#ifndef M_PI_2 +#define M_PI_2 1.57079632679489661923 +#endif + +#ifndef M_PI_4 +#define M_PI_4 0.78539816339744830962 #endif -#define SUFFIX l -#define FTYPE long double -#define PRI "%Lf" +extern void domathl (void); + +void +domathl (void) +{ +#ifndef NO_LONG_DOUBLE + long double f1; + long double f2; + + int i1; + + f1 = acosl(0.0); + fprintf( stdout, "acosl : %Lf\n", f1); + + f1 = acoshl(0.0); + fprintf( stdout, "acoshl : %Lf\n", f1); + + f1 = asinl(1.0); + fprintf( stdout, "asinl : %Lf\n", f1); + + f1 = asinhl(1.0); + fprintf( stdout, "asinhl : %Lf\n", f1); + + f1 = atanl(M_PI_4); + fprintf( stdout, "atanl : %Lf\n", f1); + + f1 = atan2l(2.3, 2.3); + fprintf( stdout, "atan2l : %Lf\n", f1); + + f1 = atanhl(1.0); + fprintf( stdout, "atanhl : %Lf\n", f1); + + f1 = cbrtl(27.0); + fprintf( stdout, "cbrtl : %Lf\n", f1); + + f1 = ceill(3.5); + fprintf( stdout, "ceill : %Lf\n", f1); + + f1 = copysignl(3.5, -2.5); + fprintf( stdout, "copysignl : %Lf\n", f1); + + f1 = cosl(M_PI_2); + fprintf( stdout, "cosl : %Lf\n", f1); + + f1 = coshl(M_PI_2); + fprintf( stdout, "coshl : %Lf\n", f1); + + f1 = erfl(42.0); + fprintf( stdout, "erfl : %Lf\n", f1); + + f1 = erfcl(42.0); + fprintf( stdout, "erfcl : %Lf\n", f1); + + f1 = expl(0.42); + fprintf( stdout, "expl : %Lf\n", f1); + + f1 = exp2l(0.42); + fprintf( stdout, "exp2l : %Lf\n", f1); + + f1 = expm1l(0.00042); + fprintf( stdout, "expm1l : %Lf\n", f1); + + f1 = fabsl(-1.123); + fprintf( stdout, "fabsl : %Lf\n", f1); + + f1 = fdiml(1.123, 2.123); + fprintf( stdout, "fdiml : %Lf\n", f1); + + f1 = floorl(0.5); + fprintf( stdout, "floorl : %Lf\n", f1); + f1 = floorl(-0.5); + fprintf( stdout, "floorl : %Lf\n", f1); + + f1 = fmal(2.1, 2.2, 3.01); + fprintf( stdout, "fmal : %Lf\n", f1); + + f1 = fmaxl(-0.42, 0.42); + fprintf( stdout, "fmaxl : %Lf\n", f1); + + f1 = fminl(-0.42, 0.42); + fprintf( stdout, "fminl : %Lf\n", f1); + + f1 = fmodl(42.0, 3.0); + fprintf( stdout, "fmodl : %Lf\n", f1); + + /* no type-specific variant */ + i1 = fpclassify(1.0); + fprintf( stdout, "fpclassify : %d\n", i1); + + f1 = frexpl(42.0, &i1); + fprintf( stdout, "frexpl : %Lf\n", f1); + + f1 = hypotl(42.0, 42.0); + fprintf( stdout, "hypotl : %Lf\n", f1); + + i1 = ilogbl(42.0); + fprintf( stdout, "ilogbl : %d\n", i1); + + /* no type-specific variant */ + i1 = isfinite(3.0); + fprintf( stdout, "isfinite : %d\n", i1); + + /* no type-specific variant */ + i1 = isgreater(3.0, 3.1); + fprintf( stdout, "isgreater : %d\n", i1); + + /* no type-specific variant */ + i1 = isgreaterequal(3.0, 3.1); + fprintf( stdout, "isgreaterequal : %d\n", i1); + + /* no type-specific variant */ + i1 = isinf(3.0); + fprintf( stdout, "isinf : %d\n", i1); + + /* no type-specific variant */ + i1 = isless(3.0, 3.1); + fprintf( stdout, "isless : %d\n", i1); + + /* no type-specific variant */ + i1 = islessequal(3.0, 3.1); + fprintf( stdout, "islessequal : %d\n", i1); + + /* no type-specific variant */ + i1 = islessgreater(3.0, 3.1); + fprintf( stdout, "islessgreater : %d\n", i1); -#include + /* no type-specific variant */ + i1 = isnan(0.0); + fprintf( stdout, "isnan : %d\n", i1); + + /* no type-specific variant */ + i1 = isnormal(3.0); + fprintf( stdout, "isnormal : %d\n", i1); + + /* no type-specific variant */ + f1 = isunordered(1.0, 2.0); + fprintf( stdout, "isunordered : %d\n", i1); + + f1 = j0l(1.2); + fprintf( stdout, "j0l : %Lf\n", f1); + + f1 = j1l(1.2); + fprintf( stdout, "j1l : %Lf\n", f1); + + f1 = jnl(2,1.2); + fprintf( stdout, "jnl : %Lf\n", f1); + + f1 = ldexpl(1.2,3); + fprintf( stdout, "ldexpl : %Lf\n", f1); + + f1 = lgammal(42.0); + fprintf( stdout, "lgammal : %Lf\n", f1); + + f1 = llrintl(-0.5); + fprintf( stdout, "llrintl : %Lf\n", f1); + f1 = llrintl(0.5); + fprintf( stdout, "llrintl : %Lf\n", f1); + + f1 = llroundl(-0.5); + fprintf( stdout, "lroundl : %Lf\n", f1); + f1 = llroundl(0.5); + fprintf( stdout, "lroundl : %Lf\n", f1); + + f1 = logl(42.0); + fprintf( stdout, "logl : %Lf\n", f1); + + f1 = log10l(42.0); + fprintf( stdout, "log10l : %Lf\n", f1); + + f1 = log1pl(42.0); + fprintf( stdout, "log1pl : %Lf\n", f1); + + f1 = log2l(42.0); + fprintf( stdout, "log2l : %Lf\n", f1); + + f1 = logbl(42.0); + fprintf( stdout, "logbl : %Lf\n", f1); + + f1 = lrintl(-0.5); + fprintf( stdout, "lrintl : %Lf\n", f1); + f1 = lrintl(0.5); + fprintf( stdout, "lrintl : %Lf\n", f1); + + f1 = lroundl(-0.5); + fprintf( stdout, "lroundl : %Lf\n", f1); + f1 = lroundl(0.5); + fprintf( stdout, "lroundl : %Lf\n", f1); + + f1 = modfl(42.0,&f2); + fprintf( stdout, "lmodfl : %Lf\n", f1); + + f1 = nanl(""); + fprintf( stdout, "nanl : %Lf\n", f1); + + f1 = nearbyintl(1.5); + fprintf( stdout, "nearbyintl : %Lf\n", f1); + + f1 = nextafterl(1.5,2.0); + fprintf( stdout, "nextafterl : %Lf\n", f1); + + f1 = powl(3.01, 2.0); + fprintf( stdout, "powl : %Lf\n", f1); + + f1 = remainderl(3.01,2.0); + fprintf( stdout, "remainderl : %Lf\n", f1); + + f1 = remquol(29.0,3.0,&i1); + fprintf( stdout, "remquol : %Lf\n", f1); + + f1 = rintl(0.5); + fprintf( stdout, "rintl : %Lf\n", f1); + f1 = rintl(-0.5); + fprintf( stdout, "rintl : %Lf\n", f1); + + f1 = roundl(0.5); + fprintf( stdout, "roundl : %Lf\n", f1); + f1 = roundl(-0.5); + fprintf( stdout, "roundl : %Lf\n", f1); + + f1 = scalblnl(1.2,3); + fprintf( stdout, "scalblnl : %Lf\n", f1); + + f1 = scalbnl(1.2,3); + fprintf( stdout, "scalbnl : %Lf\n", f1); + + /* no type-specific variant */ + i1 = signbit(1.0); + fprintf( stdout, "signbit : %i\n", i1); + + f1 = sinl(M_PI_4); + fprintf( stdout, "sinl : %Lf\n", f1); + + f1 = sinhl(M_PI_4); + fprintf( stdout, "sinhl : %Lf\n", f1); + + f1 = sqrtl(9.0); + fprintf( stdout, "sqrtl : %Lf\n", f1); + + f1 = tanl(M_PI_4); + fprintf( stdout, "tanl : %Lf\n", f1); + + f1 = tanhl(M_PI_4); + fprintf( stdout, "tanhl : %Lf\n", f1); + + f1 = tgammal(2.1); + fprintf( stdout, "tgammal : %Lf\n", f1); + + f1 = truncl(3.5); + fprintf( stdout, "truncl : %Lf\n", f1); + + f1 = y0l(1.2); + fprintf( stdout, "y0l : %Lf\n", f1); + + f1 = y1l(1.2); + fprintf( stdout, "y1l : %Lf\n", f1); + + f1 = ynl(3,1.2); + fprintf( stdout, "ynl : %Lf\n", f1); +#endif +} -- cgit v1.2.3 From 1831fd1272a352bf27d2e68cf040a8700fb8d78a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ralf=20Cors=C3=A9pius?= Date: Thu, 24 May 2012 07:15:40 +0200 Subject: Revert "Revert "libtests/math*: Avoid generated files"" This reverts commit 87c8d8aba6a9582ca5eeacd332b5b107e26ea50f. --- testsuites/libtests/math/Makefile.am | 8 +- testsuites/libtests/math/domath.c | 275 +------------------------------ testsuites/libtests/math/domath.h | 293 ++++++++++++++++++++++++++++++++++ testsuites/libtests/math/domath.in | 287 --------------------------------- testsuites/libtests/mathf/Makefile.am | 8 +- testsuites/libtests/mathf/domathf.c | 276 +------------------------------- testsuites/libtests/mathl/Makefile.am | 9 +- testsuites/libtests/mathl/domathl.c | 276 +------------------------------- 8 files changed, 316 insertions(+), 1116 deletions(-) create mode 100644 testsuites/libtests/math/domath.h delete mode 100644 testsuites/libtests/math/domath.in diff --git a/testsuites/libtests/math/Makefile.am b/testsuites/libtests/math/Makefile.am index 5a8a010810..835bd931a5 100644 --- a/testsuites/libtests/math/Makefile.am +++ b/testsuites/libtests/math/Makefile.am @@ -1,12 +1,5 @@ rtems_tests_PROGRAMS = math math_SOURCES = init.c domath.c -EXTRA_DIST = $(srcdir)/../math/domath.in - -$(srcdir)/domath.c: $(srcdir)/../math/domath.in - sed -e 's,[@]FTYPE[@],double,' \ - -e 's,[@]FSUFFIX[@], ,g' \ - -e 's,[@]FGUARD[@],NO_DOUBLE,' \ - $(srcdir)/../math/domath.in > $(srcdir)/domath.c dist_rtems_tests_DATA = math.scn @@ -14,6 +7,7 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg include $(top_srcdir)/../automake/compile.am include $(top_srcdir)/../automake/leaf.am +math_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/math math_LDADD = -lm LINK_OBJS = $(math_OBJECTS) $(math_LDADD) diff --git a/testsuites/libtests/math/domath.c b/testsuites/libtests/math/domath.c index cc145142f3..3485fb210c 100644 --- a/testsuites/libtests/math/domath.c +++ b/testsuites/libtests/math/domath.c @@ -11,277 +11,14 @@ */ #ifdef HAVE_CONFIG_H -#include "config.h" + #include "config.h" #endif -#include -#include - -#ifndef M_PI_2 -#define M_PI_2 1.57079632679489661923 -#endif - -#ifndef M_PI_4 -#define M_PI_4 0.78539816339744830962 +#ifdef NO_DOUBLE + #define PROVIDE_EMPTY_FUNC #endif -extern void domath (void); - -void -domath (void) -{ -#ifndef NO_DOUBLE - double f1; - double f2; - - int i1; - - f1 = acos (0.0); - fprintf( stdout, "acos : %f\n", f1); - - f1 = acosh (0.0); - fprintf( stdout, "acosh : %f\n", f1); - - f1 = asin (1.0); - fprintf( stdout, "asin : %f\n", f1); - - f1 = asinh (1.0); - fprintf( stdout, "asinh : %f\n", f1); - - f1 = atan (M_PI_4); - fprintf( stdout, "atan : %f\n", f1); - - f1 = atan2 (2.3, 2.3); - fprintf( stdout, "atan2 : %f\n", f1); - - f1 = atanh (1.0); - fprintf( stdout, "atanh : %f\n", f1); - - f1 = cbrt (27.0); - fprintf( stdout, "cbrt : %f\n", f1); - - f1 = ceil (3.5); - fprintf( stdout, "ceil : %f\n", f1); - - f1 = copysign (3.5, -2.5); - fprintf( stdout, "copysign : %f\n", f1); - - f1 = cos (M_PI_2); - fprintf( stdout, "cos : %f\n", f1); - - f1 = cosh (M_PI_2); - fprintf( stdout, "cosh : %f\n", f1); - - f1 = erf (42.0); - fprintf( stdout, "erf : %f\n", f1); - - f1 = erfc (42.0); - fprintf( stdout, "erfc : %f\n", f1); - - f1 = exp (0.42); - fprintf( stdout, "exp : %f\n", f1); - - f1 = exp2 (0.42); - fprintf( stdout, "exp2 : %f\n", f1); - - f1 = expm1 (0.00042); - fprintf( stdout, "expm1 : %f\n", f1); - - f1 = fabs (-1.123); - fprintf( stdout, "fabs : %f\n", f1); - - f1 = fdim (1.123, 2.123); - fprintf( stdout, "fdim : %f\n", f1); - - f1 = floor (0.5); - fprintf( stdout, "floor : %f\n", f1); - f1 = floor (-0.5); - fprintf( stdout, "floor : %f\n", f1); - - f1 = fma (2.1, 2.2, 3.01); - fprintf( stdout, "fma : %f\n", f1); - - f1 = fmax (-0.42, 0.42); - fprintf( stdout, "fmax : %f\n", f1); - - f1 = fmin (-0.42, 0.42); - fprintf( stdout, "fmin : %f\n", f1); - - f1 = fmod (42.0, 3.0); - fprintf( stdout, "fmod : %f\n", f1); - - /* no type-specific variant */ - i1 = fpclassify(1.0); - fprintf( stdout, "fpclassify : %d\n", i1); - - f1 = frexp (42.0, &i1); - fprintf( stdout, "frexp : %f\n", f1); - - f1 = hypot (42.0, 42.0); - fprintf( stdout, "hypot : %f\n", f1); - - i1 = ilogb (42.0); - fprintf( stdout, "ilogb : %d\n", i1); - - /* no type-specific variant */ - i1 = isfinite(3.0); - fprintf( stdout, "isfinite : %d\n", i1); - - /* no type-specific variant */ - i1 = isgreater(3.0, 3.1); - fprintf( stdout, "isgreater : %d\n", i1); - - /* no type-specific variant */ - i1 = isgreaterequal(3.0, 3.1); - fprintf( stdout, "isgreaterequal : %d\n", i1); - - /* no type-specific variant */ - i1 = isinf(3.0); - fprintf( stdout, "isinf : %d\n", i1); - - /* no type-specific variant */ - i1 = isless(3.0, 3.1); - fprintf( stdout, "isless : %d\n", i1); - - /* no type-specific variant */ - i1 = islessequal(3.0, 3.1); - fprintf( stdout, "islessequal : %d\n", i1); - - /* no type-specific variant */ - i1 = islessgreater(3.0, 3.1); - fprintf( stdout, "islessgreater : %d\n", i1); +#define FTYPE double +#define PRI "%f" - /* no type-specific variant */ - i1 = isnan(0.0); - fprintf( stdout, "isnan : %d\n", i1); - - /* no type-specific variant */ - i1 = isnormal(3.0); - fprintf( stdout, "isnormal : %d\n", i1); - - /* no type-specific variant */ - f1 = isunordered(1.0, 2.0); - fprintf( stdout, "isunordered : %d\n", i1); - - f1 = j0 (1.2); - fprintf( stdout, "j0 : %f\n", f1); - - f1 = j1 (1.2); - fprintf( stdout, "j1 : %f\n", f1); - - f1 = jn (2,1.2); - fprintf( stdout, "jn : %f\n", f1); - - f1 = ldexp (1.2,3); - fprintf( stdout, "ldexp : %f\n", f1); - - f1 = lgamma (42.0); - fprintf( stdout, "lgamma : %f\n", f1); - - f1 = llrint (-0.5); - fprintf( stdout, "llrint : %f\n", f1); - f1 = llrint (0.5); - fprintf( stdout, "llrint : %f\n", f1); - - f1 = llround (-0.5); - fprintf( stdout, "lround : %f\n", f1); - f1 = llround (0.5); - fprintf( stdout, "lround : %f\n", f1); - - f1 = log (42.0); - fprintf( stdout, "log : %f\n", f1); - - f1 = log10 (42.0); - fprintf( stdout, "log10 : %f\n", f1); - - f1 = log1p (42.0); - fprintf( stdout, "log1p : %f\n", f1); - - f1 = log2 (42.0); - fprintf( stdout, "log2 : %f\n", f1); - - f1 = logb (42.0); - fprintf( stdout, "logb : %f\n", f1); - - f1 = lrint (-0.5); - fprintf( stdout, "lrint : %f\n", f1); - f1 = lrint (0.5); - fprintf( stdout, "lrint : %f\n", f1); - - f1 = lround (-0.5); - fprintf( stdout, "lround : %f\n", f1); - f1 = lround (0.5); - fprintf( stdout, "lround : %f\n", f1); - - f1 = modf (42.0,&f2); - fprintf( stdout, "lmodf : %f\n", f1); - - f1 = nan (""); - fprintf( stdout, "nan : %f\n", f1); - - f1 = nearbyint (1.5); - fprintf( stdout, "nearbyint : %f\n", f1); - - f1 = nextafter (1.5,2.0); - fprintf( stdout, "nextafter : %f\n", f1); - - f1 = pow (3.01, 2.0); - fprintf( stdout, "pow : %f\n", f1); - - f1 = remainder (3.01,2.0); - fprintf( stdout, "remainder : %f\n", f1); - - f1 = remquo (29.0,3.0,&i1); - fprintf( stdout, "remquo : %f\n", f1); - - f1 = rint (0.5); - fprintf( stdout, "rint : %f\n", f1); - f1 = rint (-0.5); - fprintf( stdout, "rint : %f\n", f1); - - f1 = round (0.5); - fprintf( stdout, "round : %f\n", f1); - f1 = round (-0.5); - fprintf( stdout, "round : %f\n", f1); - - f1 = scalbln (1.2,3); - fprintf( stdout, "scalbln : %f\n", f1); - - f1 = scalbn (1.2,3); - fprintf( stdout, "scalbn : %f\n", f1); - - /* no type-specific variant */ - i1 = signbit(1.0); - fprintf( stdout, "signbit : %i\n", i1); - - f1 = sin (M_PI_4); - fprintf( stdout, "sin : %f\n", f1); - - f1 = sinh (M_PI_4); - fprintf( stdout, "sinh : %f\n", f1); - - f1 = sqrt (9.0); - fprintf( stdout, "sqrt : %f\n", f1); - - f1 = tan (M_PI_4); - fprintf( stdout, "tan : %f\n", f1); - - f1 = tanh (M_PI_4); - fprintf( stdout, "tanh : %f\n", f1); - - f1 = tgamma (2.1); - fprintf( stdout, "tgamma : %f\n", f1); - - f1 = trunc (3.5); - fprintf( stdout, "trunc : %f\n", f1); - - f1 = y0 (1.2); - fprintf( stdout, "y0 : %f\n", f1); - - f1 = y1 (1.2); - fprintf( stdout, "y1 : %f\n", f1); - - f1 = yn (3,1.2); - fprintf( stdout, "yn : %f\n", f1); -#endif -} +#include diff --git a/testsuites/libtests/math/domath.h b/testsuites/libtests/math/domath.h new file mode 100644 index 0000000000..4915577d57 --- /dev/null +++ b/testsuites/libtests/math/domath.h @@ -0,0 +1,293 @@ +/* + * Copyright (c) 2010, 2011 by + * Ralf Corsepius, Ulm/Germany. All rights reserved. + * + * Permission to use, copy, modify, and distribute this software + * is freely granted, provided that this notice is preserved. + */ + +#include +#include + +#ifndef M_PI_2 +#define M_PI_2 1.57079632679489661923 +#endif + +#ifndef M_PI_4 +#define M_PI_4 0.78539816339744830962 +#endif + +#define CONCAT(x, y) x ## y +#define XCONCAT(x, y) CONCAT(x, y) + +#define STRINGIFY(x, y) # x # y +#define XSTRINGIFY(x, y) STRINGIFY(x, y) + +#ifdef SUFFIX + #define FUNC(name) XCONCAT(name, SUFFIX) + #define STR(name) XSTRINGIFY(name, SUFFIX) +#else + #define FUNC(name) XCONCAT(name, ) + #define STR(name) XSTRINGIFY(name, ) " " +#endif + +extern void FUNC(domath) (void); + +void +FUNC(domath) (void) +{ +#ifndef PROVIDE_EMPTY_FUNC + FTYPE f1; + FTYPE f2; + + int i1; + + f1 = FUNC(acos) (0.0); + fprintf( stdout, STR(acos) " : " PRI "\n", f1); + + f1 = FUNC(acosh) (0.0); + fprintf( stdout, STR(acosh) " : " PRI "\n", f1); + + f1 = FUNC(asin) (1.0); + fprintf( stdout, STR(asin) " : " PRI "\n", f1); + + f1 = FUNC(asinh) (1.0); + fprintf( stdout, STR(asinh) " : " PRI "\n", f1); + + f1 = FUNC(atan) (M_PI_4); + fprintf( stdout, STR(atan) " : " PRI "\n", f1); + + f1 = FUNC(atan2) (2.3, 2.3); + fprintf( stdout, STR(atan2) " : " PRI "\n", f1); + + f1 = FUNC(atanh) (1.0); + fprintf( stdout, STR(atanh) " : " PRI "\n", f1); + + f1 = FUNC(cbrt) (27.0); + fprintf( stdout, STR(cbrt) " : " PRI "\n", f1); + + f1 = FUNC(ceil) (3.5); + fprintf( stdout, STR(ceil) " : " PRI "\n", f1); + + f1 = FUNC(copysign) (3.5, -2.5); + fprintf( stdout, STR(copysign) " : " PRI "\n", f1); + + f1 = FUNC(cos) (M_PI_2); + fprintf( stdout, STR(cos) " : " PRI "\n", f1); + + f1 = FUNC(cosh) (M_PI_2); + fprintf( stdout, STR(cosh) " : " PRI "\n", f1); + + f1 = FUNC(erf) (42.0); + fprintf( stdout, STR(erf) " : " PRI "\n", f1); + + f1 = FUNC(erfc) (42.0); + fprintf( stdout, STR(erfc) " : " PRI "\n", f1); + + f1 = FUNC(exp) (0.42); + fprintf( stdout, STR(exp) " : " PRI "\n", f1); + + f1 = FUNC(exp2) (0.42); + fprintf( stdout, STR(exp2) " : " PRI "\n", f1); + + f1 = FUNC(expm1) (0.00042); + fprintf( stdout, STR(expm1) " : " PRI "\n", f1); + + f1 = FUNC(fabs) (-1.123); + fprintf( stdout, STR(fabs) " : " PRI "\n", f1); + + f1 = FUNC(fdim) (1.123, 2.123); + fprintf( stdout, STR(fdim) " : " PRI "\n", f1); + + f1 = FUNC(floor) (0.5); + fprintf( stdout, STR(floor) " : " PRI "\n", f1); + f1 = FUNC(floor) (-0.5); + fprintf( stdout, STR(floor) " : " PRI "\n", f1); + + f1 = FUNC(fma) (2.1, 2.2, 3.01); + fprintf( stdout, STR(fma) " : " PRI "\n", f1); + + f1 = FUNC(fmax) (-0.42, 0.42); + fprintf( stdout, STR(fmax) " : " PRI "\n", f1); + + f1 = FUNC(fmin) (-0.42, 0.42); + fprintf( stdout, STR(fmin) " : " PRI "\n", f1); + + f1 = FUNC(fmod) (42.0, 3.0); + fprintf( stdout, STR(fmod) " : " PRI "\n", f1); + + /* no type-specific variant */ + i1 = fpclassify(1.0); + fprintf( stdout, "fpclassify : %d\n", i1); + + f1 = FUNC(frexp) (42.0, &i1); + fprintf( stdout, STR(frexp) " : " PRI "\n", f1); + + f1 = FUNC(hypot) (42.0, 42.0); + fprintf( stdout, STR(hypot) " : " PRI "\n", f1); + + i1 = FUNC(ilogb) (42.0); + fprintf( stdout, STR(ilogb) " : %d\n", i1); + + /* no type-specific variant */ + i1 = isfinite(3.0); + fprintf( stdout, "isfinite : %d\n", i1); + + /* no type-specific variant */ + i1 = isgreater(3.0, 3.1); + fprintf( stdout, "isgreater : %d\n", i1); + + /* no type-specific variant */ + i1 = isgreaterequal(3.0, 3.1); + fprintf( stdout, "isgreaterequal : %d\n", i1); + + /* no type-specific variant */ + i1 = isinf(3.0); + fprintf( stdout, "isinf : %d\n", i1); + + /* no type-specific variant */ + i1 = isless(3.0, 3.1); + fprintf( stdout, "isless : %d\n", i1); + + /* no type-specific variant */ + i1 = islessequal(3.0, 3.1); + fprintf( stdout, "islessequal : %d\n", i1); + + /* no type-specific variant */ + i1 = islessgreater(3.0, 3.1); + fprintf( stdout, "islessgreater : %d\n", i1); + + /* no type-specific variant */ + i1 = isnan(0.0); + fprintf( stdout, "isnan : %d\n", i1); + + /* no type-specific variant */ + i1 = isnormal(3.0); + fprintf( stdout, "isnormal : %d\n", i1); + + /* no type-specific variant */ + f1 = isunordered(1.0, 2.0); + fprintf( stdout, "isunordered : %d\n", i1); + + f1 = FUNC(j0) (1.2); + fprintf( stdout, STR(j0) " : " PRI "\n", f1); + + f1 = FUNC(j1) (1.2); + fprintf( stdout, STR(j1) " : " PRI "\n", f1); + + f1 = FUNC(jn) (2,1.2); + fprintf( stdout, STR(jn) " : " PRI "\n", f1); + + f1 = FUNC(ldexp) (1.2,3); + fprintf( stdout, STR(ldexp) " : " PRI "\n", f1); + + f1 = FUNC(lgamma) (42.0); + fprintf( stdout, STR(lgamma) " : " PRI "\n", f1); + + f1 = FUNC(llrint) (-0.5); + fprintf( stdout, STR(llrint) " : " PRI "\n", f1); + f1 = FUNC(llrint) (0.5); + fprintf( stdout, STR(llrint) " : " PRI "\n", f1); + + f1 = FUNC(llround) (-0.5); + fprintf( stdout, STR(lround) " : " PRI "\n", f1); + f1 = FUNC(llround) (0.5); + fprintf( stdout, STR(lround) " : " PRI "\n", f1); + + f1 = FUNC(log) (42.0); + fprintf( stdout, STR(log) " : " PRI "\n", f1); + + f1 = FUNC(log10) (42.0); + fprintf( stdout, STR(log10) " : " PRI "\n", f1); + + f1 = FUNC(log1p) (42.0); + fprintf( stdout, STR(log1p) " : " PRI "\n", f1); + + f1 = FUNC(log2) (42.0); + fprintf( stdout, STR(log2) " : " PRI "\n", f1); + + f1 = FUNC(logb) (42.0); + fprintf( stdout, STR(logb) " : " PRI "\n", f1); + + f1 = FUNC(lrint) (-0.5); + fprintf( stdout, STR(lrint) " : " PRI "\n", f1); + f1 = FUNC(lrint) (0.5); + fprintf( stdout, STR(lrint) " : " PRI "\n", f1); + + f1 = FUNC(lround) (-0.5); + fprintf( stdout, STR(lround) " : " PRI "\n", f1); + f1 = FUNC(lround) (0.5); + fprintf( stdout, STR(lround) " : " PRI "\n", f1); + + f1 = FUNC(modf) (42.0,&f2); + fprintf( stdout, STR(lmodf) " : " PRI "\n", f1); + + f1 = FUNC(nan) (""); + fprintf( stdout, STR(nan) " : " PRI "\n", f1); + + f1 = FUNC(nearbyint) (1.5); + fprintf( stdout, STR(nearbyint) " : " PRI "\n", f1); + + f1 = FUNC(nextafter) (1.5,2.0); + fprintf( stdout, STR(nextafter) " : " PRI "\n", f1); + + f1 = FUNC(pow) (3.01, 2.0); + fprintf( stdout, STR(pow) " : " PRI "\n", f1); + + f1 = FUNC(remainder) (3.01,2.0); + fprintf( stdout, STR(remainder) " : " PRI "\n", f1); + + f1 = FUNC(remquo) (29.0,3.0,&i1); + fprintf( stdout, STR(remquo) " : " PRI "\n", f1); + + f1 = FUNC(rint) (0.5); + fprintf( stdout, STR(rint) " : " PRI "\n", f1); + f1 = FUNC(rint) (-0.5); + fprintf( stdout, STR(rint) " : " PRI "\n", f1); + + f1 = FUNC(round) (0.5); + fprintf( stdout, STR(round) " : " PRI "\n", f1); + f1 = FUNC(round) (-0.5); + fprintf( stdout, STR(round) " : " PRI "\n", f1); + + f1 = FUNC(scalbln) (1.2,3); + fprintf( stdout, STR(scalbln) " : " PRI "\n", f1); + + f1 = FUNC(scalbn) (1.2,3); + fprintf( stdout, STR(scalbn) " : " PRI "\n", f1); + + /* no type-specific variant */ + i1 = signbit(1.0); + fprintf( stdout, "signbit : %i\n", i1); + + f1 = FUNC(sin) (M_PI_4); + fprintf( stdout, STR(sin) " : " PRI "\n", f1); + + f1 = FUNC(sinh) (M_PI_4); + fprintf( stdout, STR(sinh) " : " PRI "\n", f1); + + f1 = FUNC(sqrt) (9.0); + fprintf( stdout, STR(sqrt) " : " PRI "\n", f1); + + f1 = FUNC(tan) (M_PI_4); + fprintf( stdout, STR(tan) " : " PRI "\n", f1); + + f1 = FUNC(tanh) (M_PI_4); + fprintf( stdout, STR(tanh) " : " PRI "\n", f1); + + f1 = FUNC(tgamma) (2.1); + fprintf( stdout, STR(tgamma) " : " PRI "\n", f1); + + f1 = FUNC(trunc) (3.5); + fprintf( stdout, STR(trunc) " : " PRI "\n", f1); + + f1 = FUNC(y0) (1.2); + fprintf( stdout, STR(y0) " : " PRI "\n", f1); + + f1 = FUNC(y1) (1.2); + fprintf( stdout, STR(y1) " : " PRI "\n", f1); + + f1 = FUNC(yn) (3,1.2); + fprintf( stdout, STR(yn) " : " PRI "\n", f1); +#endif +} diff --git a/testsuites/libtests/math/domath.in b/testsuites/libtests/math/domath.in deleted file mode 100644 index 92bafff276..0000000000 --- a/testsuites/libtests/math/domath.in +++ /dev/null @@ -1,287 +0,0 @@ -/* - * Copyright (c) 2010, 2011 by - * Ralf Corsepius, Ulm/Germany. All rights reserved. - * - * Permission to use, copy, modify, and distribute this software - * is freely granted, provided that this notice is preserved. - */ - -/* - * Try to compile and link against POSIX math routines. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include - -#ifndef M_PI_2 -#define M_PI_2 1.57079632679489661923 -#endif - -#ifndef M_PI_4 -#define M_PI_4 0.78539816339744830962 -#endif - -extern void domath@FSUFFIX@ (void); - -void -domath@FSUFFIX@ (void) -{ -#ifndef @FGUARD@ - @FTYPE@ f1; - @FTYPE@ f2; - - int i1; - - f1 = acos@FSUFFIX@(0.0); - fprintf( stdout, "acos@FSUFFIX@ : %f\n", f1); - - f1 = acosh@FSUFFIX@(0.0); - fprintf( stdout, "acosh@FSUFFIX@ : %f\n", f1); - - f1 = asin@FSUFFIX@(1.0); - fprintf( stdout, "asin@FSUFFIX@ : %f\n", f1); - - f1 = asinh@FSUFFIX@(1.0); - fprintf( stdout, "asinh@FSUFFIX@ : %f\n", f1); - - f1 = atan@FSUFFIX@(M_PI_4); - fprintf( stdout, "atan@FSUFFIX@ : %f\n", f1); - - f1 = atan2@FSUFFIX@(2.3, 2.3); - fprintf( stdout, "atan2@FSUFFIX@ : %f\n", f1); - - f1 = atanh@FSUFFIX@(1.0); - fprintf( stdout, "atanh@FSUFFIX@ : %f\n", f1); - - f1 = cbrt@FSUFFIX@(27.0); - fprintf( stdout, "cbrt@FSUFFIX@ : %f\n", f1); - - f1 = ceil@FSUFFIX@(3.5); - fprintf( stdout, "ceil@FSUFFIX@ : %f\n", f1); - - f1 = copysign@FSUFFIX@(3.5, -2.5); - fprintf( stdout, "copysign@FSUFFIX@ : %f\n", f1); - - f1 = cos@FSUFFIX@(M_PI_2); - fprintf( stdout, "cos@FSUFFIX@ : %f\n", f1); - - f1 = cosh@FSUFFIX@(M_PI_2); - fprintf( stdout, "cosh@FSUFFIX@ : %f\n", f1); - - f1 = erf@FSUFFIX@(42.0); - fprintf( stdout, "erf@FSUFFIX@ : %f\n", f1); - - f1 = erfc@FSUFFIX@(42.0); - fprintf( stdout, "erfc@FSUFFIX@ : %f\n", f1); - - f1 = exp@FSUFFIX@(0.42); - fprintf( stdout, "exp@FSUFFIX@ : %f\n", f1); - - f1 = exp2@FSUFFIX@(0.42); - fprintf( stdout, "exp2@FSUFFIX@ : %f\n", f1); - - f1 = expm1@FSUFFIX@(0.00042); - fprintf( stdout, "expm1@FSUFFIX@ : %f\n", f1); - - f1 = fabs@FSUFFIX@(-1.123); - fprintf( stdout, "fabs@FSUFFIX@ : %f\n", f1); - - f1 = fdim@FSUFFIX@(1.123, 2.123); - fprintf( stdout, "fdim@FSUFFIX@ : %f\n", f1); - - f1 = floor@FSUFFIX@(0.5); - fprintf( stdout, "floor@FSUFFIX@ : %f\n", f1); - f1 = floor@FSUFFIX@(-0.5); - fprintf( stdout, "floor@FSUFFIX@ : %f\n", f1); - - f1 = fma@FSUFFIX@(2.1, 2.2, 3.01); - fprintf( stdout, "fma@FSUFFIX@ : %f\n", f1); - - f1 = fmax@FSUFFIX@(-0.42, 0.42); - fprintf( stdout, "fmax@FSUFFIX@ : %f\n", f1); - - f1 = fmin@FSUFFIX@(-0.42, 0.42); - fprintf( stdout, "fmin@FSUFFIX@ : %f\n", f1); - - f1 = fmod@FSUFFIX@(42.0, 3.0); - fprintf( stdout, "fmod@FSUFFIX@ : %f\n", f1); - - /* no type-specific variant */ - i1 = fpclassify(1.0); - fprintf( stdout, "fpclassify : %d\n", i1); - - f1 = frexp@FSUFFIX@(42.0, &i1); - fprintf( stdout, "frexp@FSUFFIX@ : %f\n", f1); - - f1 = hypot@FSUFFIX@(42.0, 42.0); - fprintf( stdout, "hypot@FSUFFIX@ : %f\n", f1); - - i1 = ilogb@FSUFFIX@(42.0); - fprintf( stdout, "ilogb@FSUFFIX@ : %d\n", i1); - - /* no type-specific variant */ - i1 = isfinite(3.0); - fprintf( stdout, "isfinite : %d\n", i1); - - /* no type-specific variant */ - i1 = isgreater(3.0, 3.1); - fprintf( stdout, "isgreater : %d\n", i1); - - /* no type-specific variant */ - i1 = isgreaterequal(3.0, 3.1); - fprintf( stdout, "isgreaterequal : %d\n", i1); - - /* no type-specific variant */ - i1 = isinf(3.0); - fprintf( stdout, "isinf : %d\n", i1); - - /* no type-specific variant */ - i1 = isless(3.0, 3.1); - fprintf( stdout, "isless : %d\n", i1); - - /* no type-specific variant */ - i1 = islessequal(3.0, 3.1); - fprintf( stdout, "islessequal : %d\n", i1); - - /* no type-specific variant */ - i1 = islessgreater(3.0, 3.1); - fprintf( stdout, "islessgreater : %d\n", i1); - - /* no type-specific variant */ - i1 = isnan(0.0); - fprintf( stdout, "isnan : %d\n", i1); - - /* no type-specific variant */ - i1 = isnormal(3.0); - fprintf( stdout, "isnormal : %d\n", i1); - - /* no type-specific variant */ - f1 = isunordered(1.0, 2.0); - fprintf( stdout, "isunordered : %d\n", i1); - - f1 = j0@FSUFFIX@(1.2); - fprintf( stdout, "j0@FSUFFIX@ : %f\n", f1); - - f1 = j1@FSUFFIX@(1.2); - fprintf( stdout, "j1@FSUFFIX@ : %f\n", f1); - - f1 = jn@FSUFFIX@(2,1.2); - fprintf( stdout, "jn@FSUFFIX@ : %f\n", f1); - - f1 = ldexp@FSUFFIX@(1.2,3); - fprintf( stdout, "ldexp@FSUFFIX@ : %f\n", f1); - - f1 = lgamma@FSUFFIX@(42.0); - fprintf( stdout, "lgamma@FSUFFIX@ : %f\n", f1); - - f1 = llrint@FSUFFIX@(-0.5); - fprintf( stdout, "llrint@FSUFFIX@ : %f\n", f1); - f1 = llrint@FSUFFIX@(0.5); - fprintf( stdout, "llrint@FSUFFIX@ : %f\n", f1); - - f1 = llround@FSUFFIX@(-0.5); - fprintf( stdout, "lround@FSUFFIX@ : %f\n", f1); - f1 = llround@FSUFFIX@(0.5); - fprintf( stdout, "lround@FSUFFIX@ : %f\n", f1); - - f1 = log@FSUFFIX@(42.0); - fprintf( stdout, "log@FSUFFIX@ : %f\n", f1); - - f1 = log10@FSUFFIX@(42.0); - fprintf( stdout, "log10@FSUFFIX@ : %f\n", f1); - - f1 = log1p@FSUFFIX@(42.0); - fprintf( stdout, "log1p@FSUFFIX@ : %f\n", f1); - - f1 = log2@FSUFFIX@(42.0); - fprintf( stdout, "log2@FSUFFIX@ : %f\n", f1); - - f1 = logb@FSUFFIX@(42.0); - fprintf( stdout, "logb@FSUFFIX@ : %f\n", f1); - - f1 = lrint@FSUFFIX@(-0.5); - fprintf( stdout, "lrint@FSUFFIX@ : %f\n", f1); - f1 = lrint@FSUFFIX@(0.5); - fprintf( stdout, "lrint@FSUFFIX@ : %f\n", f1); - - f1 = lround@FSUFFIX@(-0.5); - fprintf( stdout, "lround@FSUFFIX@ : %f\n", f1); - f1 = lround@FSUFFIX@(0.5); - fprintf( stdout, "lround@FSUFFIX@ : %f\n", f1); - - f1 = modf@FSUFFIX@(42.0,&f2); - fprintf( stdout, "lmodf@FSUFFIX@ : %f\n", f1); - - f1 = nan@FSUFFIX@(""); - fprintf( stdout, "nan@FSUFFIX@ : %f\n", f1); - - f1 = nearbyint@FSUFFIX@(1.5); - fprintf( stdout, "nearbyint@FSUFFIX@ : %f\n", f1); - - f1 = nextafter@FSUFFIX@(1.5,2.0); - fprintf( stdout, "nextafter@FSUFFIX@ : %f\n", f1); - - f1 = pow@FSUFFIX@(3.01, 2.0); - fprintf( stdout, "pow@FSUFFIX@ : %f\n", f1); - - f1 = remainder@FSUFFIX@(3.01,2.0); - fprintf( stdout, "remainder@FSUFFIX@ : %f\n", f1); - - f1 = remquo@FSUFFIX@(29.0,3.0,&i1); - fprintf( stdout, "remquo@FSUFFIX@ : %f\n", f1); - - f1 = rint@FSUFFIX@(0.5); - fprintf( stdout, "rint@FSUFFIX@ : %f\n", f1); - f1 = rint@FSUFFIX@(-0.5); - fprintf( stdout, "rint@FSUFFIX@ : %f\n", f1); - - f1 = round@FSUFFIX@(0.5); - fprintf( stdout, "round@FSUFFIX@ : %f\n", f1); - f1 = round@FSUFFIX@(-0.5); - fprintf( stdout, "round@FSUFFIX@ : %f\n", f1); - - f1 = scalbln@FSUFFIX@(1.2,3); - fprintf( stdout, "scalbln@FSUFFIX@ : %f\n", f1); - - f1 = scalbn@FSUFFIX@(1.2,3); - fprintf( stdout, "scalbn@FSUFFIX@ : %f\n", f1); - - /* no type-specific variant */ - i1 = signbit(1.0); - fprintf( stdout, "signbit : %i\n", i1); - - f1 = sin@FSUFFIX@(M_PI_4); - fprintf( stdout, "sin@FSUFFIX@ : %f\n", f1); - - f1 = sinh@FSUFFIX@(M_PI_4); - fprintf( stdout, "sinh@FSUFFIX@ : %f\n", f1); - - f1 = sqrt@FSUFFIX@(9.0); - fprintf( stdout, "sqrt@FSUFFIX@ : %f\n", f1); - - f1 = tan@FSUFFIX@(M_PI_4); - fprintf( stdout, "tan@FSUFFIX@ : %f\n", f1); - - f1 = tanh@FSUFFIX@(M_PI_4); - fprintf( stdout, "tanh@FSUFFIX@ : %f\n", f1); - - f1 = tgamma@FSUFFIX@(2.1); - fprintf( stdout, "tgamma@FSUFFIX@ : %f\n", f1); - - f1 = trunc@FSUFFIX@(3.5); - fprintf( stdout, "trunc@FSUFFIX@ : %f\n", f1); - - f1 = y0@FSUFFIX@(1.2); - fprintf( stdout, "y0@FSUFFIX@ : %f\n", f1); - - f1 = y1@FSUFFIX@(1.2); - fprintf( stdout, "y1@FSUFFIX@ : %f\n", f1); - - f1 = yn@FSUFFIX@(3,1.2); - fprintf( stdout, "yn@FSUFFIX@ : %f\n", f1); -#endif -} diff --git a/testsuites/libtests/mathf/Makefile.am b/testsuites/libtests/mathf/Makefile.am index 0834145292..e4bd7ba10c 100644 --- a/testsuites/libtests/mathf/Makefile.am +++ b/testsuites/libtests/mathf/Makefile.am @@ -1,12 +1,5 @@ rtems_tests_PROGRAMS = mathf mathf_SOURCES = init.c domathf.c -EXTRA_DIST = $(srcdir)/../math/domath.in - -$(srcdir)/domathf.c: $(srcdir)/../math/domath.in - sed -e 's,[@]FTYPE[@],float,' \ - -e 's,[@]FSUFFIX[@],f,g' \ - -e 's,[@]FGUARD[@],NO_FLOAT,' \ - $(srcdir)/../math/domath.in > $(srcdir)/domathf.c dist_rtems_tests_DATA = mathf.scn @@ -14,6 +7,7 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg include $(top_srcdir)/../automake/compile.am include $(top_srcdir)/../automake/leaf.am +mathf_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/math mathf_LDADD = -lm LINK_OBJS = $(mathf_OBJECTS) $(mathf_LDADD) diff --git a/testsuites/libtests/mathf/domathf.c b/testsuites/libtests/mathf/domathf.c index b5db14d63a..3aece952d7 100644 --- a/testsuites/libtests/mathf/domathf.c +++ b/testsuites/libtests/mathf/domathf.c @@ -11,277 +11,15 @@ */ #ifdef HAVE_CONFIG_H -#include "config.h" + #include "config.h" #endif -#include -#include - -#ifndef M_PI_2 -#define M_PI_2 1.57079632679489661923 -#endif - -#ifndef M_PI_4 -#define M_PI_4 0.78539816339744830962 +#ifdef NO_FLOAT + #define PROVIDE_EMPTY_FUNC #endif -extern void domathf (void); - -void -domathf (void) -{ -#ifndef NO_FLOAT - float f1; - float f2; - - int i1; - - f1 = acosf(0.0); - fprintf( stdout, "acosf : %f\n", f1); - - f1 = acoshf(0.0); - fprintf( stdout, "acoshf : %f\n", f1); - - f1 = asinf(1.0); - fprintf( stdout, "asinf : %f\n", f1); - - f1 = asinhf(1.0); - fprintf( stdout, "asinhf : %f\n", f1); - - f1 = atanf(M_PI_4); - fprintf( stdout, "atanf : %f\n", f1); - - f1 = atan2f(2.3, 2.3); - fprintf( stdout, "atan2f : %f\n", f1); - - f1 = atanhf(1.0); - fprintf( stdout, "atanhf : %f\n", f1); - - f1 = cbrtf(27.0); - fprintf( stdout, "cbrtf : %f\n", f1); - - f1 = ceilf(3.5); - fprintf( stdout, "ceilf : %f\n", f1); - - f1 = copysignf(3.5, -2.5); - fprintf( stdout, "copysignf : %f\n", f1); - - f1 = cosf(M_PI_2); - fprintf( stdout, "cosf : %f\n", f1); - - f1 = coshf(M_PI_2); - fprintf( stdout, "coshf : %f\n", f1); - - f1 = erff(42.0); - fprintf( stdout, "erff : %f\n", f1); - - f1 = erfcf(42.0); - fprintf( stdout, "erfcf : %f\n", f1); - - f1 = expf(0.42); - fprintf( stdout, "expf : %f\n", f1); - - f1 = exp2f(0.42); - fprintf( stdout, "exp2f : %f\n", f1); - - f1 = expm1f(0.00042); - fprintf( stdout, "expm1f : %f\n", f1); - - f1 = fabsf(-1.123); - fprintf( stdout, "fabsf : %f\n", f1); - - f1 = fdimf(1.123, 2.123); - fprintf( stdout, "fdimf : %f\n", f1); - - f1 = floorf(0.5); - fprintf( stdout, "floorf : %f\n", f1); - f1 = floorf(-0.5); - fprintf( stdout, "floorf : %f\n", f1); - - f1 = fmaf(2.1, 2.2, 3.01); - fprintf( stdout, "fmaf : %f\n", f1); - - f1 = fmaxf(-0.42, 0.42); - fprintf( stdout, "fmaxf : %f\n", f1); - - f1 = fminf(-0.42, 0.42); - fprintf( stdout, "fminf : %f\n", f1); - - f1 = fmodf(42.0, 3.0); - fprintf( stdout, "fmodf : %f\n", f1); - - /* no type-specific variant */ - i1 = fpclassify(1.0); - fprintf( stdout, "fpclassify : %d\n", i1); - - f1 = frexpf(42.0, &i1); - fprintf( stdout, "frexpf : %f\n", f1); - - f1 = hypotf(42.0, 42.0); - fprintf( stdout, "hypotf : %f\n", f1); - - i1 = ilogbf(42.0); - fprintf( stdout, "ilogbf : %d\n", i1); - - /* no type-specific variant */ - i1 = isfinite(3.0); - fprintf( stdout, "isfinite : %d\n", i1); - - /* no type-specific variant */ - i1 = isgreater(3.0, 3.1); - fprintf( stdout, "isgreater : %d\n", i1); - - /* no type-specific variant */ - i1 = isgreaterequal(3.0, 3.1); - fprintf( stdout, "isgreaterequal : %d\n", i1); - - /* no type-specific variant */ - i1 = isinf(3.0); - fprintf( stdout, "isinf : %d\n", i1); - - /* no type-specific variant */ - i1 = isless(3.0, 3.1); - fprintf( stdout, "isless : %d\n", i1); - - /* no type-specific variant */ - i1 = islessequal(3.0, 3.1); - fprintf( stdout, "islessequal : %d\n", i1); - - /* no type-specific variant */ - i1 = islessgreater(3.0, 3.1); - fprintf( stdout, "islessgreater : %d\n", i1); +#define SUFFIX f +#define FTYPE float +#define PRI "%f" - /* no type-specific variant */ - i1 = isnan(0.0); - fprintf( stdout, "isnan : %d\n", i1); - - /* no type-specific variant */ - i1 = isnormal(3.0); - fprintf( stdout, "isnormal : %d\n", i1); - - /* no type-specific variant */ - f1 = isunordered(1.0, 2.0); - fprintf( stdout, "isunordered : %d\n", i1); - - f1 = j0f(1.2); - fprintf( stdout, "j0f : %f\n", f1); - - f1 = j1f(1.2); - fprintf( stdout, "j1f : %f\n", f1); - - f1 = jnf(2,1.2); - fprintf( stdout, "jnf : %f\n", f1); - - f1 = ldexpf(1.2,3); - fprintf( stdout, "ldexpf : %f\n", f1); - - f1 = lgammaf(42.0); - fprintf( stdout, "lgammaf : %f\n", f1); - - f1 = llrintf(-0.5); - fprintf( stdout, "llrintf : %f\n", f1); - f1 = llrintf(0.5); - fprintf( stdout, "llrintf : %f\n", f1); - - f1 = llroundf(-0.5); - fprintf( stdout, "lroundf : %f\n", f1); - f1 = llroundf(0.5); - fprintf( stdout, "lroundf : %f\n", f1); - - f1 = logf(42.0); - fprintf( stdout, "logf : %f\n", f1); - - f1 = log10f(42.0); - fprintf( stdout, "log10f : %f\n", f1); - - f1 = log1pf(42.0); - fprintf( stdout, "log1pf : %f\n", f1); - - f1 = log2f(42.0); - fprintf( stdout, "log2f : %f\n", f1); - - f1 = logbf(42.0); - fprintf( stdout, "logbf : %f\n", f1); - - f1 = lrintf(-0.5); - fprintf( stdout, "lrintf : %f\n", f1); - f1 = lrintf(0.5); - fprintf( stdout, "lrintf : %f\n", f1); - - f1 = lroundf(-0.5); - fprintf( stdout, "lroundf : %f\n", f1); - f1 = lroundf(0.5); - fprintf( stdout, "lroundf : %f\n", f1); - - f1 = modff(42.0,&f2); - fprintf( stdout, "lmodff : %f\n", f1); - - f1 = nanf(""); - fprintf( stdout, "nanf : %f\n", f1); - - f1 = nearbyintf(1.5); - fprintf( stdout, "nearbyintf : %f\n", f1); - - f1 = nextafterf(1.5,2.0); - fprintf( stdout, "nextafterf : %f\n", f1); - - f1 = powf(3.01, 2.0); - fprintf( stdout, "powf : %f\n", f1); - - f1 = remainderf(3.01,2.0); - fprintf( stdout, "remainderf : %f\n", f1); - - f1 = remquof(29.0,3.0,&i1); - fprintf( stdout, "remquof : %f\n", f1); - - f1 = rintf(0.5); - fprintf( stdout, "rintf : %f\n", f1); - f1 = rintf(-0.5); - fprintf( stdout, "rintf : %f\n", f1); - - f1 = roundf(0.5); - fprintf( stdout, "roundf : %f\n", f1); - f1 = roundf(-0.5); - fprintf( stdout, "roundf : %f\n", f1); - - f1 = scalblnf(1.2,3); - fprintf( stdout, "scalblnf : %f\n", f1); - - f1 = scalbnf(1.2,3); - fprintf( stdout, "scalbnf : %f\n", f1); - - /* no type-specific variant */ - i1 = signbit(1.0); - fprintf( stdout, "signbit : %i\n", i1); - - f1 = sinf(M_PI_4); - fprintf( stdout, "sinf : %f\n", f1); - - f1 = sinhf(M_PI_4); - fprintf( stdout, "sinhf : %f\n", f1); - - f1 = sqrtf(9.0); - fprintf( stdout, "sqrtf : %f\n", f1); - - f1 = tanf(M_PI_4); - fprintf( stdout, "tanf : %f\n", f1); - - f1 = tanhf(M_PI_4); - fprintf( stdout, "tanhf : %f\n", f1); - - f1 = tgammaf(2.1); - fprintf( stdout, "tgammaf : %f\n", f1); - - f1 = truncf(3.5); - fprintf( stdout, "truncf : %f\n", f1); - - f1 = y0f(1.2); - fprintf( stdout, "y0f : %f\n", f1); - - f1 = y1f(1.2); - fprintf( stdout, "y1f : %f\n", f1); - - f1 = ynf(3,1.2); - fprintf( stdout, "ynf : %f\n", f1); -#endif -} +#include diff --git a/testsuites/libtests/mathl/Makefile.am b/testsuites/libtests/mathl/Makefile.am index 23d21d65c0..b7a823460c 100644 --- a/testsuites/libtests/mathl/Makefile.am +++ b/testsuites/libtests/mathl/Makefile.am @@ -4,14 +4,7 @@ EXTRA_DIST = $(srcdir)/../math/domath.in # FIXME: Skip long double, not yet supported in newlib # => This test currently is a nop -mathl_CPPFLAGS = $(AM_CPPFLAGS) -DNO_LONG_DOUBLE - -$(srcdir)/domathl.c: $(srcdir)/../math/domath.in - sed -e 's,[@]FTYPE[@],long double,' \ - -e 's,[@]FSUFFIX[@],l,g' \ - -e 's,%f,%Lf,g' \ - -e 's,[@]FGUARD[@],NO_LONG_DOUBLE,' \ - $(srcdir)/../math/domath.in > $(srcdir)/domathl.c +mathl_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/math -DNO_LONG_DOUBLE dist_rtems_tests_DATA = mathl.scn diff --git a/testsuites/libtests/mathl/domathl.c b/testsuites/libtests/mathl/domathl.c index 3ff381d712..d0758dcc74 100644 --- a/testsuites/libtests/mathl/domathl.c +++ b/testsuites/libtests/mathl/domathl.c @@ -11,277 +11,15 @@ */ #ifdef HAVE_CONFIG_H -#include "config.h" + #include "config.h" #endif -#include -#include - -#ifndef M_PI_2 -#define M_PI_2 1.57079632679489661923 -#endif - -#ifndef M_PI_4 -#define M_PI_4 0.78539816339744830962 +#ifdef NO_LONG_DOUBLE + #define PROVIDE_EMPTY_FUNC #endif -extern void domathl (void); - -void -domathl (void) -{ -#ifndef NO_LONG_DOUBLE - long double f1; - long double f2; - - int i1; - - f1 = acosl(0.0); - fprintf( stdout, "acosl : %Lf\n", f1); - - f1 = acoshl(0.0); - fprintf( stdout, "acoshl : %Lf\n", f1); - - f1 = asinl(1.0); - fprintf( stdout, "asinl : %Lf\n", f1); - - f1 = asinhl(1.0); - fprintf( stdout, "asinhl : %Lf\n", f1); - - f1 = atanl(M_PI_4); - fprintf( stdout, "atanl : %Lf\n", f1); - - f1 = atan2l(2.3, 2.3); - fprintf( stdout, "atan2l : %Lf\n", f1); - - f1 = atanhl(1.0); - fprintf( stdout, "atanhl : %Lf\n", f1); - - f1 = cbrtl(27.0); - fprintf( stdout, "cbrtl : %Lf\n", f1); - - f1 = ceill(3.5); - fprintf( stdout, "ceill : %Lf\n", f1); - - f1 = copysignl(3.5, -2.5); - fprintf( stdout, "copysignl : %Lf\n", f1); - - f1 = cosl(M_PI_2); - fprintf( stdout, "cosl : %Lf\n", f1); - - f1 = coshl(M_PI_2); - fprintf( stdout, "coshl : %Lf\n", f1); - - f1 = erfl(42.0); - fprintf( stdout, "erfl : %Lf\n", f1); - - f1 = erfcl(42.0); - fprintf( stdout, "erfcl : %Lf\n", f1); - - f1 = expl(0.42); - fprintf( stdout, "expl : %Lf\n", f1); - - f1 = exp2l(0.42); - fprintf( stdout, "exp2l : %Lf\n", f1); - - f1 = expm1l(0.00042); - fprintf( stdout, "expm1l : %Lf\n", f1); - - f1 = fabsl(-1.123); - fprintf( stdout, "fabsl : %Lf\n", f1); - - f1 = fdiml(1.123, 2.123); - fprintf( stdout, "fdiml : %Lf\n", f1); - - f1 = floorl(0.5); - fprintf( stdout, "floorl : %Lf\n", f1); - f1 = floorl(-0.5); - fprintf( stdout, "floorl : %Lf\n", f1); - - f1 = fmal(2.1, 2.2, 3.01); - fprintf( stdout, "fmal : %Lf\n", f1); - - f1 = fmaxl(-0.42, 0.42); - fprintf( stdout, "fmaxl : %Lf\n", f1); - - f1 = fminl(-0.42, 0.42); - fprintf( stdout, "fminl : %Lf\n", f1); - - f1 = fmodl(42.0, 3.0); - fprintf( stdout, "fmodl : %Lf\n", f1); - - /* no type-specific variant */ - i1 = fpclassify(1.0); - fprintf( stdout, "fpclassify : %d\n", i1); - - f1 = frexpl(42.0, &i1); - fprintf( stdout, "frexpl : %Lf\n", f1); - - f1 = hypotl(42.0, 42.0); - fprintf( stdout, "hypotl : %Lf\n", f1); - - i1 = ilogbl(42.0); - fprintf( stdout, "ilogbl : %d\n", i1); - - /* no type-specific variant */ - i1 = isfinite(3.0); - fprintf( stdout, "isfinite : %d\n", i1); - - /* no type-specific variant */ - i1 = isgreater(3.0, 3.1); - fprintf( stdout, "isgreater : %d\n", i1); - - /* no type-specific variant */ - i1 = isgreaterequal(3.0, 3.1); - fprintf( stdout, "isgreaterequal : %d\n", i1); - - /* no type-specific variant */ - i1 = isinf(3.0); - fprintf( stdout, "isinf : %d\n", i1); - - /* no type-specific variant */ - i1 = isless(3.0, 3.1); - fprintf( stdout, "isless : %d\n", i1); - - /* no type-specific variant */ - i1 = islessequal(3.0, 3.1); - fprintf( stdout, "islessequal : %d\n", i1); - - /* no type-specific variant */ - i1 = islessgreater(3.0, 3.1); - fprintf( stdout, "islessgreater : %d\n", i1); +#define SUFFIX l +#define FTYPE long double +#define PRI "%Lf" - /* no type-specific variant */ - i1 = isnan(0.0); - fprintf( stdout, "isnan : %d\n", i1); - - /* no type-specific variant */ - i1 = isnormal(3.0); - fprintf( stdout, "isnormal : %d\n", i1); - - /* no type-specific variant */ - f1 = isunordered(1.0, 2.0); - fprintf( stdout, "isunordered : %d\n", i1); - - f1 = j0l(1.2); - fprintf( stdout, "j0l : %Lf\n", f1); - - f1 = j1l(1.2); - fprintf( stdout, "j1l : %Lf\n", f1); - - f1 = jnl(2,1.2); - fprintf( stdout, "jnl : %Lf\n", f1); - - f1 = ldexpl(1.2,3); - fprintf( stdout, "ldexpl : %Lf\n", f1); - - f1 = lgammal(42.0); - fprintf( stdout, "lgammal : %Lf\n", f1); - - f1 = llrintl(-0.5); - fprintf( stdout, "llrintl : %Lf\n", f1); - f1 = llrintl(0.5); - fprintf( stdout, "llrintl : %Lf\n", f1); - - f1 = llroundl(-0.5); - fprintf( stdout, "lroundl : %Lf\n", f1); - f1 = llroundl(0.5); - fprintf( stdout, "lroundl : %Lf\n", f1); - - f1 = logl(42.0); - fprintf( stdout, "logl : %Lf\n", f1); - - f1 = log10l(42.0); - fprintf( stdout, "log10l : %Lf\n", f1); - - f1 = log1pl(42.0); - fprintf( stdout, "log1pl : %Lf\n", f1); - - f1 = log2l(42.0); - fprintf( stdout, "log2l : %Lf\n", f1); - - f1 = logbl(42.0); - fprintf( stdout, "logbl : %Lf\n", f1); - - f1 = lrintl(-0.5); - fprintf( stdout, "lrintl : %Lf\n", f1); - f1 = lrintl(0.5); - fprintf( stdout, "lrintl : %Lf\n", f1); - - f1 = lroundl(-0.5); - fprintf( stdout, "lroundl : %Lf\n", f1); - f1 = lroundl(0.5); - fprintf( stdout, "lroundl : %Lf\n", f1); - - f1 = modfl(42.0,&f2); - fprintf( stdout, "lmodfl : %Lf\n", f1); - - f1 = nanl(""); - fprintf( stdout, "nanl : %Lf\n", f1); - - f1 = nearbyintl(1.5); - fprintf( stdout, "nearbyintl : %Lf\n", f1); - - f1 = nextafterl(1.5,2.0); - fprintf( stdout, "nextafterl : %Lf\n", f1); - - f1 = powl(3.01, 2.0); - fprintf( stdout, "powl : %Lf\n", f1); - - f1 = remainderl(3.01,2.0); - fprintf( stdout, "remainderl : %Lf\n", f1); - - f1 = remquol(29.0,3.0,&i1); - fprintf( stdout, "remquol : %Lf\n", f1); - - f1 = rintl(0.5); - fprintf( stdout, "rintl : %Lf\n", f1); - f1 = rintl(-0.5); - fprintf( stdout, "rintl : %Lf\n", f1); - - f1 = roundl(0.5); - fprintf( stdout, "roundl : %Lf\n", f1); - f1 = roundl(-0.5); - fprintf( stdout, "roundl : %Lf\n", f1); - - f1 = scalblnl(1.2,3); - fprintf( stdout, "scalblnl : %Lf\n", f1); - - f1 = scalbnl(1.2,3); - fprintf( stdout, "scalbnl : %Lf\n", f1); - - /* no type-specific variant */ - i1 = signbit(1.0); - fprintf( stdout, "signbit : %i\n", i1); - - f1 = sinl(M_PI_4); - fprintf( stdout, "sinl : %Lf\n", f1); - - f1 = sinhl(M_PI_4); - fprintf( stdout, "sinhl : %Lf\n", f1); - - f1 = sqrtl(9.0); - fprintf( stdout, "sqrtl : %Lf\n", f1); - - f1 = tanl(M_PI_4); - fprintf( stdout, "tanl : %Lf\n", f1); - - f1 = tanhl(M_PI_4); - fprintf( stdout, "tanhl : %Lf\n", f1); - - f1 = tgammal(2.1); - fprintf( stdout, "tgammal : %Lf\n", f1); - - f1 = truncl(3.5); - fprintf( stdout, "truncl : %Lf\n", f1); - - f1 = y0l(1.2); - fprintf( stdout, "y0l : %Lf\n", f1); - - f1 = y1l(1.2); - fprintf( stdout, "y1l : %Lf\n", f1); - - f1 = ynl(3,1.2); - fprintf( stdout, "ynl : %Lf\n", f1); -#endif -} +#include -- cgit v1.2.3 From 2a7b823a7ccc11bdbd2f500998ab2fda5c821bdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ralf=20Cors=C3=A9pius?= Date: Thu, 24 May 2012 07:16:22 +0200 Subject: Revert "Revert "libtests/complex: Avoid generated files"" This reverts commit 0c2d8ec48a116cadb86564bc1226e308e197d4c1. --- testsuites/libtests/complex/Makefile.am | 20 ----- testsuites/libtests/complex/docomplex.c | 106 ++------------------------- testsuites/libtests/complex/docomplex.h | 122 +++++++++++++++++++++++++++++++ testsuites/libtests/complex/docomplex.in | 116 ----------------------------- testsuites/libtests/complex/docomplexf.c | 107 ++------------------------- testsuites/libtests/complex/docomplexl.c | 107 ++------------------------- testsuites/libtests/complex/init.c | 4 - 7 files changed, 145 insertions(+), 437 deletions(-) create mode 100644 testsuites/libtests/complex/docomplex.h delete mode 100644 testsuites/libtests/complex/docomplex.in diff --git a/testsuites/libtests/complex/Makefile.am b/testsuites/libtests/complex/Makefile.am index 2a16eec2ce..7861d4a437 100644 --- a/testsuites/libtests/complex/Makefile.am +++ b/testsuites/libtests/complex/Makefile.am @@ -2,30 +2,10 @@ if HAS_COMPLEX rtems_tests_PROGRAMS = complex complex_SOURCES = init.c docomplex.c docomplexf.c docomplexl.c endif -EXTRA_DIST = docomplex.in # FIXME: Skip long double, not yet supported in newlib complex_CPPFLAGS = $(AM_CPPFLAGS) -DNO_LONG_DOUBLE -docomplex.c: $(srcdir)/docomplex.in - sed -e 's,[@]FTYPE[@],double,' \ - -e 's,[@]FSUFFIX[@], ,g' \ - -e 's,[@]FGUARD[@],NO_DOUBLE,' \ - $(srcdir)/docomplex.in > $(srcdir)/docomplex.c - -docomplexf.c: $(srcdir)/docomplex.in - sed -e 's,[@]FTYPE[@],float,' \ - -e 's,[@]FSUFFIX[@],f,g' \ - -e 's,[@]FGUARD[@],NO_FLOAT,' \ - $(srcdir)/docomplex.in > $(srcdir)/docomplexf.c - -docomplexl.c: $(srcdir)/docomplex.in - sed -e 's,[@]FTYPE[@],long double,' \ - -e 's,[@]FSUFFIX[@],l,g' \ - -e 's,%f,%Lf,g' \ - -e 's,[@]FGUARD[@],NO_LONG_DOUBLE,' \ - $(srcdir)/docomplex.in > $(srcdir)/docomplexl.c - dist_rtems_tests_DATA = complex.scn include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg diff --git a/testsuites/libtests/complex/docomplex.c b/testsuites/libtests/complex/docomplex.c index 7a1b96135b..4872b5d15c 100644 --- a/testsuites/libtests/complex/docomplex.c +++ b/testsuites/libtests/complex/docomplex.c @@ -11,106 +11,14 @@ */ #ifdef HAVE_CONFIG_H -#include "config.h" + #include "config.h" #endif -#include -#include - -extern void docomplex (void); - -void -docomplex (void) -{ -#ifndef NO_DOUBLE - complex double ca, cb, cc; - double f1; - - ca = 1.0 + 1.0 * I; - cb = 1.0 - 1.0 * I; - - f1 = cabs (ca); - fprintf (stdout, "cabs : %f\n", f1); - - cc = cacos (ca); - fprintf (stdout, "cacos : %f %fi\n", creal (cc), - cimag (cc)); - - cc = cacosh (ca); - fprintf (stdout, "cacosh : %f %fi\n", creal (cc), - cimag (cc)); - - f1 = carg (ca); - fprintf (stdout, "carg : %f\n", f1); - - cc = casin (ca); - fprintf (stdout, "casin : %f %fi\n", creal (cc), - cimag (cc)); - - cc = casinh (ca); - fprintf (stdout, "casinh : %f %fi\n", creal (cc), - cimag (cc)); - - cc = catan (ca); - fprintf (stdout, "catan : %f %fi\n", creal (cc), - cimag (cc)); - - cc = catanh (ca); - fprintf (stdout, "catanh : %f %fi\n", creal (cc), - cimag (cc)); - - cc = ccos (ca); - fprintf (stdout, "ccos : %f %fi\n", creal (cc), - cimag (cc)); - - cc = ccosh (ca); - fprintf (stdout, "ccosh : %f %fi\n", creal (cc), - cimag (cc)); - - cc = cexp (ca); - fprintf (stdout, "cexp : %f %fi\n", creal (cc), - cimag (cc)); - - f1 = cimag (ca); - fprintf (stdout, "cimag : %f\n", f1); - - cc = clog (ca); - fprintf (stdout, "clog : %f %fi\n", creal (cc), - cimag (cc)); - - cc = conj (ca); - fprintf (stdout, "conj : %f %fi\n", creal (cc), - cimag (cc)); - - cc = cpow (ca, cb); - fprintf (stdout, "cpow : %f %fi\n", creal (cc), - cimag (cc)); - - cc = cproj (ca); - fprintf (stdout, "cproj : %f %fi\n", creal (cc), - cimag (cc)); - - f1 = creal (ca); - fprintf (stdout, "creal : %f\n", f1); - - cc = csin (ca); - fprintf (stdout, "csin : %f %fi\n", creal (cc), - cimag (cc)); - - cc = csinh (ca); - fprintf (stdout, "csinh : %f %fi\n", creal (cc), - cimag (cc)); - - cc = csqrt (ca); - fprintf (stdout, "csqrt : %f %fi\n", creal (cc), - cimag (cc)); +#ifdef NO_DOUBLE + #define PROVIDE_EMPTY_FUNC +#endif - cc = ctan (ca); - fprintf (stdout, "ctan : %f %fi\n", creal (cc), - cimag (cc)); +#define FTYPE double +#define PRI "%f" - cc = ctanh (ca); - fprintf (stdout, "ctanh : %f %fi\n", creal (cc), - cimag (cc)); -#endif -} +#include "docomplex.h" diff --git a/testsuites/libtests/complex/docomplex.h b/testsuites/libtests/complex/docomplex.h new file mode 100644 index 0000000000..96ce9eb1a9 --- /dev/null +++ b/testsuites/libtests/complex/docomplex.h @@ -0,0 +1,122 @@ +/* + * Copyright (c) 2010, 2011 by + * Ralf Corsepius, Ulm/Germany. All rights reserved. + * + * Permission to use, copy, modify, and distribute this software + * is freely granted, provided that this notice is preserved. + */ + +#include +#include + +#define CONCAT(x, y) x ## y +#define XCONCAT(x, y) CONCAT(x, y) + +#define STRINGIFY(x, y) # x # y +#define XSTRINGIFY(x, y) STRINGIFY(x, y) + +#ifdef SUFFIX + #define FUNC(name) XCONCAT(name, SUFFIX) + #define STR(name) XSTRINGIFY(name, SUFFIX) +#else + #define FUNC(name) XCONCAT(name, ) + #define STR(name) XSTRINGIFY(name, ) " " +#endif + +extern void FUNC(docomplex) (void); + +void +FUNC(docomplex) (void) +{ +#ifndef PROVIDE_EMPTY_FUNC + complex FTYPE ca, cb, cc; + FTYPE f1; + + ca = 1.0 + 1.0 * I; + cb = 1.0 - 1.0 * I; + + f1 = FUNC(cabs) (ca); + fprintf (stdout, STR(cabs) " : " PRI "\n", f1); + + cc = FUNC(cacos) (ca); + fprintf (stdout, STR(cacos) " : " PRI " " PRI "i\n", FUNC(creal) (cc), + FUNC(cimag) (cc)); + + cc = FUNC(cacosh) (ca); + fprintf (stdout, STR(cacosh) ": " PRI " " PRI "i\n", FUNC(creal) (cc), + FUNC(cimag) (cc)); + + f1 = FUNC(carg) (ca); + fprintf (stdout, STR(carg) " : " PRI "\n", f1); + + cc = FUNC(casin) (ca); + fprintf (stdout, STR(casin) " : " PRI " " PRI "i\n", FUNC(creal) (cc), + FUNC(cimag) (cc)); + + cc = FUNC(casinh) (ca); + fprintf (stdout, STR(casinh) ": " PRI " " PRI "i\n", FUNC(creal) (cc), + FUNC(cimag) (cc)); + + cc = FUNC(catan) (ca); + fprintf (stdout, STR(catan) " : " PRI " " PRI "i\n", FUNC(creal) (cc), + FUNC(cimag) (cc)); + + cc = FUNC(catanh) (ca); + fprintf (stdout, STR(catanh) ": " PRI " " PRI "i\n", FUNC(creal) (cc), + FUNC(cimag) (cc)); + + cc = FUNC(ccos) (ca); + fprintf (stdout, STR(ccos) " : " PRI " " PRI "i\n", FUNC(creal) (cc), + FUNC(cimag) (cc)); + + cc = FUNC(ccosh) (ca); + fprintf (stdout, STR(ccosh) " : " PRI " " PRI "i\n", FUNC(creal) (cc), + FUNC(cimag) (cc)); + + cc = FUNC(cexp) (ca); + fprintf (stdout, STR(cexp) " : " PRI " " PRI "i\n", FUNC(creal) (cc), + FUNC(cimag) (cc)); + + f1 = FUNC(cimag) (ca); + fprintf (stdout, STR(cimag) " : " PRI "\n", f1); + + cc = FUNC(clog) (ca); + fprintf (stdout, STR(clog) " : " PRI " " PRI "i\n", FUNC(creal) (cc), + FUNC(cimag) (cc)); + + cc = FUNC(conj) (ca); + fprintf (stdout, STR(conj) " : " PRI " " PRI "i\n", FUNC(creal) (cc), + FUNC(cimag) (cc)); + + cc = FUNC(cpow) (ca, cb); + fprintf (stdout, STR(cpow) " : " PRI " " PRI "i\n", FUNC(creal) (cc), + FUNC(cimag) (cc)); + + cc = FUNC(cproj) (ca); + fprintf (stdout, STR(cproj) " : " PRI " " PRI "i\n", FUNC(creal) (cc), + FUNC(cimag) (cc)); + + f1 = FUNC(creal) (ca); + fprintf (stdout, STR(creal) " : " PRI "\n", f1); + + cc = FUNC(csin) (ca); + fprintf (stdout, STR(csin) " : " PRI " " PRI "i\n", FUNC(creal) (cc), + FUNC(cimag) (cc)); + + cc = FUNC(csinh) (ca); + fprintf (stdout, STR(csinh) " : " PRI " " PRI "i\n", FUNC(creal) (cc), + FUNC(cimag) (cc)); + + cc = FUNC(csqrt) (ca); + fprintf (stdout, STR(csqrt) " : " PRI " " PRI "i\n", FUNC(creal) (cc), + FUNC(cimag) (cc)); + + cc = FUNC(ctan) (ca); + fprintf (stdout, STR(ctan) " : " PRI " " PRI "i\n", FUNC(creal) (cc), + FUNC(cimag) (cc)); + + cc = FUNC(ctanh) (ca); + fprintf (stdout, STR(ctanh) " : " PRI " " PRI "i\n", FUNC(creal) (cc), + FUNC(cimag) (cc)); +#endif +} diff --git a/testsuites/libtests/complex/docomplex.in b/testsuites/libtests/complex/docomplex.in deleted file mode 100644 index e476f6dfd3..0000000000 --- a/testsuites/libtests/complex/docomplex.in +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Copyright (c) 2010, 2011 by - * Ralf Corsepius, Ulm/Germany. All rights reserved. - * - * Permission to use, copy, modify, and distribute this software - * is freely granted, provided that this notice is preserved. - */ - -/* - * Try to compile and link against POSIX complex math routines. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include - -extern void docomplex@FSUFFIX@ (void); - -void -docomplex@FSUFFIX@ (void) -{ -#ifndef @FGUARD@ - complex @FTYPE@ ca, cb, cc; - @FTYPE@ f1; - - ca = 1.0 + 1.0 * I; - cb = 1.0 - 1.0 * I; - - f1 = cabs@FSUFFIX@ (ca); - fprintf (stdout, "cabs@FSUFFIX@ : %f\n", f1); - - cc = cacos@FSUFFIX@ (ca); - fprintf (stdout, "cacos@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), - cimag@FSUFFIX@ (cc)); - - cc = cacosh@FSUFFIX@ (ca); - fprintf (stdout, "cacosh@FSUFFIX@: %f %fi\n", creal@FSUFFIX@ (cc), - cimag@FSUFFIX@ (cc)); - - f1 = carg@FSUFFIX@ (ca); - fprintf (stdout, "carg@FSUFFIX@ : %f\n", f1); - - cc = casin@FSUFFIX@ (ca); - fprintf (stdout, "casin@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), - cimag@FSUFFIX@ (cc)); - - cc = casinh@FSUFFIX@ (ca); - fprintf (stdout, "casinh@FSUFFIX@: %f %fi\n", creal@FSUFFIX@ (cc), - cimag@FSUFFIX@ (cc)); - - cc = catan@FSUFFIX@ (ca); - fprintf (stdout, "catan@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), - cimag@FSUFFIX@ (cc)); - - cc = catanh@FSUFFIX@ (ca); - fprintf (stdout, "catanh@FSUFFIX@: %f %fi\n", creal@FSUFFIX@ (cc), - cimag@FSUFFIX@ (cc)); - - cc = ccos@FSUFFIX@ (ca); - fprintf (stdout, "ccos@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), - cimag@FSUFFIX@ (cc)); - - cc = ccosh@FSUFFIX@ (ca); - fprintf (stdout, "ccosh@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), - cimag@FSUFFIX@ (cc)); - - cc = cexp@FSUFFIX@ (ca); - fprintf (stdout, "cexp@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), - cimag@FSUFFIX@ (cc)); - - f1 = cimag@FSUFFIX@ (ca); - fprintf (stdout, "cimag@FSUFFIX@ : %f\n", f1); - - cc = clog@FSUFFIX@ (ca); - fprintf (stdout, "clog@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), - cimag@FSUFFIX@ (cc)); - - cc = conj@FSUFFIX@ (ca); - fprintf (stdout, "conj@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), - cimag@FSUFFIX@ (cc)); - - cc = cpow@FSUFFIX@ (ca, cb); - fprintf (stdout, "cpow@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), - cimag@FSUFFIX@ (cc)); - - cc = cproj@FSUFFIX@ (ca); - fprintf (stdout, "cproj@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), - cimag@FSUFFIX@ (cc)); - - f1 = creal@FSUFFIX@ (ca); - fprintf (stdout, "creal@FSUFFIX@ : %f\n", f1); - - cc = csin@FSUFFIX@ (ca); - fprintf (stdout, "csin@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), - cimag@FSUFFIX@ (cc)); - - cc = csinh@FSUFFIX@ (ca); - fprintf (stdout, "csinh@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), - cimag@FSUFFIX@ (cc)); - - cc = csqrt@FSUFFIX@ (ca); - fprintf (stdout, "csqrt@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), - cimag@FSUFFIX@ (cc)); - - cc = ctan@FSUFFIX@ (ca); - fprintf (stdout, "ctan@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), - cimag@FSUFFIX@ (cc)); - - cc = ctanh@FSUFFIX@ (ca); - fprintf (stdout, "ctanh@FSUFFIX@ : %f %fi\n", creal@FSUFFIX@ (cc), - cimag@FSUFFIX@ (cc)); -#endif -} diff --git a/testsuites/libtests/complex/docomplexf.c b/testsuites/libtests/complex/docomplexf.c index ff2e73d3f6..b51f888232 100644 --- a/testsuites/libtests/complex/docomplexf.c +++ b/testsuites/libtests/complex/docomplexf.c @@ -11,106 +11,15 @@ */ #ifdef HAVE_CONFIG_H -#include "config.h" + #include "config.h" #endif -#include -#include - -extern void docomplexf (void); - -void -docomplexf (void) -{ -#ifndef NO_FLOAT - complex float ca, cb, cc; - float f1; - - ca = 1.0 + 1.0 * I; - cb = 1.0 - 1.0 * I; - - f1 = cabsf (ca); - fprintf (stdout, "cabsf : %f\n", f1); - - cc = cacosf (ca); - fprintf (stdout, "cacosf : %f %fi\n", crealf (cc), - cimagf (cc)); - - cc = cacoshf (ca); - fprintf (stdout, "cacoshf: %f %fi\n", crealf (cc), - cimagf (cc)); - - f1 = cargf (ca); - fprintf (stdout, "cargf : %f\n", f1); - - cc = casinf (ca); - fprintf (stdout, "casinf : %f %fi\n", crealf (cc), - cimagf (cc)); - - cc = casinhf (ca); - fprintf (stdout, "casinhf: %f %fi\n", crealf (cc), - cimagf (cc)); - - cc = catanf (ca); - fprintf (stdout, "catanf : %f %fi\n", crealf (cc), - cimagf (cc)); - - cc = catanhf (ca); - fprintf (stdout, "catanhf: %f %fi\n", crealf (cc), - cimagf (cc)); - - cc = ccosf (ca); - fprintf (stdout, "ccosf : %f %fi\n", crealf (cc), - cimagf (cc)); - - cc = ccoshf (ca); - fprintf (stdout, "ccoshf : %f %fi\n", crealf (cc), - cimagf (cc)); - - cc = cexpf (ca); - fprintf (stdout, "cexpf : %f %fi\n", crealf (cc), - cimagf (cc)); - - f1 = cimagf (ca); - fprintf (stdout, "cimagf : %f\n", f1); - - cc = clogf (ca); - fprintf (stdout, "clogf : %f %fi\n", crealf (cc), - cimagf (cc)); - - cc = conjf (ca); - fprintf (stdout, "conjf : %f %fi\n", crealf (cc), - cimagf (cc)); - - cc = cpowf (ca, cb); - fprintf (stdout, "cpowf : %f %fi\n", crealf (cc), - cimagf (cc)); - - cc = cprojf (ca); - fprintf (stdout, "cprojf : %f %fi\n", crealf (cc), - cimagf (cc)); - - f1 = crealf (ca); - fprintf (stdout, "crealf : %f\n", f1); - - cc = csinf (ca); - fprintf (stdout, "csinf : %f %fi\n", crealf (cc), - cimagf (cc)); - - cc = csinhf (ca); - fprintf (stdout, "csinhf : %f %fi\n", crealf (cc), - cimagf (cc)); - - cc = csqrtf (ca); - fprintf (stdout, "csqrtf : %f %fi\n", crealf (cc), - cimagf (cc)); +#ifdef NO_FLOAT + #define PROVIDE_EMPTY_FUNC +#endif - cc = ctanf (ca); - fprintf (stdout, "ctanf : %f %fi\n", crealf (cc), - cimagf (cc)); +#define SUFFIX f +#define FTYPE float +#define PRI "%f" - cc = ctanhf (ca); - fprintf (stdout, "ctanhf : %f %fi\n", crealf (cc), - cimagf (cc)); -#endif -} +#include "docomplex.h" diff --git a/testsuites/libtests/complex/docomplexl.c b/testsuites/libtests/complex/docomplexl.c index f63d00ad30..87817c7773 100644 --- a/testsuites/libtests/complex/docomplexl.c +++ b/testsuites/libtests/complex/docomplexl.c @@ -11,106 +11,15 @@ */ #ifdef HAVE_CONFIG_H -#include "config.h" + #include "config.h" #endif -#include -#include - -extern void docomplexl (void); - -void -docomplexl (void) -{ -#ifndef NO_LONG_DOUBLE - complex long double ca, cb, cc; - long double f1; - - ca = 1.0 + 1.0 * I; - cb = 1.0 - 1.0 * I; - - f1 = cabsl (ca); - fprintf (stdout, "cabsl : %Lf\n", f1); - - cc = cacosl (ca); - fprintf (stdout, "cacosl : %Lf %Lfi\n", creall (cc), - cimagl (cc)); - - cc = cacoshl (ca); - fprintf (stdout, "cacoshl: %Lf %Lfi\n", creall (cc), - cimagl (cc)); - - f1 = cargl (ca); - fprintf (stdout, "cargl : %Lf\n", f1); - - cc = casinl (ca); - fprintf (stdout, "casinl : %Lf %Lfi\n", creall (cc), - cimagl (cc)); - - cc = casinhl (ca); - fprintf (stdout, "casinhl: %Lf %Lfi\n", creall (cc), - cimagl (cc)); - - cc = catanl (ca); - fprintf (stdout, "catanl : %Lf %Lfi\n", creall (cc), - cimagl (cc)); - - cc = catanhl (ca); - fprintf (stdout, "catanhl: %Lf %Lfi\n", creall (cc), - cimagl (cc)); - - cc = ccosl (ca); - fprintf (stdout, "ccosl : %Lf %Lfi\n", creall (cc), - cimagl (cc)); - - cc = ccoshl (ca); - fprintf (stdout, "ccoshl : %Lf %Lfi\n", creall (cc), - cimagl (cc)); - - cc = cexpl (ca); - fprintf (stdout, "cexpl : %Lf %Lfi\n", creall (cc), - cimagl (cc)); - - f1 = cimagl (ca); - fprintf (stdout, "cimagl : %Lf\n", f1); - - cc = clogl (ca); - fprintf (stdout, "clogl : %Lf %Lfi\n", creall (cc), - cimagl (cc)); - - cc = conjl (ca); - fprintf (stdout, "conjl : %Lf %Lfi\n", creall (cc), - cimagl (cc)); - - cc = cpowl (ca, cb); - fprintf (stdout, "cpowl : %Lf %Lfi\n", creall (cc), - cimagl (cc)); - - cc = cprojl (ca); - fprintf (stdout, "cprojl : %Lf %Lfi\n", creall (cc), - cimagl (cc)); - - f1 = creall (ca); - fprintf (stdout, "creall : %Lf\n", f1); - - cc = csinl (ca); - fprintf (stdout, "csinl : %Lf %Lfi\n", creall (cc), - cimagl (cc)); - - cc = csinhl (ca); - fprintf (stdout, "csinhl : %Lf %Lfi\n", creall (cc), - cimagl (cc)); - - cc = csqrtl (ca); - fprintf (stdout, "csqrtl : %Lf %Lfi\n", creall (cc), - cimagl (cc)); +#ifdef NO_LONG_DOUBLE + #define PROVIDE_EMPTY_FUNC +#endif - cc = ctanl (ca); - fprintf (stdout, "ctanl : %Lf %Lfi\n", creall (cc), - cimagl (cc)); +#define SUFFIX l +#define FTYPE long double +#define PRI "%Lf" - cc = ctanhl (ca); - fprintf (stdout, "ctanhl : %Lf %Lfi\n", creall (cc), - cimagl (cc)); -#endif -} +#include "docomplex.h" diff --git a/testsuites/libtests/complex/init.c b/testsuites/libtests/complex/init.c index 82554f4816..2f3c800506 100644 --- a/testsuites/libtests/complex/init.c +++ b/testsuites/libtests/complex/init.c @@ -31,9 +31,7 @@ extern void docomplex(void); extern void docomplexf(void); -#ifndef NO_LONG_DOUBLE extern void docomplexl(void); -#endif #if __rtems__ /* NOTICE: the clock driver is explicitly disabled */ @@ -60,9 +58,7 @@ int main( void ) docomplex(); docomplexf(); -#ifndef NO_LONG_DOUBLE docomplexl(); -#endif fprintf( stdout, "*** END OF COMPLEX MATH TEST ***\n" ); exit( 0 ); } -- cgit v1.2.3 From daffa606cc4a45d93c1f0f4fe365fde0fda6acbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ralf=20Cors=C3=A9pius?= Date: Thu, 24 May 2012 06:36:40 +0200 Subject: Add bspopts.h.in. --- c/src/lib/libbsp/.gitignore | 1 - c/src/lib/libbsp/arm/csb336/include/bspopts.h.in | 31 ++++++ c/src/lib/libbsp/arm/csb337/include/bspopts.h.in | 56 ++++++++++ c/src/lib/libbsp/arm/edb7312/include/bspopts.h.in | 37 +++++++ c/src/lib/libbsp/arm/gba/include/bspopts.h.in | 31 ++++++ .../lib/libbsp/arm/gdbarmsim/include/bspopts.h.in | 31 ++++++ c/src/lib/libbsp/arm/gp32/include/bspopts.h.in | 31 ++++++ c/src/lib/libbsp/arm/gumstix/include/bspopts.h.in | 37 +++++++ c/src/lib/libbsp/arm/lm3s69xx/include/bspopts.h.in | 49 +++++++++ c/src/lib/libbsp/arm/lpc24xx/include/bspopts.h.in | 115 +++++++++++++++++++++ c/src/lib/libbsp/arm/lpc32xx/include/bspopts.h.in | 100 ++++++++++++++++++ c/src/lib/libbsp/arm/nds/include/bspopts.h.in | 31 ++++++ c/src/lib/libbsp/arm/rtl22xx/include/bspopts.h.in | 37 +++++++ c/src/lib/libbsp/arm/smdk2410/include/bspopts.h.in | 37 +++++++ c/src/lib/libbsp/arm/stm32f4/include/bspopts.h.in | 70 +++++++++++++ c/src/lib/libbsp/avr/avrtest/include/bspopts.h.in | 31 ++++++ .../lib/libbsp/bfin/TLL6527M/include/bspopts.h.in | 48 +++++++++ .../libbsp/bfin/bf537Stamp/include/bspopts.h.in | 38 +++++++ .../lib/libbsp/bfin/eZKit533/include/bspopts.h.in | 38 +++++++ c/src/lib/libbsp/h8300/h8sim/include/bspopts.h.in | 31 ++++++ c/src/lib/libbsp/i386/pc386/include/bspopts.h.in | 78 ++++++++++++++ .../lib/libbsp/lm32/lm32_evr/include/bspopts.h.in | 39 +++++++ .../lib/libbsp/lm32/milkymist/include/bspopts.h.in | 39 +++++++ c/src/lib/libbsp/m32c/m32cbsp/include/bspopts.h.in | 31 ++++++ c/src/lib/libbsp/m32r/m32rsim/include/bspopts.h.in | 31 ++++++ c/src/lib/libbsp/m68k/av5282/include/bspopts.h.in | 31 ++++++ c/src/lib/libbsp/m68k/csb360/include/bspopts.h.in | 31 ++++++ .../lib/libbsp/m68k/gen68302/include/bspopts.h.in | 31 ++++++ .../lib/libbsp/m68k/gen68340/include/bspopts.h.in | 31 ++++++ .../lib/libbsp/m68k/gen68360/include/bspopts.h.in | 40 +++++++ .../libbsp/m68k/genmcf548x/include/bspopts.h.in | 48 +++++++++ c/src/lib/libbsp/m68k/idp/include/bspopts.h.in | 31 ++++++ .../libbsp/m68k/mcf5206elite/include/bspopts.h.in | 31 ++++++ .../lib/libbsp/m68k/mcf52235/include/bspopts.h.in | 31 ++++++ .../lib/libbsp/m68k/mcf5225x/include/bspopts.h.in | 31 ++++++ c/src/lib/libbsp/m68k/mcf5235/include/bspopts.h.in | 31 ++++++ c/src/lib/libbsp/m68k/mcf5329/include/bspopts.h.in | 31 ++++++ c/src/lib/libbsp/m68k/mrm332/include/bspopts.h.in | 31 ++++++ c/src/lib/libbsp/m68k/mvme136/include/bspopts.h.in | 31 ++++++ c/src/lib/libbsp/m68k/mvme147/include/bspopts.h.in | 31 ++++++ .../lib/libbsp/m68k/mvme147s/include/bspopts.h.in | 31 ++++++ c/src/lib/libbsp/m68k/mvme162/include/bspopts.h.in | 31 ++++++ c/src/lib/libbsp/m68k/mvme167/include/bspopts.h.in | 55 ++++++++++ .../lib/libbsp/m68k/ods68302/include/bspopts.h.in | 31 ++++++ .../lib/libbsp/m68k/sim68000/include/bspopts.h.in | 39 +++++++ c/src/lib/libbsp/m68k/uC5282/include/bspopts.h.in | 31 ++++++ c/src/lib/libbsp/mips/csb350/include/bspopts.h.in | 31 ++++++ .../libbsp/mips/genmongoosev/include/bspopts.h.in | 31 ++++++ .../lib/libbsp/mips/hurricane/include/bspopts.h.in | 37 +++++++ c/src/lib/libbsp/mips/jmr3904/include/bspopts.h.in | 31 ++++++ c/src/lib/libbsp/mips/malta/include/bspopts.h.in | 31 ++++++ .../lib/libbsp/mips/rbtx4925/include/bspopts.h.in | 34 ++++++ .../lib/libbsp/mips/rbtx4938/include/bspopts.h.in | 31 ++++++ .../libbsp/nios2/nios2_iss/include/bspopts.h.in | 31 ++++++ .../lib/libbsp/no_cpu/no_bsp/include/bspopts.h.in | 31 ++++++ .../libbsp/powerpc/beatnik/include/bspopts.h.in | 38 +++++++ c/src/lib/libbsp/powerpc/ep1a/include/bspopts.h.in | 48 +++++++++ .../libbsp/powerpc/gen5200/include/bspopts.h.in | 85 +++++++++++++++ .../libbsp/powerpc/gen83xx/include/bspopts.h.in | 67 ++++++++++++ .../libbsp/powerpc/haleakala/include/bspopts.h.in | 40 +++++++ .../lib/libbsp/powerpc/mbx8xx/include/bspopts.h.in | 93 +++++++++++++++++ .../powerpc/motorola_powerpc/include/bspopts.h.in | 54 ++++++++++ .../libbsp/powerpc/mpc55xxevb/include/bspopts.h.in | 114 ++++++++++++++++++++ .../libbsp/powerpc/mpc8260ads/include/bspopts.h.in | 68 ++++++++++++ .../libbsp/powerpc/mvme3100/include/bspopts.h.in | 45 ++++++++ .../libbsp/powerpc/mvme5500/include/bspopts.h.in | 45 ++++++++ c/src/lib/libbsp/powerpc/psim/include/bspopts.h.in | 53 ++++++++++ .../libbsp/powerpc/qemuppc/include/bspopts.h.in | 31 ++++++ .../lib/libbsp/powerpc/qoriq/include/bspopts.h.in | 98 ++++++++++++++++++ .../libbsp/powerpc/score603e/include/bspopts.h.in | 75 ++++++++++++++ .../lib/libbsp/powerpc/ss555/include/bspopts.h.in | 52 ++++++++++ .../libbsp/powerpc/t32mppc/include/bspopts.h.in | 37 +++++++ .../lib/libbsp/powerpc/tqm8xx/include/bspopts.h.in | 107 +++++++++++++++++++ .../lib/libbsp/powerpc/virtex/include/bspopts.h.in | 48 +++++++++ .../libbsp/powerpc/virtex4/include/bspopts.h.in | 46 +++++++++ .../libbsp/powerpc/virtex5/include/bspopts.h.in | 46 +++++++++ c/src/lib/libbsp/sh/gensh1/include/bspopts.h.in | 38 +++++++ c/src/lib/libbsp/sh/gensh2/include/bspopts.h.in | 41 ++++++++ c/src/lib/libbsp/sh/gensh4/include/bspopts.h.in | 37 +++++++ c/src/lib/libbsp/sh/shsim/include/bspopts.h.in | 41 ++++++++ c/src/lib/libbsp/sparc/erc32/include/bspopts.h.in | 49 +++++++++ c/src/lib/libbsp/sparc/leon2/include/bspopts.h.in | 44 ++++++++ c/src/lib/libbsp/sparc/leon3/include/bspopts.h.in | 45 ++++++++ .../libbsp/sparc64/niagara/include/bspopts.h.in | 31 ++++++ .../lib/libbsp/sparc64/usiii/include/bspopts.h.in | 36 +++++++ 85 files changed, 3746 insertions(+), 1 deletion(-) delete mode 100644 c/src/lib/libbsp/.gitignore create mode 100644 c/src/lib/libbsp/arm/csb336/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/arm/csb337/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/arm/edb7312/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/arm/gba/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/arm/gdbarmsim/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/arm/gp32/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/arm/gumstix/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/arm/lm3s69xx/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/arm/lpc24xx/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/arm/lpc32xx/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/arm/nds/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/arm/rtl22xx/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/arm/smdk2410/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/arm/stm32f4/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/avr/avrtest/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/bfin/TLL6527M/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/bfin/bf537Stamp/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/bfin/eZKit533/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/h8300/h8sim/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/i386/pc386/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/lm32/lm32_evr/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/lm32/milkymist/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/m32c/m32cbsp/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/m32r/m32rsim/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/m68k/av5282/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/m68k/csb360/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/m68k/gen68302/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/m68k/gen68340/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/m68k/gen68360/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/m68k/genmcf548x/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/m68k/idp/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/m68k/mcf5206elite/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/m68k/mcf52235/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/m68k/mcf5225x/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/m68k/mcf5235/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/m68k/mcf5329/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/m68k/mrm332/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/m68k/mvme136/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/m68k/mvme147/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/m68k/mvme147s/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/m68k/mvme162/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/m68k/mvme167/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/m68k/ods68302/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/m68k/sim68000/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/m68k/uC5282/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/mips/csb350/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/mips/genmongoosev/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/mips/hurricane/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/mips/jmr3904/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/mips/malta/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/mips/rbtx4925/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/mips/rbtx4938/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/nios2/nios2_iss/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/no_cpu/no_bsp/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/powerpc/beatnik/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/powerpc/ep1a/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/powerpc/gen5200/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/powerpc/gen83xx/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/powerpc/haleakala/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/powerpc/mbx8xx/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/powerpc/motorola_powerpc/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/powerpc/mpc55xxevb/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/powerpc/mpc8260ads/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/powerpc/mvme3100/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/powerpc/mvme5500/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/powerpc/psim/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/powerpc/qemuppc/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/powerpc/qoriq/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/powerpc/score603e/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/powerpc/ss555/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/powerpc/t32mppc/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/powerpc/tqm8xx/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/powerpc/virtex/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/powerpc/virtex4/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/powerpc/virtex5/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/sh/gensh1/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/sh/gensh2/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/sh/gensh4/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/sh/shsim/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/sparc/erc32/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/sparc/leon2/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/sparc/leon3/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/sparc64/niagara/include/bspopts.h.in create mode 100644 c/src/lib/libbsp/sparc64/usiii/include/bspopts.h.in diff --git a/c/src/lib/libbsp/.gitignore b/c/src/lib/libbsp/.gitignore deleted file mode 100644 index e067316c09..0000000000 --- a/c/src/lib/libbsp/.gitignore +++ /dev/null @@ -1 +0,0 @@ -bspopts.h.in diff --git a/c/src/lib/libbsp/arm/csb336/include/bspopts.h.in b/c/src/lib/libbsp/arm/csb336/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/arm/csb336/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/arm/csb337/include/bspopts.h.in b/c/src/lib/libbsp/arm/csb337/include/bspopts.h.in new file mode 100644 index 0000000000..32b4c64560 --- /dev/null +++ b/c/src/lib/libbsp/arm/csb337/include/bspopts.h.in @@ -0,0 +1,56 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* If defined, enable use of the SED1356 controller and LCD. */ +#undef ENABLE_LCD + +/* If defined, enable use of the uMon console. */ +#undef ENABLE_UMON + +/* If defined, enable use of the MicroMonitor console device. */ +#undef ENABLE_UMON_CONSOLE + +/* If defined, enable use of the USART 0. */ +#undef ENABLE_USART0 + +/* If defined, enable use of the USART 1. */ +#undef ENABLE_USART1 + +/* If defined, enable use of the USART 2. */ +#undef ENABLE_USART2 + +/* If defined, enable use of the USART 3. */ +#undef ENABLE_USART3 + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* If defined, this indicates that the BSP is being built for the csb637 + variant. */ +#undef csb637 diff --git a/c/src/lib/libbsp/arm/edb7312/include/bspopts.h.in b/c/src/lib/libbsp/arm/edb7312/include/bspopts.h.in new file mode 100644 index 0000000000..629a4a5f7a --- /dev/null +++ b/c/src/lib/libbsp/arm/edb7312/include/bspopts.h.in @@ -0,0 +1,37 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* If defined, enable options which optimize executingon the Skyeye simulator. + Speed up the clock ticks while the idle task is running so time spent in + the idle task is minimized. This significantly reduces the wall time + required to execute the RTEMS test suites. */ +#undef ON_SKYEYE + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/arm/gba/include/bspopts.h.in b/c/src/lib/libbsp/arm/gba/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/arm/gba/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/arm/gdbarmsim/include/bspopts.h.in b/c/src/lib/libbsp/arm/gdbarmsim/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/arm/gdbarmsim/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/arm/gp32/include/bspopts.h.in b/c/src/lib/libbsp/arm/gp32/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/arm/gp32/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/arm/gumstix/include/bspopts.h.in b/c/src/lib/libbsp/arm/gumstix/include/bspopts.h.in new file mode 100644 index 0000000000..629a4a5f7a --- /dev/null +++ b/c/src/lib/libbsp/arm/gumstix/include/bspopts.h.in @@ -0,0 +1,37 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* If defined, enable options which optimize executingon the Skyeye simulator. + Speed up the clock ticks while the idle task is running so time spent in + the idle task is minimized. This significantly reduces the wall time + required to execute the RTEMS test suites. */ +#undef ON_SKYEYE + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/arm/lm3s69xx/include/bspopts.h.in b/c/src/lib/libbsp/arm/lm3s69xx/include/bspopts.h.in new file mode 100644 index 0000000000..fc51e293f4 --- /dev/null +++ b/c/src/lib/libbsp/arm/lm3s69xx/include/bspopts.h.in @@ -0,0 +1,49 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* disable testsuite samples with high memory demands */ +#undef BSP_SMALL_MEMORY + +/* enable UART 0 */ +#undef LM3S69XX_ENABLE_UART_0 + +/* enable UART 1 */ +#undef LM3S69XX_ENABLE_UART_1 + +/* enable UART 2 */ +#undef LM3S69XX_ENABLE_UART_2 + +/* system clock in Hz */ +#undef LM3S69XX_SYSTEM_CLOCK + +/* baud for UARTs */ +#undef LM3S69XX_UART_BAUD + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/arm/lpc24xx/include/bspopts.h.in b/c/src/lib/libbsp/arm/lpc24xx/include/bspopts.h.in new file mode 100644 index 0000000000..fb7ecc6caf --- /dev/null +++ b/c/src/lib/libbsp/arm/lpc24xx/include/bspopts.h.in @@ -0,0 +1,115 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* disable testsuite samples with high memory demands */ +#undef BSP_SMALL_MEMORY + +/* reset vector address for BSP start */ +#undef BSP_START_RESET_VECTOR + +/* CPU clock in Hz */ +#undef LPC24XX_CCLK + +/* configuration for console (UART 0) */ +#undef LPC24XX_CONFIG_CONSOLE + +/* configuration for I2C 0 */ +#undef LPC24XX_CONFIG_I2C_0 + +/* configuration for I2C 1 */ +#undef LPC24XX_CONFIG_I2C_1 + +/* configuration for I2C 2 */ +#undef LPC24XX_CONFIG_I2C_2 + +/* configuration for UART 1 */ +#undef LPC24XX_CONFIG_UART_1 + +/* configuration for UART 2 */ +#undef LPC24XX_CONFIG_UART_2 + +/* configuration for UART 3 */ +#undef LPC24XX_CONFIG_UART_3 + +/* peripheral clock divider for default EMCCLK (EMCCLK = CCLK / EMCCLKDIV) */ +#undef LPC24XX_EMCCLKDIV + +/* enable ISSI IS42S32800B configuration for EMC */ +#undef LPC24XX_EMC_IS42S32800B + +/* enable ISSI IS42S32800D7 configuration for EMC */ +#undef LPC24XX_EMC_IS42S32800D7 + +/* enable M29W160E configuration for EMC */ +#undef LPC24XX_EMC_M29W160E + +/* enable M29W320E70 configuration for EMC */ +#undef LPC24XX_EMC_M29W320E70 + +/* enable Micron MT48LC4M16A2 configuration for EMC */ +#undef LPC24XX_EMC_MT48LC4M16A2 + +/* enable SST39VF3201 configuration for EMC */ +#undef LPC24XX_EMC_SST39VF3201 + +/* enable tests for EMC */ +#undef LPC24XX_EMC_TEST + +/* enable Winbond W9825G2JB75I configuration for EMC */ +#undef LPC24XX_EMC_W9825G2JB75I + +/* enable RMII for Ethernet */ +#undef LPC24XX_ETHERNET_RMII + +/* enable heap extend by Ethernet and USB regions */ +#undef LPC24XX_HEAP_EXTEND + +/* main oscillator frequency in Hz */ +#undef LPC24XX_OSCILLATOR_MAIN + +/* RTC oscillator frequency in Hz */ +#undef LPC24XX_OSCILLATOR_RTC + +/* peripheral clock divider for default PCLK (PCLK = CCLK / PCLKDIV) */ +#undef LPC24XX_PCLKDIV + +/* stop Ethernet controller at start-up to avoid DMA interference */ +#undef LPC24XX_STOP_ETHERNET + +/* stop general purpose DMA at start-up to avoid DMA interference */ +#undef LPC24XX_STOP_GPDMA + +/* stop USB controller at start-up to avoid DMA interference */ +#undef LPC24XX_STOP_USB + +/* baud for UARTs */ +#undef LPC24XX_UART_BAUD + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/arm/lpc32xx/include/bspopts.h.in b/c/src/lib/libbsp/arm/lpc32xx/include/bspopts.h.in new file mode 100644 index 0000000000..e37215510d --- /dev/null +++ b/c/src/lib/libbsp/arm/lpc32xx/include/bspopts.h.in @@ -0,0 +1,100 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* disable testsuite samples with high memory demands */ +#undef BSP_SMALL_MEMORY + +/* reset vector address for BSP start */ +#undef BSP_START_RESET_VECTOR + +/* clock configuration for UART 3 */ +#undef LPC32XX_CONFIG_U3CLK + +/* clock configuration for UART 4 */ +#undef LPC32XX_CONFIG_U4CLK + +/* clock configuration for UART 5 */ +#undef LPC32XX_CONFIG_U5CLK + +/* clock configuration for UART 6 */ +#undef LPC32XX_CONFIG_U6CLK + +/* clock mode configuration for UARTs */ +#undef LPC32XX_CONFIG_UART_CLKMODE + +/* disable MMU */ +#undef LPC32XX_DISABLE_MMU + +/* disable MMU protection of read-only sections */ +#undef LPC32XX_DISABLE_READ_ONLY_PROTECTION + +/* disable cache for read-write data sections */ +#undef LPC32XX_DISABLE_READ_WRITE_DATA_CACHE + +/* bsp_reset() will use the watchdog to reset the chip */ +#undef LPC32XX_ENABLE_WATCHDOG_RESET + +/* enable RMII for Ethernet */ +#undef LPC32XX_ETHERNET_RMII + +/* main oscillator frequency in Hz */ +#undef LPC32XX_OSCILLATOR_MAIN + +/* RTC oscillator frequency in Hz */ +#undef LPC32XX_OSCILLATOR_RTC + +/* peripheral clock in Hz */ +#undef LPC32XX_PERIPH_CLK + +/* size of scratch area */ +#undef LPC32XX_SCRATCH_AREA_SIZE + +/* stop Ethernet controller at start-up to avoid DMA interference */ +#undef LPC32XX_STOP_ETHERNET + +/* stop general purpose DMA at start-up to avoid DMA interference */ +#undef LPC32XX_STOP_GPDMA + +/* stop USB controller at start-up to avoid DMA interference */ +#undef LPC32XX_STOP_USB + +/* baud for UART 1 */ +#undef LPC32XX_UART_1_BAUD + +/* baud for UART 2 */ +#undef LPC32XX_UART_2_BAUD + +/* baud for UART 7 */ +#undef LPC32XX_UART_7_BAUD + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* tests use printk() for output */ +#undef TESTS_USE_PRINTK diff --git a/c/src/lib/libbsp/arm/nds/include/bspopts.h.in b/c/src/lib/libbsp/arm/nds/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/arm/nds/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/arm/rtl22xx/include/bspopts.h.in b/c/src/lib/libbsp/arm/rtl22xx/include/bspopts.h.in new file mode 100644 index 0000000000..629a4a5f7a --- /dev/null +++ b/c/src/lib/libbsp/arm/rtl22xx/include/bspopts.h.in @@ -0,0 +1,37 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* If defined, enable options which optimize executingon the Skyeye simulator. + Speed up the clock ticks while the idle task is running so time spent in + the idle task is minimized. This significantly reduces the wall time + required to execute the RTEMS test suites. */ +#undef ON_SKYEYE + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/arm/smdk2410/include/bspopts.h.in b/c/src/lib/libbsp/arm/smdk2410/include/bspopts.h.in new file mode 100644 index 0000000000..629a4a5f7a --- /dev/null +++ b/c/src/lib/libbsp/arm/smdk2410/include/bspopts.h.in @@ -0,0 +1,37 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* If defined, enable options which optimize executingon the Skyeye simulator. + Speed up the clock ticks while the idle task is running so time spent in + the idle task is minimized. This significantly reduces the wall time + required to execute the RTEMS test suites. */ +#undef ON_SKYEYE + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/arm/stm32f4/include/bspopts.h.in b/c/src/lib/libbsp/arm/stm32f4/include/bspopts.h.in new file mode 100644 index 0000000000..e700ef1184 --- /dev/null +++ b/c/src/lib/libbsp/arm/stm32f4/include/bspopts.h.in @@ -0,0 +1,70 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* disable testsuite samples with high memory demands */ +#undef BSP_SMALL_MEMORY + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* enable UART 4 */ +#undef STM32F4_ENABLE_UART_4 + +/* enable UART 5 */ +#undef STM32F4_ENABLE_UART_5 + +/* enable USART 1 */ +#undef STM32F4_ENABLE_USART_1 + +/* enable USART 2 */ +#undef STM32F4_ENABLE_USART_2 + +/* enable USART 3 */ +#undef STM32F4_ENABLE_USART_3 + +/* enable USART 6 */ +#undef STM32F4_ENABLE_USART_6 + +/* HCLK frequency in Hz */ +#undef STM32F4_HCLK + +/* HSE oscillator frequency in Hz */ +#undef STM32F4_HSE_OSCILLATOR + +/* PCLK1 frequency in Hz */ +#undef STM32F4_PCLK1 + +/* PCLK2 frequency in Hz */ +#undef STM32F4_PCLK2 + +/* SYSCLK frequency in Hz */ +#undef STM32F4_SYSCLK + +/* baud for USARTs */ +#undef STM32F4_USART_BAUD diff --git a/c/src/lib/libbsp/avr/avrtest/include/bspopts.h.in b/c/src/lib/libbsp/avr/avrtest/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/avr/avrtest/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/bfin/TLL6527M/include/bspopts.h.in b/c/src/lib/libbsp/bfin/TLL6527M/include/bspopts.h.in new file mode 100644 index 0000000000..5fcb0cf95c --- /dev/null +++ b/c/src/lib/libbsp/bfin/TLL6527M/include/bspopts.h.in @@ -0,0 +1,48 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* (BSP--Skyeye) If defined, disable features which are not supported on + Skyeye. */ +#undef BFIN_ON_SKYEYE + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* The baudrate of the console uart. */ +#undef CONSOLE_BAUDRATE + +/* The console driver can operate in either polled or interrupt mode. */ +#undef CONSOLE_USE_INTERRUPTS + +/* Select if INTERRUPT use table or link list */ +#undef INTERRUPT_USE_TABLE + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* The uart driver can operate in dma mode with interrupts. Set to 1 if DMA + operation is required */ +#undef UART_USE_DMA diff --git a/c/src/lib/libbsp/bfin/bf537Stamp/include/bspopts.h.in b/c/src/lib/libbsp/bfin/bf537Stamp/include/bspopts.h.in new file mode 100644 index 0000000000..ccc132f357 --- /dev/null +++ b/c/src/lib/libbsp/bfin/bf537Stamp/include/bspopts.h.in @@ -0,0 +1,38 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* (BSP--Skyeye) If defined, disable features which are not supported on + Skyeye. */ +#undef BFIN_ON_SKYEYE + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* The console driver can operate in either polled or interrupt mode. */ +#undef CONSOLE_USE_INTERRUPTS + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/bfin/eZKit533/include/bspopts.h.in b/c/src/lib/libbsp/bfin/eZKit533/include/bspopts.h.in new file mode 100644 index 0000000000..ccc132f357 --- /dev/null +++ b/c/src/lib/libbsp/bfin/eZKit533/include/bspopts.h.in @@ -0,0 +1,38 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* (BSP--Skyeye) If defined, disable features which are not supported on + Skyeye. */ +#undef BFIN_ON_SKYEYE + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* The console driver can operate in either polled or interrupt mode. */ +#undef CONSOLE_USE_INTERRUPTS + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/h8300/h8sim/include/bspopts.h.in b/c/src/lib/libbsp/h8300/h8sim/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/h8300/h8sim/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/i386/pc386/include/bspopts.h.in b/c/src/lib/libbsp/i386/pc386/include/bspopts.h.in new file mode 100644 index 0000000000..207387efc2 --- /dev/null +++ b/c/src/lib/libbsp/i386/pc386/include/bspopts.h.in @@ -0,0 +1,78 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* Always defined when on a pc386 to enable the pc386 support for determining + the CPU core number in an SMP configuration. */ +#undef BSP_HAS_SMP + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* If defined, set the VGA display to 80x50. */ +#undef BSP_VIDEO_80x50 + +/* If enabled, the clock driver will use the good old 8254 chip to report + microsecond-accuracy clock times. Enable it, if: - you have nanosecond + timing enabled (you do NOT have USE_TICKS_FOR_CPU_USAGE_STATISTICS enabled) + - you do NOT have CLOCK_DRIVER_USE_TSC enabled (use one, the other, or + neither) - you do not mind adding roughly 5 microseconds to each context + switch. */ +#undef CLOCK_DRIVER_USE_8254 + +/* If enabled, the clock driver will use the TSC register available with + Pentium-class CPUs to report close to nanosecond-accuracy clock times. + Enable it, if: - you have nanosecond timing enabled (you do NOT have + USE_TICKS_FOR_CPU_USAGE_STATISTICS enabled) - you do NOT have + CLOCK_DRIVER_USE_8254 enabled (use one, the other, or neither) - you have a + Pentium which supports TSC (all Intels, and probably all or most clones) - + you do not have a variable-speed CPU clock. Note that some motherboard BIOS + will automatically vary clock speed for thermal control. Note also, + however, that really new Pentium-class chips from Intel and AMD will + maintain a constant-rate TSC regardless. */ +#undef CLOCK_DRIVER_USE_TSC + +/* Determines, whether RTEMS will try to use the primary IDE interface. + Disable it, if: - you have no primary IDE interface - or you have no disk + attached to this interface - or you do not want to access disks attached to + this interface */ +#undef IDE_USE_PRIMARY_INTERFACE + +/* Determines, whether RTEMS will try to use the secondary IDE interface. + Enable it, if: - you have a secondary IDE interface - and you have at least + one disk attached to this interface - and you do want to access disks + attached to this interface */ +#undef IDE_USE_SECONDARY_INTERFACE + +/* if using 16 bit mode assembler support */ +#undef NEW_GAS + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Determines, whether the console will be associated with the standard VGA + display or with the COM1 serial port. Currently only the VGA display and + COM1 support printk. */ +#undef USE_COM1_AS_CONSOLE diff --git a/c/src/lib/libbsp/lm32/lm32_evr/include/bspopts.h.in b/c/src/lib/libbsp/lm32/lm32_evr/include/bspopts.h.in new file mode 100644 index 0000000000..c716b960e2 --- /dev/null +++ b/c/src/lib/libbsp/lm32/lm32_evr/include/bspopts.h.in @@ -0,0 +1,39 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* If defined, this indicates the BSP is being built to run on the lm32 + simulator in GDB. This enables fast idle support which speeds up the clock + ticks while the idle task is running so time spent in the idle task is + minimized. This significantly reduces the wall time required to execute the + RTEMS test suites. It also enables a special exit and alternate printk + support. */ +#undef ON_SIMULATOR + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/lm32/milkymist/include/bspopts.h.in b/c/src/lib/libbsp/lm32/milkymist/include/bspopts.h.in new file mode 100644 index 0000000000..c716b960e2 --- /dev/null +++ b/c/src/lib/libbsp/lm32/milkymist/include/bspopts.h.in @@ -0,0 +1,39 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* If defined, this indicates the BSP is being built to run on the lm32 + simulator in GDB. This enables fast idle support which speeds up the clock + ticks while the idle task is running so time spent in the idle task is + minimized. This significantly reduces the wall time required to execute the + RTEMS test suites. It also enables a special exit and alternate printk + support. */ +#undef ON_SIMULATOR + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/m32c/m32cbsp/include/bspopts.h.in b/c/src/lib/libbsp/m32c/m32cbsp/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/m32c/m32cbsp/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/m32r/m32rsim/include/bspopts.h.in b/c/src/lib/libbsp/m32r/m32rsim/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/m32r/m32rsim/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/m68k/av5282/include/bspopts.h.in b/c/src/lib/libbsp/m68k/av5282/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/m68k/av5282/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/m68k/csb360/include/bspopts.h.in b/c/src/lib/libbsp/m68k/csb360/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/m68k/csb360/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/m68k/gen68302/include/bspopts.h.in b/c/src/lib/libbsp/m68k/gen68302/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/m68k/gen68302/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/m68k/gen68340/include/bspopts.h.in b/c/src/lib/libbsp/m68k/gen68340/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/m68k/gen68340/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/m68k/gen68360/include/bspopts.h.in b/c/src/lib/libbsp/m68k/gen68360/include/bspopts.h.in new file mode 100644 index 0000000000..b766b66fef --- /dev/null +++ b/c/src/lib/libbsp/m68k/gen68360/include/bspopts.h.in @@ -0,0 +1,40 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* If defined, use custom settings for the gen68360 BSP. */ +#undef GEN68360 + +/* If defined, use custom settings for the gen68360_040 BSP. */ +#undef GEN68360_040 + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* If defined, use custom settings for the pgh360 BSP. */ +#undef PGH360 diff --git a/c/src/lib/libbsp/m68k/genmcf548x/include/bspopts.h.in b/c/src/lib/libbsp/m68k/genmcf548x/include/bspopts.h.in new file mode 100644 index 0000000000..600a320a2a --- /dev/null +++ b/c/src/lib/libbsp/m68k/genmcf548x/include/bspopts.h.in @@ -0,0 +1,48 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* initial baudrate for UARTs */ +#undef BSP_CONSOLE_BAUD + +/* The bus clock to be used inside the mcf54xx */ +#undef BSP_CPU_CLOCK_SPEED + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* If defined, we will not boot from RESET, but from Freescale DBug monitor. + */ +#undef HAS_DBUG + +/* If defined, we will do all the low level init of the chip (like + bus/memory...). */ +#undef HAS_LOW_LEVEL_INIT + +/* If defined, use custom settings for the m5484FireEngine BSP. */ +#undef M5484FIREENGINE + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/m68k/idp/include/bspopts.h.in b/c/src/lib/libbsp/m68k/idp/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/m68k/idp/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/m68k/mcf5206elite/include/bspopts.h.in b/c/src/lib/libbsp/m68k/mcf5206elite/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/m68k/mcf5206elite/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/m68k/mcf52235/include/bspopts.h.in b/c/src/lib/libbsp/m68k/mcf52235/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/m68k/mcf52235/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/m68k/mcf5225x/include/bspopts.h.in b/c/src/lib/libbsp/m68k/mcf5225x/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/m68k/mcf5225x/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/m68k/mcf5235/include/bspopts.h.in b/c/src/lib/libbsp/m68k/mcf5235/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/m68k/mcf5235/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/m68k/mcf5329/include/bspopts.h.in b/c/src/lib/libbsp/m68k/mcf5329/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/m68k/mcf5329/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/m68k/mrm332/include/bspopts.h.in b/c/src/lib/libbsp/m68k/mrm332/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/m68k/mrm332/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/m68k/mvme136/include/bspopts.h.in b/c/src/lib/libbsp/m68k/mvme136/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/m68k/mvme136/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/m68k/mvme147/include/bspopts.h.in b/c/src/lib/libbsp/m68k/mvme147/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/m68k/mvme147/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/m68k/mvme147s/include/bspopts.h.in b/c/src/lib/libbsp/m68k/mvme147s/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/m68k/mvme147s/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/m68k/mvme162/include/bspopts.h.in b/c/src/lib/libbsp/m68k/mvme162/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/m68k/mvme162/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/m68k/mvme167/include/bspopts.h.in b/c/src/lib/libbsp/m68k/mvme167/include/bspopts.h.in new file mode 100644 index 0000000000..1f523f4fdd --- /dev/null +++ b/c/src/lib/libbsp/m68k/mvme167/include/bspopts.h.in @@ -0,0 +1,55 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Interrupt level for the CD2401(when CD2401_IO_MODE == 1). */ +#undef CD2401_INT_LEVEL + +/* 0 for polled I/O, 1 for interrupt-driven. */ +#undef CD2401_IO_MODE + +/* 1 for using termios based console. */ +#undef CD2401_USE_TERMIOS + +/* Port to use for the RTEMS console. 0 - /dev/tty0, Serial Port 1/Console on + the MVME712M. 1 - /dev/tty1, Serial Port 2/TTY01 on the MVME712M. 2 - + /dev/tty2, Serial Port 3 on the MVME712M. 3 - /dev/tty3, Serial Port 4 on + the MVME712M. */ +#undef CONSOLE_MINOR + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Port to use for printk debugging output. 0 - /dev/tty0, Serial Port + 1/Console on the MVME712M. 1 - /dev/tty1, Serial Port 2/TTY01 on the + MVME712M. 2 - /dev/tty2, Serial Port 3 on the MVME712M. 3 - /dev/tty3, + Serial Port 4 on the MVME712M. */ +#undef PRINTK_MINOR + +/* If building the mvme167 BSP */ +#undef mvme167 diff --git a/c/src/lib/libbsp/m68k/ods68302/include/bspopts.h.in b/c/src/lib/libbsp/m68k/ods68302/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/m68k/ods68302/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/m68k/sim68000/include/bspopts.h.in b/c/src/lib/libbsp/m68k/sim68000/include/bspopts.h.in new file mode 100644 index 0000000000..65ffe83f8c --- /dev/null +++ b/c/src/lib/libbsp/m68k/sim68000/include/bspopts.h.in @@ -0,0 +1,39 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* The erc32 console driver can operate in either polled or interrupt mode. + Under the simulator (especially when FAST_UART is defined), polled seems to + operate better. It is common for a task to print a line (like the end of + test message) and then exit. In this case, the program returns control to + the simulator command line before the program has even queued the output to + the uart. Thus sis has no chance of getting the data out. */ +#undef CONSOLE_USE_INTERRUPTS + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/m68k/uC5282/include/bspopts.h.in b/c/src/lib/libbsp/m68k/uC5282/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/m68k/uC5282/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/mips/csb350/include/bspopts.h.in b/c/src/lib/libbsp/mips/csb350/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/mips/csb350/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/mips/genmongoosev/include/bspopts.h.in b/c/src/lib/libbsp/mips/genmongoosev/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/mips/genmongoosev/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/mips/hurricane/include/bspopts.h.in b/c/src/lib/libbsp/mips/hurricane/include/bspopts.h.in new file mode 100644 index 0000000000..35190525f3 --- /dev/null +++ b/c/src/lib/libbsp/mips/hurricane/include/bspopts.h.in @@ -0,0 +1,37 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* This BSP has a RM52xx compatible CPU. */ +#undef BSP_HAS_RM52xx + +/* This BSP has a V3 USC320 system controller chip. */ +#undef BSP_HAS_USC320 + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/mips/jmr3904/include/bspopts.h.in b/c/src/lib/libbsp/mips/jmr3904/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/mips/jmr3904/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/mips/malta/include/bspopts.h.in b/c/src/lib/libbsp/mips/malta/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/mips/malta/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/mips/rbtx4925/include/bspopts.h.in b/c/src/lib/libbsp/mips/rbtx4925/include/bspopts.h.in new file mode 100644 index 0000000000..bd1bc289e1 --- /dev/null +++ b/c/src/lib/libbsp/mips/rbtx4925/include/bspopts.h.in @@ -0,0 +1,34 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* This BSP has a RM52xx compatible CPU. */ +#undef BSP_HAS_TX49xx + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/mips/rbtx4938/include/bspopts.h.in b/c/src/lib/libbsp/mips/rbtx4938/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/mips/rbtx4938/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/nios2/nios2_iss/include/bspopts.h.in b/c/src/lib/libbsp/nios2/nios2_iss/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/nios2/nios2_iss/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/no_cpu/no_bsp/include/bspopts.h.in b/c/src/lib/libbsp/no_cpu/no_bsp/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/no_cpu/no_bsp/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/powerpc/beatnik/include/bspopts.h.in b/c/src/lib/libbsp/powerpc/beatnik/include/bspopts.h.in new file mode 100644 index 0000000000..48156f1649 --- /dev/null +++ b/c/src/lib/libbsp/powerpc/beatnik/include/bspopts.h.in @@ -0,0 +1,38 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* enables the data cache, if defined to a value other than zero */ +#undef BSP_DATA_CACHE_ENABLED + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* enables the instruction cache, if defined to a value other than zero */ +#undef BSP_INSTRUCTION_CACHE_ENABLED + +/* If defined then the BSP may reduce the available memory size initially. + This can be useful for debugging (reduce the core size) or dynamic loading + (std gcc text offsets/jumps are < +/-32M). Note that the policy can still + be defined by the application (see sbrk.c, BSP_sbrk_policy). By undefining + CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK this feature is removed and a little + memory is saved. */ +#undef CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/powerpc/ep1a/include/bspopts.h.in b/c/src/lib/libbsp/powerpc/ep1a/include/bspopts.h.in new file mode 100644 index 0000000000..5dd1541836 --- /dev/null +++ b/c/src/lib/libbsp/powerpc/ep1a/include/bspopts.h.in @@ -0,0 +1,48 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* enables the data cache, if defined to a value other than zero */ +#undef BSP_DATA_CACHE_ENABLED + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* enables the instruction cache, if defined to a value other than zero */ +#undef BSP_INSTRUCTION_CACHE_ENABLED + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* If defined then the BSP may reduce the available memory size initially. + This can be useful for debugging (reduce the core size) or dynamic loading + (std gcc text offsets/jumps are < +/-32M). Note that the policy can still + be defined by the application (see sbrk.c, BSP_sbrk_policy). By undefining + CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK this feature is removed and a little + memory is saved. */ +#undef CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK + +/* whether using console interrupts */ +#undef CONSOLE_USE_INTERRUPTS + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/powerpc/gen5200/include/bspopts.h.in b/c/src/lib/libbsp/powerpc/gen5200/include/bspopts.h.in new file mode 100644 index 0000000000..fae44b7a23 --- /dev/null +++ b/c/src/lib/libbsp/powerpc/gen5200/include/bspopts.h.in @@ -0,0 +1,85 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If set to !0, allow nested IRQ processing. */ +#undef ALLOW_IRQ_NESTING + +/* If set to !0, enable code to benchmark IRQ processing. */ +#undef BENCHMARK_IRQ_PROCESSING + +/* enable settings for BRS5L */ +#undef BRS5L + +/* enables the data cache, if defined to a value other than zero */ +#undef BSP_DATA_CACHE_ENABLED + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* defines the bits modified in the MPC5200 GPIOPCR register during init. Must + match the hardware requirements */ +#undef BSP_GPIOPCR_INITMASK + +/* defines the bit values written in the MPC5200 GPIOPCR register during init. + Must match the hardware requirements */ +#undef BSP_GPIOPCR_INITVAL + +/* enables the instruction cache, if defined to a value other than zero */ +#undef BSP_INSTRUCTION_CACHE_ENABLED + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* enable settings for DP2 */ +#undef BSP_TYPE_DP2 + +/* bit mask to specify the UARTS (PSCs), which should be enabled on this + board. Must match the hardware requirements. PSC1 corresponds to the LSB */ +#undef BSP_UART_AVAIL_MASK + +/* enable U-Boot startup */ +#undef HAS_UBOOT + +/* PSC index for GPS module, if defined results in '/dev/gps' */ +#undef MPC5200_PSC_INDEX_FOR_GPS_MODULE + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* enable settings for PM520 CR825 */ +#undef PM520_CR825 + +/* enable settings for PM520 ZE30 */ +#undef PM520_ZE30 + +/* console minor number used by printk() */ +#undef PRINTK_MINOR + +/* enable single character mode for the PSC console driver */ +#undef SINGLE_CHAR_MODE + +/* enable interrupt support for the PSC console driver */ +#undef UARTS_USE_TERMIOS_INT + +/* enable settings for IceCube */ +#undef icecube diff --git a/c/src/lib/libbsp/powerpc/gen83xx/include/bspopts.h.in b/c/src/lib/libbsp/powerpc/gen83xx/include/bspopts.h.in new file mode 100644 index 0000000000..67dbe29d22 --- /dev/null +++ b/c/src/lib/libbsp/powerpc/gen83xx/include/bspopts.h.in @@ -0,0 +1,67 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* default baud for console and other serial devices */ +#undef BSP_CONSOLE_BAUD + +/* enables the data cache, if defined to a value other than zero */ +#undef BSP_DATA_CACHE_ENABLED + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* enables the instruction cache, if defined to a value other than zero */ +#undef BSP_INSTRUCTION_CACHE_ENABLED + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* if defined, enables UART2 */ +#undef BSP_USE_UART2 + +/* enable usage of interrupts for the UART modules */ +#undef BSP_USE_UART_INTERRUPTS + +/* enable interrupt nesting */ +#undef GEN83XX_ENABLE_INTERRUPT_NESTING + +/* if defined, enables U-Boot support */ +#undef HAS_UBOOT + +/* if defined, then use settings for the HSC_CM01 board */ +#undef MPC83XX_BOARD_HSC_CM01 + +/* if defined, then use settings for the MPC8309SOM board */ +#undef MPC83XX_BOARD_MPC8309SOM + +/* if defined, then use settings for the MPC8313ERDB board */ +#undef MPC83XX_BOARD_MPC8313ERDB + +/* if defined, then use settings for the MPC8349EAMDS board */ +#undef MPC83XX_BOARD_MPC8349EAMDS + +/* chip type of the MPC83XX family */ +#undef MPC83XX_CHIP_TYPE + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/powerpc/haleakala/include/bspopts.h.in b/c/src/lib/libbsp/powerpc/haleakala/include/bspopts.h.in new file mode 100644 index 0000000000..203dde99dc --- /dev/null +++ b/c/src/lib/libbsp/powerpc/haleakala/include/bspopts.h.in @@ -0,0 +1,40 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* If defined, then the PowerPC specific code in RTEMS will use some of the + special purpose registers to slightly optimize interrupt response time. The + use of these registers can conflict with other tools like debuggers. */ +#undef PPC_USE_SPRG + +/* This defines the base address of the exception table. NOTE: Vectors are + actually at 0xFFF00000 but file starts at offset. */ +#undef PPC_VECTOR_FILE_BASE diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/include/bspopts.h.in b/c/src/lib/libbsp/powerpc/mbx8xx/include/bspopts.h.in new file mode 100644 index 0000000000..47d1b29142 --- /dev/null +++ b/c/src/lib/libbsp/powerpc/mbx8xx/include/bspopts.h.in @@ -0,0 +1,93 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* enables the data cache, if defined to a value other than zero */ +#undef BSP_DATA_CACHE_ENABLED + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* enables the instruction cache, if defined to a value other than zero */ +#undef BSP_INSTRUCTION_CACHE_ENABLED + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* (BSP--console driver) Must be defined to be one of SMC1_MINOR, SMC2_MINOR, + SCC2_MINOR, SCC3_MINOR, or SCC4_MINOR. Determines which device will be + registered as /dev/console. */ +#undef CONSOLE_MINOR + +/* used by irq/irq.c */ +#undef DISPATCH_HANDLER_STAT + +/* (BSP--console driver) If defined, SMC1 is in use by EPPC-Bug. The console + driver will not re-initialize that port. */ +#undef EPPCBUG_SMC1 + +/* (BSP--RTEMS) If defined, vectors branch to EPPCBug, except the following: + 0x500 (external interrupt), 0x900 (decrementer). */ +#undef EPPCBUG_VECTORS + +/* Define to 1 if you want the console driver, network driver and caches + configured at boot time from parameters stored in NVRAM. If set to 1, most + parameters below are ignored during the build. If not set to 1, then the + console driver is configured at build time, the network host information is + obtained from application supplied data structures, and the caches are + configured at boot time based on the information supplied in this file. */ +#undef NVRAM_CONFIGURE + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* (BSP--console driver) Define to 0 or 1 if you want polled I/O performed by + RTEMS. Define to 2 if you want polled I/O performed by EPPCBug. The + printk() port is not configured to use termios. With EPPCBug 1.1, if mode 2 + is selected, PRINTK_MINOR must be set to SMC1_MINOR. This is a deficiency + of the firmware: it does not perform serial I/O on any port other than its + default debug port, which must be SMC1. Printk always uses polled output. + */ +#undef PRINTK_IO_MODE + +/* (BSP--console driver) Must be defined to be one of SMC1_MINOR, SMC2_MINOR, + SCC2_MINOR, SCC3_MINOR, or SCC4_MINOR. Determines which device is used for + output by printk(). If the port that printk() uses is also used for other + I/O (e.g. if PRINTK_MINOR == \$CONSOLE_MINOR), then both ports should use + the same type of I/O, otherwise the drivers will likely conflict with each + other. */ +#undef PRINTK_MINOR + +/* (BSP--console driver) Define to 0 or 1 if you want polled I/O performed by + RTEMS. Define to 1 if you want interrupt-driven performed by RTEMS. Define + to 2 if you want polled I/O performed by EPPCBug. There is no provision to + have a mix of interrupt-driven and polled I/O ports, except that the printk + port may use a different mode from the other ports. If this is done, do not + open the printk port from an RTEMS application. With EPPCBug 1.1, if mode 2 + is selected, CONSOLE_MINOR must be set to SMC1_MINOR. This is a deficiency + of the firmware: it does not perform serial I/O on any port other than its + default debug port, which must be SMC1. */ +#undef UARTS_IO_MODE + +/* Define to 1 if you want termios support for every port. Termios support is + independent of the choice of UART I/O mode. */ +#undef UARTS_USE_TERMIOS diff --git a/c/src/lib/libbsp/powerpc/motorola_powerpc/include/bspopts.h.in b/c/src/lib/libbsp/powerpc/motorola_powerpc/include/bspopts.h.in new file mode 100644 index 0000000000..0e78dcd739 --- /dev/null +++ b/c/src/lib/libbsp/powerpc/motorola_powerpc/include/bspopts.h.in @@ -0,0 +1,54 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* enables the data cache, if defined to a value other than zero */ +#undef BSP_DATA_CACHE_ENABLED + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* enables the instruction cache, if defined to a value other than zero */ +#undef BSP_INSTRUCTION_CACHE_ENABLED + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* If defined then the BSP may reduce the available memory size initially. + This can be useful for debugging (reduce the core size) or dynamic loading + (std gcc text offsets/jumps are < +/-32M). Note that the policy can still + be defined by the application (see sbrk.c, BSP_sbrk_policy). By undefining + CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK this feature is removed and a little + memory is saved. */ +#undef CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Defined for boards with MPC8240 -- undefined for others */ +#undef mpc8240 + +/* Defined for MVME2100 -- undefined for others */ +#undef mvme2100 + +/* Defined for QEMU BSP -- undefined for others */ +#undef qemu diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/include/bspopts.h.in b/c/src/lib/libbsp/powerpc/mpc55xxevb/include/bspopts.h.in new file mode 100644 index 0000000000..5049d2ea3f --- /dev/null +++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/include/bspopts.h.in @@ -0,0 +1,114 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* enables the data cache, if defined to a value other than zero */ +#undef BSP_DATA_CACHE_ENABLED + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* enables the instruction cache, if defined to a value other than zero */ +#undef BSP_INSTRUCTION_CACHE_ENABLED + +/* defines the maximum number of interrupt handlers */ +#undef BSP_INTERRUPT_HANDLER_TABLE_SIZE + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* If defined the board has the SMC91111 networking chip. */ +#undef HAS_SMC91111 + +/* if defined, use custom settings for GWLCFM board */ +#undef MPC55XX_BOARD_GWLCFM + +/* if defined, use custom settings for MPC5566EVB board */ +#undef MPC55XX_BOARD_MPC5566EVB + +/* if defined, use custom settings for MPC5674FEVB board */ +#undef MPC55XX_BOARD_MPC5674FEVB + +/* if defined, use custom settings for phyCORE MPC5554 board */ +#undef MPC55XX_BOARD_PHYCORE_MPC5554 + +/* if defined, use custom settings for XKT564LEVB board */ +#undef MPC55XX_BOARD_XKT564LEVB + +/* if defined, builds in bootflags above the RCHW for setup in a debugger to + avoid startup MMU setup */ +#undef MPC55XX_BOOTFLAGS + +/* specifies the chip type in use (e.g. 5554 for MPC5554) */ +#undef MPC55XX_CHIP_TYPE + +/* selects the eMIOS channel for the RTEMS system tick (the default is the + last channel) */ +#undef MPC55XX_CLOCK_EMIOS_CHANNEL + +/* selects the PIT channel for the RTEMS system tick (the default is the last + channel) */ +#undef MPC55XX_CLOCK_PIT_CHANNEL + +/* size of the early initialization stack in bytes */ +#undef MPC55XX_EARLY_STACK_SIZE + +/* Must be defined to set the EMIOS prescaler */ +#undef MPC55XX_EMIOS_PRESCALER + +/* determines which eSCI device will be registered as /dev/console */ +#undef MPC55XX_ESCI_CONSOLE_MINOR + +/* define to zero or one to disable or enable interrupts for the eSCI devices + */ +#undef MPC55XX_ESCI_USE_INTERRUPTS + +/* Must be defined to be the PLL output clock (in Hz) for clock generation */ +#undef MPC55XX_FMPLL_CLK_OUT + +/* Must be defined to be the PLL multiplication factor for clock generation */ +#undef MPC55XX_FMPLL_MFD + +/* Must be defined to be the PLL predivider factor for clock generation */ +#undef MPC55XX_FMPLL_PREDIV + +/* Must be defined to be the external reference clock (in Hz) for clock + generation */ +#undef MPC55XX_FMPLL_REF_CLOCK + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* EEPROM name for LibI2C */ +#undef RTEMS_BSP_I2C_EEPROM_DEVICE_NAME + +/* EEPROM device file path */ +#undef RTEMS_BSP_I2C_EEPROM_DEVICE_PATH + +/* If defined the SMC91111 chip has the ethernet address loaded at reset. */ +#undef SMC91111_ENADDR_IS_SETUP + +/* receive eDMA channel for SMSC9218I network interface */ +#undef SMSC9218I_EDMA_RX_CHANNEL + +/* transmit eDMA channel for SMSC9218I network interface */ +#undef SMSC9218I_EDMA_TX_CHANNEL diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/include/bspopts.h.in b/c/src/lib/libbsp/powerpc/mpc8260ads/include/bspopts.h.in new file mode 100644 index 0000000000..0f8230e492 --- /dev/null +++ b/c/src/lib/libbsp/powerpc/mpc8260ads/include/bspopts.h.in @@ -0,0 +1,68 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* enables the data cache, if defined to a value other than zero */ +#undef BSP_DATA_CACHE_ENABLED + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* enables the instruction cache, if defined to a value other than zero */ +#undef BSP_INSTRUCTION_CACHE_ENABLED + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* (BSP--console driver) Must be defined to be one of SMC1_MINOR, SMC2_MINOR, + SCC2_MINOR, SCC3_MINOR, or SCC4_MINOR. Determines which device will be + registered as /dev/console. */ +#undef CONSOLE_MINOR + +/* used by irq/irq.c */ +#undef DISPATCH_HANDLER_STAT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* (BSP--console driver) Must be defined to be one of SMC1_MINOR, SMC2_MINOR, + SCC2_MINOR, SCC3_MINOR, or SCC4_MINOR. Determines which device is used for + output by printk(). If the port that printk() uses is also used for other + I/O (e.g. if PRINTK_MINOR == \$CONSOLE_MINOR), then both ports should use + the same type of I/O, otherwise the drivers will likely conflict with each + other. */ +#undef PRINTK_MINOR + +/* (BSP--console driver) Define to 0 or 1 if you want polled I/O performed by + RTEMS. Define to 1 if you want interrupt-driven performed by RTEMS. Define + to 2 if you want polled I/O performed by EPPCBug. There is no provision to + have a mix of interrupt-driven and polled I/O ports, except that the printk + port may use a different mode from the other ports. If this is done, do not + open the printk port from an RTEMS application. With EPPCBug 1.1, if mode 2 + is selected, CONSOLE_MINOR must be set to SMC1_MINOR. This is a deficiency + of the firmware: it does not perform serial I/O on any port other than its + default debug port, which must be SMC1. */ +#undef UARTS_IO_MODE + +/* Define to 1 if you want termios support for every port. Termios support is + independent of the choice of UART I/O mode. */ +#undef UARTS_USE_TERMIOS diff --git a/c/src/lib/libbsp/powerpc/mvme3100/include/bspopts.h.in b/c/src/lib/libbsp/powerpc/mvme3100/include/bspopts.h.in new file mode 100644 index 0000000000..d72baf0bdb --- /dev/null +++ b/c/src/lib/libbsp/powerpc/mvme3100/include/bspopts.h.in @@ -0,0 +1,45 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* enables the data cache, if defined to a value other than zero */ +#undef BSP_DATA_CACHE_ENABLED + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* enables the instruction cache, if defined to a value other than zero */ +#undef BSP_INSTRUCTION_CACHE_ENABLED + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* If defined then the BSP may reduce the available memory size initially. + This can be useful for debugging (reduce the core size) or dynamic loading + (std gcc text offsets/jumps are < +/-32M). Note that the policy can still + be defined by the application (see sbrk.c, BSP_sbrk_policy). By undefining + CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK this feature is removed and a little + memory is saved. */ +#undef CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/powerpc/mvme5500/include/bspopts.h.in b/c/src/lib/libbsp/powerpc/mvme5500/include/bspopts.h.in new file mode 100644 index 0000000000..d72baf0bdb --- /dev/null +++ b/c/src/lib/libbsp/powerpc/mvme5500/include/bspopts.h.in @@ -0,0 +1,45 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* enables the data cache, if defined to a value other than zero */ +#undef BSP_DATA_CACHE_ENABLED + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* enables the instruction cache, if defined to a value other than zero */ +#undef BSP_INSTRUCTION_CACHE_ENABLED + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* If defined then the BSP may reduce the available memory size initially. + This can be useful for debugging (reduce the core size) or dynamic loading + (std gcc text offsets/jumps are < +/-32M). Note that the policy can still + be defined by the application (see sbrk.c, BSP_sbrk_policy). By undefining + CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK this feature is removed and a little + memory is saved. */ +#undef CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/powerpc/psim/include/bspopts.h.in b/c/src/lib/libbsp/powerpc/psim/include/bspopts.h.in new file mode 100644 index 0000000000..3d09558955 --- /dev/null +++ b/c/src/lib/libbsp/powerpc/psim/include/bspopts.h.in @@ -0,0 +1,53 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* This sets a mode where the time runs as fast as possible when a clock ISR + occurs while the IDLE thread is executing. This can significantly reduce + simulation times. */ +#undef CLOCK_DRIVER_USE_FAST_IDLE + +/* If defined then the BSP may reduce the available memory size initially. + This can be useful for debugging (reduce the core size) or dynamic loading + (std gcc text offsets/jumps are < +/-32M). Note that the policy can still + be defined by the application (see sbrk.c, BSP_sbrk_policy). By undefining + CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK this feature is removed and a little + memory is saved. */ +#undef CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* If defined, then the PowerPC specific code in RTEMS will use some of the + special purpose registers to slightly optimize interrupt response time. The + use of these registers can conflict with other tools like debuggers. */ +#undef PPC_USE_SPRG + +/* This defines the base address of the exception table. NOTE: Vectors are + actually at 0xFFF00000 but file starts at offset. */ +#undef PPC_VECTOR_FILE_BASE diff --git a/c/src/lib/libbsp/powerpc/qemuppc/include/bspopts.h.in b/c/src/lib/libbsp/powerpc/qemuppc/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/powerpc/qemuppc/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/powerpc/qoriq/include/bspopts.h.in b/c/src/lib/libbsp/powerpc/qoriq/include/bspopts.h.in new file mode 100644 index 0000000000..917596f028 --- /dev/null +++ b/c/src/lib/libbsp/powerpc/qoriq/include/bspopts.h.in @@ -0,0 +1,98 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* default baud for console and other serial devices */ +#undef BSP_CONSOLE_BAUD + +/* enables the data cache, if defined to a value other than zero */ +#undef BSP_DATA_CACHE_ENABLED + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* disable U-Boot work area configuration */ +#undef BSP_DISABLE_UBOOT_WORK_AREA_CONFIG + +/* enables the instruction cache, if defined to a value other than zero */ +#undef BSP_INSTRUCTION_CACHE_ENABLED + +/* indicate that the interrupt stack is at the work area begin */ +#undef BSP_INTERRUPT_STACK_AT_WORK_AREA_BEGIN + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* enable usage of interrupts for the UART modules */ +#undef BSP_USE_UART_INTERRUPTS + +/* enables U-Boot support */ +#undef HAS_UBOOT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* global timer used for system clock, 0..3 maps to A0..A3, and 4..7 maps to + B0..B3 */ +#undef QORIQ_CLOCK_TIMER + +/* PHY address for eTSEC interface 1 */ +#undef QORIQ_ETSEC_1_PHY_ADDR + +/* PHY address for eTSEC interface 2 */ +#undef QORIQ_ETSEC_2_PHY_ADDR + +/* PHY address for eTSEC interface 3 */ +#undef QORIQ_ETSEC_3_PHY_ADDR + +/* initial MSR value */ +#undef QORIQ_INITIAL_MSR + +/* initial SPEFSCR value */ +#undef QORIQ_INITIAL_SPEFSCR + +/* inter-processor communication area begin */ +#undef QORIQ_INTERCOM_AREA_BEGIN + +/* inter-processor communication area size */ +#undef QORIQ_INTERCOM_AREA_SIZE + +/* use 1 to enable UART 0, otherwise use 0 */ +#undef QORIQ_UART_0_ENABLE + +/* use 1 to enable UART 1, otherwise use 0 */ +#undef QORIQ_UART_1_ENABLE + +/* use 1 to enable UART 0 to Intercom bridge, otherwise use 0 */ +#undef QORIQ_UART_BRIDGE_0_ENABLE + +/* use 1 to enable UART 1 to Intercom bridge, otherwise use 0 */ +#undef QORIQ_UART_BRIDGE_1_ENABLE + +/* UART to Intercom bridge master core index */ +#undef QORIQ_UART_BRIDGE_MASTER_CORE + +/* UART to Intercom bridge slave core index */ +#undef QORIQ_UART_BRIDGE_SLAVE_CORE + +/* UART to Intercom bridge task priority */ +#undef QORIQ_UART_BRIDGE_TASK_PRIORITY diff --git a/c/src/lib/libbsp/powerpc/score603e/include/bspopts.h.in b/c/src/lib/libbsp/powerpc/score603e/include/bspopts.h.in new file mode 100644 index 0000000000..cb78c29751 --- /dev/null +++ b/c/src/lib/libbsp/powerpc/score603e/include/bspopts.h.in @@ -0,0 +1,75 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* enables the data cache, if defined to a value other than zero */ +#undef BSP_DATA_CACHE_ENABLED + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* enables the instruction cache, if defined to a value other than zero */ +#undef BSP_INSTRUCTION_CACHE_ENABLED + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* If defined then the BSP may reduce the available memory size initially. + This can be useful for debugging (reduce the core size) or dynamic loading + (std gcc text offsets/jumps are < +/-32M). Note that the policy can still + be defined by the application (see sbrk.c, BSP_sbrk_policy). By undefining + CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK this feature is removed and a little + memory is saved. */ +#undef CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK + +/* whether using console interrupts */ +#undef CONSOLE_USE_INTERRUPTS + +/* whether has a PSC8 PMC board attached to PMC slot */ +#undef HAS_PMC_PSC8 + +/* FIXME: Missing explanation */ +#undef INITIALIZE_COM_PORTS + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* If defined, then the PowerPC specific code in RTEMS will use some of the + special purpose registers to slightly optimize interrupt response time. The + use of these registers can conflict with other tools like debuggers. */ +#undef PPC_USE_SPRG + +/* This defines the base address of the exception table. NOTE: Vectors are + actually at 0xFFF00000 but file starts at offset. */ +#undef PPC_VECTOR_FILE_BASE + +/* use Open Firmware ROM monitor */ +#undef SCORE603E_OPEN_FIRMWARE + +/* FIXME: Missing explanation. */ +#undef SCORE603E_USE_DINK + +/* use no ROM monitor */ +#undef SCORE603E_USE_NONE + +/* use SDS ROM monitor */ +#undef SCORE603E_USE_SDS diff --git a/c/src/lib/libbsp/powerpc/ss555/include/bspopts.h.in b/c/src/lib/libbsp/powerpc/ss555/include/bspopts.h.in new file mode 100644 index 0000000000..530811d55b --- /dev/null +++ b/c/src/lib/libbsp/powerpc/ss555/include/bspopts.h.in @@ -0,0 +1,52 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Must be defined to be one of SCI1_MINOR or SCI2_MINOR. Determines which + device will be registered as /dev/console. */ +#undef CONSOLE_MINOR + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Must be defined to be one of SCI1_MINOR or SCI2_MINOR. Determines which + device is used for output by printk(). The printk port always uses polled + I/O. Don't open the printk port from RTEMS unless also using polled I/O for + the SCI ports. */ +#undef PRINTK_MINOR + +/* Define to 1 if you want interrupt-driven I/O for the SCI ports. */ +#undef UARTS_IO_MODE + +/* Define to 1 if you want termios support for every port. Termios support is + independent of the choice of UART I/O mode. */ +#undef UARTS_USE_TERMIOS + +/* Define to the desired timeout (in steps of 1/20 msec) to enable the + watchdog. Default is to disable the watchdog entirely. */ +#undef WATCHDOG_TIMEOUT diff --git a/c/src/lib/libbsp/powerpc/t32mppc/include/bspopts.h.in b/c/src/lib/libbsp/powerpc/t32mppc/include/bspopts.h.in new file mode 100644 index 0000000000..58c1a2ecdb --- /dev/null +++ b/c/src/lib/libbsp/powerpc/t32mppc/include/bspopts.h.in @@ -0,0 +1,37 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* enables the data cache, if defined to a value other than zero */ +#undef BSP_DATA_CACHE_ENABLED + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* enables the instruction cache, if defined to a value other than zero */ +#undef BSP_INSTRUCTION_CACHE_ENABLED + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/powerpc/tqm8xx/include/bspopts.h.in b/c/src/lib/libbsp/powerpc/tqm8xx/include/bspopts.h.in new file mode 100644 index 0000000000..979660e2bf --- /dev/null +++ b/c/src/lib/libbsp/powerpc/tqm8xx/include/bspopts.h.in @@ -0,0 +1,107 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* enables the data cache, if defined to a value other than zero */ +#undef BSP_DATA_CACHE_ENABLED + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* enables the instruction cache, if defined to a value other than zero */ +#undef BSP_INSTRUCTION_CACHE_ENABLED + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* If defined, then the BSP will use the Fast Ethernet Controller for + 10/100MBit networking and used as primary networking interface. */ +#undef BSP_USE_NETWORK_FEC + +/* If defined, then the BSP will use the Serial Communications Controller + (SCC1) for 10MBit networking. */ +#undef BSP_USE_NETWORK_SCC + +/* (BSP--console driver) Must be defined to be one of CONS_CHN_SMC1, + CONS_CHN_SMC2, CONS_CHN_SCC1, CONS_CHN_SCC2, CONS_CHN_SCC3, or + CONS_CHN_SCC4. Determines which device will be registered as /dev/console. + */ +#undef CONSOLE_CHN + +/* (BSP--SCC1 UART IF mode) Must be defined if SCC1 is used as a tty (UART) + channel. Set it to CONS_MODE_POLLED for polled operation, CONS_MODE_IRQ for + interrupt driven (spooled) operation. Set it to CONS_MODE_UNUSED, if not + used */ +#undef CONS_SCC1_MODE + +/* (BSP--SCC2 UART IF mode) Must be defined if SCC2 is used as a tty (UART) + channel. Set it to CONS_MODE_POLLED for polled operation, CONS_MODE_IRQ for + interrupt driven (spooled) operation. Set it to CONS_MODE_UNUSED, if not + used */ +#undef CONS_SCC2_MODE + +/* (BSP--SCC3 UART IF mode) Must be defined if SCC3 is used as a tty (UART) + channel. Set it to CONS_MODE_POLLED for polled operation, CONS_MODE_IRQ for + interrupt driven (spooled) operation. Set it to CONS_MODE_UNUSED, if not + used */ +#undef CONS_SCC3_MODE + +/* (BSP--SCC4 UART IF mode) Must be defined if SCC4 is used as a tty (UART) + channel. Set it to CONS_MODE_POLLED for polled operation, CONS_MODE_IRQ for + interrupt driven (spooled) operation. Set it to CONS_MODE_UNUSED, if not + used */ +#undef CONS_SCC4_MODE + +/* (BSP--SMC1 UART IF mode) Must be defined if SMC1 is used as a tty (UART) + channel. Set it to CONS_MODE_POLLED for polled operation, CONS_MODE_IRQ for + interrupt driven (spooled) operation. Set it to CONS_MODE_UNUSED, if not + used */ +#undef CONS_SMC1_MODE + +/* (BSP--SMC2 UART IF mode) Must be defined if SMC2 is used as a tty (UART) + channel. Set it to CONS_MODE_POLLED for polled operation, CONS_MODE_IRQ for + interrupt driven (spooled) operation. Set it to CONS_MODE_UNUSED, if not + used */ +#undef CONS_SMC2_MODE + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* (BSP--console driver) Must be defined to be one of CONS_CHN_SMC1, + CONS_CHN_SMC2, CONS_CHN_SCC2, CONS_CHN_SCC3, or CONS_CHN_SCC4. Determines + which device is used for output by printk(). If the port that printk() uses + is also used for other I/O (e.g. if PRINTK_CHN == CONSOLE_CHN), then both + ports should use the same type of I/O, otherwise the drivers will likely + conflict with each other. */ +#undef PRINTK_CHN + +/* (BSP--SPI board init function) Specify the function that inits the board + port lines and further devices. */ +#undef SPI_BOARD_INIT_FNC + +/* (BSP--SPI send address function) Specify the function that addresses SPI + devices. Set to bsp_dummy_spi_sel_addr for dummy implementation */ +#undef SPI_SEND_ADDR_FNC + +/* (BSP--SPI send stop function) Specify the function that deaddresses SPI + devices. Set to bsp_dummy_spi_send_stop for dummy implementation */ +#undef SPI_SEND_STOP_FNC diff --git a/c/src/lib/libbsp/powerpc/virtex/include/bspopts.h.in b/c/src/lib/libbsp/powerpc/virtex/include/bspopts.h.in new file mode 100644 index 0000000000..46282d1690 --- /dev/null +++ b/c/src/lib/libbsp/powerpc/virtex/include/bspopts.h.in @@ -0,0 +1,48 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* If defined, then the PowerPC specific code in RTEMS will use some of the + special purpose registers to slightly optimize interrupt response time. The + use of these registers can conflict with other tools like debuggers. */ +#undef PPC_USE_SPRG + +/* This defines the base address of the exception table. NOTE: Vectors are + actually at 0xFFF00000 but file starts at offset. */ +#undef PPC_VECTOR_FILE_BASE + +/* This defines the location of the hardware specific "xparameters.h" file. in + the file system. Specify an absolute path. Don't forget the double quotes + */ +#undef RTEMS_XPARAMETERS_H + +/* Defines path to Xilinx XPS PPC libraries. */ +#undef RTEMS_XPPC_BASE diff --git a/c/src/lib/libbsp/powerpc/virtex4/include/bspopts.h.in b/c/src/lib/libbsp/powerpc/virtex4/include/bspopts.h.in new file mode 100644 index 0000000000..c2a7e266d7 --- /dev/null +++ b/c/src/lib/libbsp/powerpc/virtex4/include/bspopts.h.in @@ -0,0 +1,46 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* If defined, then the PowerPC specific code in RTEMS will use data cache + instructions to optimize the context switch code. This code can conflict + with debuggers or emulators. It is known to break the Corelis PowerPC + emulator with at least some combinations of PowerPC 603e revisions and + emulator versions. The BSP actually contains the call that enables this. */ +#undef PPC_USE_DATA_CACHE + +/* If defined, then the PowerPC specific code in RTEMS will use some of the + special purpose registers to slightly optimize interrupt response time. The + use of these registers can conflict with other tools like debuggers. */ +#undef PPC_USE_SPRG + +/* This defines the base address of the exception table. */ +#undef PPC_VECTOR_FILE_BASE diff --git a/c/src/lib/libbsp/powerpc/virtex5/include/bspopts.h.in b/c/src/lib/libbsp/powerpc/virtex5/include/bspopts.h.in new file mode 100644 index 0000000000..c2a7e266d7 --- /dev/null +++ b/c/src/lib/libbsp/powerpc/virtex5/include/bspopts.h.in @@ -0,0 +1,46 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* If defined, then the PowerPC specific code in RTEMS will use data cache + instructions to optimize the context switch code. This code can conflict + with debuggers or emulators. It is known to break the Corelis PowerPC + emulator with at least some combinations of PowerPC 603e revisions and + emulator versions. The BSP actually contains the call that enables this. */ +#undef PPC_USE_DATA_CACHE + +/* If defined, then the PowerPC specific code in RTEMS will use some of the + special purpose registers to slightly optimize interrupt response time. The + use of these registers can conflict with other tools like debuggers. */ +#undef PPC_USE_SPRG + +/* This defines the base address of the exception table. */ +#undef PPC_VECTOR_FILE_BASE diff --git a/c/src/lib/libbsp/sh/gensh1/include/bspopts.h.in b/c/src/lib/libbsp/sh/gensh1/include/bspopts.h.in new file mode 100644 index 0000000000..189550fcc7 --- /dev/null +++ b/c/src/lib/libbsp/sh/gensh1/include/bspopts.h.in @@ -0,0 +1,38 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* cpu clock rate in HZ */ +#undef CPU_CLOCK_RATE_HZ + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* If defined, selects whether 'early_hw_init()' is called from 'start.S'; + 'bsp_hw_init()' is always called from 'bspstart.c' */ +#undef START_HW_INIT diff --git a/c/src/lib/libbsp/sh/gensh2/include/bspopts.h.in b/c/src/lib/libbsp/sh/gensh2/include/bspopts.h.in new file mode 100644 index 0000000000..86c7661b2d --- /dev/null +++ b/c/src/lib/libbsp/sh/gensh2/include/bspopts.h.in @@ -0,0 +1,41 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* cpu clock rate in HZ */ +#undef CPU_CLOCK_RATE_HZ + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* If defined, compiles code to jump-start from FLASH, without a monitor */ +#undef STANDALONE_EVB + +/* If defined, selects whether 'early_hw_init()' is called from 'start.S'; + 'bsp_hw_init()' is always called from 'bspstart.c' */ +#undef START_HW_INIT diff --git a/c/src/lib/libbsp/sh/gensh4/include/bspopts.h.in b/c/src/lib/libbsp/sh/gensh4/include/bspopts.h.in new file mode 100644 index 0000000000..36a20b95c9 --- /dev/null +++ b/c/src/lib/libbsp/sh/gensh4/include/bspopts.h.in @@ -0,0 +1,37 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* cpu clock rate in HZ */ +#undef CPU_CLOCK_RATE_HZ + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Whether to call early_hw_init from start.S */ +#undef START_HW_INIT diff --git a/c/src/lib/libbsp/sh/shsim/include/bspopts.h.in b/c/src/lib/libbsp/sh/shsim/include/bspopts.h.in new file mode 100644 index 0000000000..19f69cb937 --- /dev/null +++ b/c/src/lib/libbsp/sh/shsim/include/bspopts.h.in @@ -0,0 +1,41 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* cpu clock rate in HZ */ +#undef CPU_CLOCK_RATE_HZ + +/* whether support for functional IOMEM in shsim/gdb shall be enabled */ +#undef HAVE_SHSIM_IOMEM_PATCH + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* If defined, selects whether 'early_hw_init()' is called from 'start.S'; + 'bsp_hw_init()' is always called from 'bspstart.c' */ +#undef START_HW_INIT diff --git a/c/src/lib/libbsp/sparc/erc32/include/bspopts.h.in b/c/src/lib/libbsp/sparc/erc32/include/bspopts.h.in new file mode 100644 index 0000000000..2f313da7a3 --- /dev/null +++ b/c/src/lib/libbsp/sparc/erc32/include/bspopts.h.in @@ -0,0 +1,49 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* The erc32 console driver can operate in either polled or interrupt mode. + Under the simulator (especially when FAST_UART is defined), polled seems to + operate better. It is common for a task to print a line (like the end of + test message) and then exit. In this case, the program returns control to + the simulator command line before the program has even queued the output to + the uart. Thus sis has no chance of getting the data out. */ +#undef CONSOLE_USE_INTERRUPTS + +/* If defined, then the SIS simulator specific code in the BSP will be + enabled. In particular, SIS requires special initialization not used on + real ERC32 hardware. */ +#undef ENABLE_SIS_QUIRKS + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* If defined, speed up the clock ticks while the idle task is running so time + spent in the idle task is minimized. This significantly reduces the wall + time required to execute the RTEMS test suites. */ +#undef SIMSPARC_FAST_IDLE diff --git a/c/src/lib/libbsp/sparc/leon2/include/bspopts.h.in b/c/src/lib/libbsp/sparc/leon2/include/bspopts.h.in new file mode 100644 index 0000000000..0623b97616 --- /dev/null +++ b/c/src/lib/libbsp/sparc/leon2/include/bspopts.h.in @@ -0,0 +1,44 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* The leon2 console driver can operate in either polled or interrupt mode. + Under the simulator (especially when FAST_UART is defined), polled seems to + operate better. It is common for a task to print a line (like the end of + test message) and then exit. In this case, the program returns control to + the simulator command line before the program has even queued the output to + the uart. Thus sis has no chance of getting the data out. */ +#undef CONSOLE_USE_INTERRUPTS + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* If defined, speed up the clock ticks while the idle task is running so time + spent in the idle task is minimized. This significantly reduces the wall + time required to execute the RTEMS test suites. */ +#undef SIMSPARC_FAST_IDLE diff --git a/c/src/lib/libbsp/sparc/leon3/include/bspopts.h.in b/c/src/lib/libbsp/sparc/leon3/include/bspopts.h.in new file mode 100644 index 0000000000..748cafe049 --- /dev/null +++ b/c/src/lib/libbsp/sparc/leon3/include/bspopts.h.in @@ -0,0 +1,45 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* Always defined when on a LEON3 to enable the LEON3 support for determining + the CPU core number in an SMP configuration. */ +#undef BSP_LEON3_SMP + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* The leon3 console driver can operate in either polled or interrupt mode. + Under the simulator (especially when FAST_UART is defined), polled seems to + operate better. */ +#undef CONSOLE_USE_INTERRUPTS + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* If defined, speed up the clock ticks while the idle task is running so time + spent in the idle task is minimized. This significantly reduces the wall + time required to execute the RTEMS test suites. */ +#undef SIMSPARC_FAST_IDLE diff --git a/c/src/lib/libbsp/sparc64/niagara/include/bspopts.h.in b/c/src/lib/libbsp/sparc64/niagara/include/bspopts.h.in new file mode 100644 index 0000000000..40e048c697 --- /dev/null +++ b/c/src/lib/libbsp/sparc64/niagara/include/bspopts.h.in @@ -0,0 +1,31 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/c/src/lib/libbsp/sparc64/usiii/include/bspopts.h.in b/c/src/lib/libbsp/sparc64/usiii/include/bspopts.h.in new file mode 100644 index 0000000000..7aab955d57 --- /dev/null +++ b/c/src/lib/libbsp/sparc64/usiii/include/bspopts.h.in @@ -0,0 +1,36 @@ +/* include/bspopts.h.in. Generated from configure.ac by autoheader. */ + +/* If defined, then the BSP Framework will put a non-zero pattern into the + RTEMS Workspace and C program heap. This should assist in finding code that + assumes memory starts set to zero. */ +#undef BSP_DIRTY_MEMORY + +/* If defined, print a message and wait until pressed before resetting board + when application exits. */ +#undef BSP_PRESS_KEY_FOR_RESET + +/* If defined, reset the board when the application exits. */ +#undef BSP_RESET_BOARD_AT_EXIT + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* If defined, speed up the clock ticks while the idle task is running so time + spent in the idle task is minimized. This significantly reduces the wall + time required to execute the RTEMS test suites. */ +#undef SIMSPARC_FAST_IDLE -- cgit v1.2.3 From cf42a6ea9dbb6ebee498ae8db319d3e475bcd6be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ralf=20Cors=C3=A9pius?= Date: Thu, 24 May 2012 06:38:27 +0200 Subject: Add config.h.in. --- .gitignore | 1 - cpukit/config.h.in | 495 ++++++++++++++++++++++++++++++++++++++ testsuites/fstests/config.h.in | 105 ++++++++ testsuites/libtests/config.h.in | 55 +++++ testsuites/mptests/config.h.in | 19 ++ testsuites/psxtests/config.h.in | 107 ++++++++ testsuites/psxtmtests/config.h.in | 99 ++++++++ testsuites/samples/config.h.in | 61 +++++ testsuites/sptests/config.h.in | 55 +++++ testsuites/tmtests/config.h.in | 22 ++ 10 files changed, 1018 insertions(+), 1 deletion(-) create mode 100644 cpukit/config.h.in create mode 100644 testsuites/fstests/config.h.in create mode 100644 testsuites/libtests/config.h.in create mode 100644 testsuites/mptests/config.h.in create mode 100644 testsuites/psxtests/config.h.in create mode 100644 testsuites/psxtmtests/config.h.in create mode 100644 testsuites/samples/config.h.in create mode 100644 testsuites/sptests/config.h.in create mode 100644 testsuites/tmtests/config.h.in diff --git a/.gitignore b/.gitignore index 8fb71ad022..32358cdc77 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ aclocal.m4 autom4te.cache configure -config.h.in Makefile.in diff --git a/cpukit/config.h.in b/cpukit/config.h.in new file mode 100644 index 0000000000..68d155e652 --- /dev/null +++ b/cpukit/config.h.in @@ -0,0 +1,495 @@ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* Define to 1 if you have the `bcmp' function. */ +#undef HAVE_BCMP + +/* Define to 1 if you have the `bcopy' function. */ +#undef HAVE_BCOPY + +/* Define to 1 if you have the `closedir' function. */ +#undef HAVE_CLOSEDIR + +/* Define to 1 if you have the `creat' function. */ +#undef HAVE_CREAT + +/* Define to 1 if you have the declaration of `CHAR_BIT', and to 0 if you + don't. */ +#undef HAVE_DECL_CHAR_BIT + +/* Define to 1 if you have the declaration of `flockfile', and to 0 if you + don't. */ +#undef HAVE_DECL_FLOCKFILE + +/* Define to 1 if you have the declaration of `ftrylockfile', and to 0 if you + don't. */ +#undef HAVE_DECL_FTRYLOCKFILE + +/* Define to 1 if you have the declaration of `funlockfile', and to 0 if you + don't. */ +#undef HAVE_DECL_FUNLOCKFILE + +/* Define to 1 if you have the declaration of `getegid', and to 0 if you + don't. */ +#undef HAVE_DECL_GETEGID + +/* Define to 1 if you have the declaration of `geteuid', and to 0 if you + don't. */ +#undef HAVE_DECL_GETEUID + +/* Define to 1 if you have the declaration of `getgid', and to 0 if you don't. + */ +#undef HAVE_DECL_GETGID + +/* Define to 1 if you have the declaration of `getpgid', and to 0 if you + don't. */ +#undef HAVE_DECL_GETPGID + +/* Define to 1 if you have the declaration of `getpgrp', and to 0 if you + don't. */ +#undef HAVE_DECL_GETPGRP + +/* Define to 1 if you have the declaration of `getrusage', and to 0 if you + don't. */ +#undef HAVE_DECL_GETRUSAGE + +/* Define to 1 if you have the declaration of `getsid', and to 0 if you don't. + */ +#undef HAVE_DECL_GETSID + +/* Define to 1 if you have the declaration of `getuid', and to 0 if you don't. + */ +#undef HAVE_DECL_GETUID + +/* Define to 1 if you have the declaration of `LONG_BIT', and to 0 if you + don't. */ +#undef HAVE_DECL_LONG_BIT + +/* Define to 1 if you have the declaration of `pthread_attr_getguardsize', and + to 0 if you don't. */ +#undef HAVE_DECL_PTHREAD_ATTR_GETGUARDSIZE + +/* Define to 1 if you have the declaration of `pthread_attr_getstack', and to + 0 if you don't. */ +#undef HAVE_DECL_PTHREAD_ATTR_GETSTACK + +/* Define to 1 if you have the declaration of `pthread_attr_setguardsize', and + to 0 if you don't. */ +#undef HAVE_DECL_PTHREAD_ATTR_SETGUARDSIZE + +/* Define to 1 if you have the declaration of `pthread_attr_setstack', and to + 0 if you don't. */ +#undef HAVE_DECL_PTHREAD_ATTR_SETSTACK + +/* Define to 1 if you have the declaration of `rcmd', and to 0 if you don't. + */ +#undef HAVE_DECL_RCMD + +/* Define to 1 if you have the declaration of `sbrk', and to 0 if you don't. + */ +#undef HAVE_DECL_SBRK + +/* Define to 1 if you have the declaration of `setegid', and to 0 if you + don't. */ +#undef HAVE_DECL_SETEGID + +/* Define to 1 if you have the declaration of `seteuid', and to 0 if you + don't. */ +#undef HAVE_DECL_SETEUID + +/* Define to 1 if you have the declaration of `setgid', and to 0 if you don't. + */ +#undef HAVE_DECL_SETGID + +/* Define to 1 if you have the declaration of `setpgid', and to 0 if you + don't. */ +#undef HAVE_DECL_SETPGID + +/* Define to 1 if you have the declaration of `setpgrp', and to 0 if you + don't. */ +#undef HAVE_DECL_SETPGRP + +/* Define to 1 if you have the declaration of `setsid', and to 0 if you don't. + */ +#undef HAVE_DECL_SETSID + +/* Define to 1 if you have the declaration of `setuid', and to 0 if you don't. + */ +#undef HAVE_DECL_SETUID + +/* Define to 1 if you have the declaration of `utime', and to 0 if you don't. + */ +#undef HAVE_DECL_UTIME + +/* Define to 1 if you have the declaration of `utimes', and to 0 if you don't. + */ +#undef HAVE_DECL_UTIMES + +/* Define to 1 if you have the declaration of `WORD_BIT', and to 0 if you + don't. */ +#undef HAVE_DECL_WORD_BIT + +/* Define to 1 if you have the declaration of `_POSIX_LOGIN_NAME_MAX', and to + 0 if you don't. */ +#undef HAVE_DECL__POSIX_LOGIN_NAME_MAX + +/* Define to 1 if you have the declaration of `__env_lock', and to 0 if you + don't. */ +#undef HAVE_DECL___ENV_LOCK + +/* Define to 1 if you have the declaration of `__env_unlock', and to 0 if you + don't. */ +#undef HAVE_DECL___ENV_UNLOCK + +/* Define to 1 if you have the header file. */ +#undef HAVE_ENVLOCK_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_ERRNO_H + +/* Define to 1 if you have the `execl' function. */ +#undef HAVE_EXECL + +/* Define to 1 if you have the `execle' function. */ +#undef HAVE_EXECLE + +/* Define to 1 if you have the `execlp' function. */ +#undef HAVE_EXECLP + +/* Define to 1 if you have the `execv' function. */ +#undef HAVE_EXECV + +/* Define to 1 if you have the `execve' function. */ +#undef HAVE_EXECVE + +/* Define to 1 if you have the `execvp' function. */ +#undef HAVE_EXECVP + +/* Define to 1 if you have the `fileno' function. */ +#undef HAVE_FILENO + +/* Define to 1 if you have the `flockfile' function. */ +#undef HAVE_FLOCKFILE + +/* Define to 1 if you have the `ftrylockfile' function. */ +#undef HAVE_FTRYLOCKFILE + +/* Define to 1 if you have the `funlockfile' function. */ +#undef HAVE_FUNLOCKFILE + +/* Define to 1 if you have the `getcwd' function. */ +#undef HAVE_GETCWD + +/* Define to 1 if you have the `getegid' function. */ +#undef HAVE_GETEGID + +/* Define to 1 if you have the `geteuid' function. */ +#undef HAVE_GETEUID + +/* Define to 1 if you have the `getgid' function. */ +#undef HAVE_GETGID + +/* Define to 1 if you have the `getpgid' function. */ +#undef HAVE_GETPGID + +/* Define to 1 if you have the `getpgrp' function. */ +#undef HAVE_GETPGRP + +/* Define to 1 if you have the `getsid' function. */ +#undef HAVE_GETSID + +/* Define to 1 if you have the `getuid' function. */ +#undef HAVE_GETUID + +/* Define to 1 if the system has the type `int16_t'. */ +#undef HAVE_INT16_T + +/* Define to 1 if the system has the type `int32_t'. */ +#undef HAVE_INT32_T + +/* Define to 1 if the system has the type `int64_t'. */ +#undef HAVE_INT64_T + +/* Define to 1 if the system has the type `int8_t'. */ +#undef HAVE_INT8_T + +/* Define to 1 if the system has the type `intmax_t'. */ +#undef HAVE_INTMAX_T + +/* Define to 1 if the system has the type `intptr_t'. */ +#undef HAVE_INTPTR_T + +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H + +/* Define to 1 if you have the `isascii' function. */ +#undef HAVE_ISASCII + +/* Define to 1 if you have the `isatty' function. */ +#undef HAVE_ISATTY + +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Define to 1 if you have the `opendir' function. */ +#undef HAVE_OPENDIR + +/* Define to 1 if you have the `pthread_attr_getguardsize' function. */ +#undef HAVE_PTHREAD_ATTR_GETGUARDSIZE + +/* Define to 1 if you have the `pthread_attr_getstack' function. */ +#undef HAVE_PTHREAD_ATTR_GETSTACK + +/* Define to 1 if you have the `pthread_attr_setguardsize' function. */ +#undef HAVE_PTHREAD_ATTR_SETGUARDSIZE + +/* Define to 1 if you have the `pthread_attr_setstack' function. */ +#undef HAVE_PTHREAD_ATTR_SETSTACK + +/* Define to 1 if the system has the type `pthread_barrier_t'. */ +#undef HAVE_PTHREAD_BARRIER_T + +/* Define to 1 if the system has the type `pthread_rwlock_t'. */ +#undef HAVE_PTHREAD_RWLOCK_T + +/* Define to 1 if the system has the type `pthread_spinlock_t'. */ +#undef HAVE_PTHREAD_SPINLOCK_T + +/* Define to 1 if you have the `readdir' function. */ +#undef HAVE_READDIR + +/* Define to 1 if you have the `readdir_r' function. */ +#undef HAVE_READDIR_R + +/* Define to 1 if you have the `regcomp' function. */ +#undef HAVE_REGCOMP + +/* Define to 1 if you have the `regerror' function. */ +#undef HAVE_REGERROR + +/* Define to 1 if you have the `regexec' function. */ +#undef HAVE_REGEXEC + +/* Define to 1 if you have the `regfree' function. */ +#undef HAVE_REGFREE + +/* Define to 1 if you have the `rewinddir' function. */ +#undef HAVE_REWINDDIR + +/* Define to 1 if you have the `scandir' function. */ +#undef HAVE_SCANDIR + +/* Define to 1 if you have the header file. */ +#undef HAVE_SCHED_H + +/* Define to 1 if you have the `seekdir' function. */ +#undef HAVE_SEEKDIR + +/* Define to 1 if you have the `setegid' function. */ +#undef HAVE_SETEGID + +/* Define to 1 if you have the `seteuid' function. */ +#undef HAVE_SETEUID + +/* Define to 1 if you have the `setgid' function. */ +#undef HAVE_SETGID + +/* Define to 1 if you have the `setpgid' function. */ +#undef HAVE_SETPGID + +/* Define to 1 if you have the `setpgrp' function. */ +#undef HAVE_SETPGRP + +/* Define to 1 if you have the `setsid' function. */ +#undef HAVE_SETSID + +/* Define to 1 if you have the `setuid' function. */ +#undef HAVE_SETUID + +/* Define to 1 if the system has the type `sighandler_t'. */ +#undef HAVE_SIGHANDLER_T + +/* Define to 1 if you have the `sleep' function. */ +#undef HAVE_SLEEP + +/* Define to 1 if you have the `snprintf' function. */ +#undef HAVE_SNPRINTF + +/* Define to 1 if stdbool.h conforms to C99. */ +#undef HAVE_STDBOOL_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the `strcasecmp' function. */ +#undef HAVE_STRCASECMP + +/* Define to 1 if you have the `strdup' function. */ +#undef HAVE_STRDUP + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the `strlcat' function. */ +#undef HAVE_STRLCAT + +/* Define to 1 if you have the `strlcpy' function. */ +#undef HAVE_STRLCPY + +/* Define to 1 if you have the `strncasecmp' function. */ +#undef HAVE_STRNCASECMP + +/* Define to 1 if you have the `strndup' function. */ +#undef HAVE_STRNDUP + +/* Define to 1 if you have the `strsep' function. */ +#undef HAVE_STRSEP + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_CDEFS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_QUEUE_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_TAR_H + +/* Define to 1 if you have the `telldir' function. */ +#undef HAVE_TELLDIR + +/* Define to 1 if you have the `ttyname' function. */ +#undef HAVE_TTYNAME + +/* Define to 1 if the system has the type `uint16_t'. */ +#undef HAVE_UINT16_T + +/* Define to 1 if the system has the type `uint32_t'. */ +#undef HAVE_UINT32_T + +/* Define to 1 if the system has the type `uint64_t'. */ +#undef HAVE_UINT64_T + +/* Define to 1 if the system has the type `uint8_t'. */ +#undef HAVE_UINT8_T + +/* Define to 1 if the system has the type `uintmax_t'. */ +#undef HAVE_UINTMAX_T + +/* Define to 1 if the system has the type `uintptr_t'. */ +#undef HAVE_UINTPTR_T + +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define to 1 if you have the `usleep' function. */ +#undef HAVE_USLEEP + +/* Define to 1 if the system has the type `_Bool'. */ +#undef HAVE__BOOL + +/* Define to 1 if you have the `__assert' function. */ +#undef HAVE___ASSERT + +/* Define to 1 if your C compiler doesn't accept -c and -o together. */ +#undef NO_MINUS_C_MINUS_O + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* if RTEMS_DEBUG is enabled */ +#undef RTEMS_DEBUG + +/* if multiprocessing is enabled */ +#undef RTEMS_MULTIPROCESSING + +/* if networking is enabled */ +#undef RTEMS_NETWORKING + +/* if using newlib */ +#undef RTEMS_NEWLIB + +/* if posix api is supported */ +#undef RTEMS_POSIX_API + +/* if SMP is enabled */ +#undef RTEMS_SMP + +/* RTEMS version string */ +#undef RTEMS_VERSION + +/* The size of `mode_t', as computed by sizeof. */ +#undef SIZEOF_MODE_T + +/* The size of `off_t', as computed by sizeof. */ +#undef SIZEOF_OFF_T + +/* The size of `time_t', as computed by sizeof. */ +#undef SIZEOF_TIME_T + +/* The size of `void *', as computed by sizeof. */ +#undef SIZEOF_VOID_P + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Define to 1 if ada/gnat bindings are built-in */ +#undef __RTEMS_ADA__ + +/* disable inlining _Thread_Enable_dispatch */ +#undef __RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__ + +/* disable inlining _Thread_Enable_dispatch */ +#undef __RTEMS_DO_NOT_INLINE_THREAD_ENABLE_DISPATCH__ + +/* disable inlining _Thread_queue_Enqueue_priority */ +#undef __RTEMS_DO_NOT_UNROLL_THREADQ_ENQUEUE_PRIORITY__ + +/* major version portion of an RTEMS release */ +#undef __RTEMS_MAJOR__ + +/* minor version portion of an RTEMS release */ +#undef __RTEMS_MINOR__ + +/* revision version portion of an RTEMS release */ +#undef __RTEMS_REVISION__ + +/* Size of a void * pointer */ +#undef __RTEMS_SIZEOF_VOID_P__ + +/* disable strict order mutex */ +#undef __RTEMS_STRICT_ORDER_MUTEX__ + +/* disable nanosecond granularity for cpu usage statistics */ +#undef __RTEMS_USE_TICKS_CPU_USAGE_STATISTICS__ + +/* disable nanosecond granularity for statistics */ +#undef __RTEMS_USE_TICKS_FOR_STATISTICS__ + +/* disable nanosecond granularity for period statistics */ +#undef __RTEMS_USE_TICKS_RATE_MONOTONIC_STATISTICS__ diff --git a/testsuites/fstests/config.h.in b/testsuites/fstests/config.h.in new file mode 100644 index 0000000000..d2176309f2 --- /dev/null +++ b/testsuites/fstests/config.h.in @@ -0,0 +1,105 @@ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* Define to 1 if you have the declaration of `adjtime', and to 0 if you + don't. */ +#undef HAVE_DECL_ADJTIME + +/* Define to 1 if you have the declaration of `mprotect', and to 0 if you + don't. */ +#undef HAVE_DECL_MPROTECT + +/* Define to 1 if you have the declaration of `pthread_atfork', and to 0 if + you don't. */ +#undef HAVE_DECL_PTHREAD_ATFORK + +/* Define to 1 if you have the declaration of `pthread_attr_getcputime', and + to 0 if you don't. */ +#undef HAVE_DECL_PTHREAD_ATTR_GETCPUTIME + +/* Define to 1 if you have the declaration of `pthread_attr_getguardsize', and + to 0 if you don't. */ +#undef HAVE_DECL_PTHREAD_ATTR_GETGUARDSIZE + +/* Define to 1 if you have the declaration of `pthread_attr_getstack', and to + 0 if you don't. */ +#undef HAVE_DECL_PTHREAD_ATTR_GETSTACK + +/* Define to 1 if you have the declaration of `pthread_attr_setcputime', and + to 0 if you don't. */ +#undef HAVE_DECL_PTHREAD_ATTR_SETCPUTIME + +/* Define to 1 if you have the declaration of `pthread_attr_setguardsize', and + to 0 if you don't. */ +#undef HAVE_DECL_PTHREAD_ATTR_SETGUARDSIZE + +/* Define to 1 if you have the declaration of `pthread_attr_setstack', and to + 0 if you don't. */ +#undef HAVE_DECL_PTHREAD_ATTR_SETSTACK + +/* Define to 1 if you have the declaration of `pthread_rwlock_unlock', and to + 0 if you don't. */ +#undef HAVE_DECL_PTHREAD_RWLOCK_UNLOCK + +/* Define to 1 if you have the declaration of `seteuid', and to 0 if you + don't. */ +#undef HAVE_DECL_SETEUID + +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_MMAN_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* The size of `blkcnt_t', as computed by sizeof. */ +#undef SIZEOF_BLKCNT_T + +/* The size of `blksize_t', as computed by sizeof. */ +#undef SIZEOF_BLKSIZE_T + +/* The size of `off_t', as computed by sizeof. */ +#undef SIZEOF_OFF_T + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS diff --git a/testsuites/libtests/config.h.in b/testsuites/libtests/config.h.in new file mode 100644 index 0000000000..80640feaa6 --- /dev/null +++ b/testsuites/libtests/config.h.in @@ -0,0 +1,55 @@ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* Define to 1 if you have the header file. */ +#undef HAVE_COMPLEX_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* if RTEMS_TEST_NO_PAUSE is enabled */ +#undef RTEMS_TEST_NO_PAUSE + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS diff --git a/testsuites/mptests/config.h.in b/testsuites/mptests/config.h.in new file mode 100644 index 0000000000..f80de9c383 --- /dev/null +++ b/testsuites/mptests/config.h.in @@ -0,0 +1,19 @@ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION diff --git a/testsuites/psxtests/config.h.in b/testsuites/psxtests/config.h.in new file mode 100644 index 0000000000..acddf10947 --- /dev/null +++ b/testsuites/psxtests/config.h.in @@ -0,0 +1,107 @@ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* Define to 1 if you have the declaration of `adjtime', and to 0 if you + don't. */ +#undef HAVE_DECL_ADJTIME + +/* Define to 1 if you have the declaration of `getrusage', and to 0 if you + don't. */ +#undef HAVE_DECL_GETRUSAGE + +/* Define to 1 if you have the declaration of `mprotect', and to 0 if you + don't. */ +#undef HAVE_DECL_MPROTECT + +/* Define to 1 if you have the declaration of `pthread_atfork', and to 0 if + you don't. */ +#undef HAVE_DECL_PTHREAD_ATFORK + +/* Define to 1 if you have the declaration of `pthread_attr_getguardsize', and + to 0 if you don't. */ +#undef HAVE_DECL_PTHREAD_ATTR_GETGUARDSIZE + +/* Define to 1 if you have the declaration of `pthread_attr_getstack', and to + 0 if you don't. */ +#undef HAVE_DECL_PTHREAD_ATTR_GETSTACK + +/* Define to 1 if you have the declaration of `pthread_attr_setguardsize', and + to 0 if you don't. */ +#undef HAVE_DECL_PTHREAD_ATTR_SETGUARDSIZE + +/* Define to 1 if you have the declaration of `pthread_attr_setstack', and to + 0 if you don't. */ +#undef HAVE_DECL_PTHREAD_ATTR_SETSTACK + +/* Define to 1 if you have the declaration of `pthread_rwlock_unlock', and to + 0 if you don't. */ +#undef HAVE_DECL_PTHREAD_RWLOCK_UNLOCK + +/* Define to 1 if you have the declaration of `seteuid', and to 0 if you + don't. */ +#undef HAVE_DECL_SETEUID + +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_MMAN_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* The size of `blkcnt_t', as computed by sizeof. */ +#undef SIZEOF_BLKCNT_T + +/* The size of `blksize_t', as computed by sizeof. */ +#undef SIZEOF_BLKSIZE_T + +/* The size of `mode_t', as computed by sizeof. */ +#undef SIZEOF_MODE_T + +/* The size of `off_t', as computed by sizeof. */ +#undef SIZEOF_OFF_T + +/* The size of `time_t', as computed by sizeof. */ +#undef SIZEOF_TIME_T + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS diff --git a/testsuites/psxtmtests/config.h.in b/testsuites/psxtmtests/config.h.in new file mode 100644 index 0000000000..26b33f82aa --- /dev/null +++ b/testsuites/psxtmtests/config.h.in @@ -0,0 +1,99 @@ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* Define to 1 if you have the declaration of `adjtime', and to 0 if you + don't. */ +#undef HAVE_DECL_ADJTIME + +/* Define to 1 if you have the declaration of `mprotect', and to 0 if you + don't. */ +#undef HAVE_DECL_MPROTECT + +/* Define to 1 if you have the declaration of `pthread_atfork', and to 0 if + you don't. */ +#undef HAVE_DECL_PTHREAD_ATFORK + +/* Define to 1 if you have the declaration of `pthread_attr_getcputime', and + to 0 if you don't. */ +#undef HAVE_DECL_PTHREAD_ATTR_GETCPUTIME + +/* Define to 1 if you have the declaration of `pthread_attr_getguardsize', and + to 0 if you don't. */ +#undef HAVE_DECL_PTHREAD_ATTR_GETGUARDSIZE + +/* Define to 1 if you have the declaration of `pthread_attr_getstack', and to + 0 if you don't. */ +#undef HAVE_DECL_PTHREAD_ATTR_GETSTACK + +/* Define to 1 if you have the declaration of `pthread_attr_setcputime', and + to 0 if you don't. */ +#undef HAVE_DECL_PTHREAD_ATTR_SETCPUTIME + +/* Define to 1 if you have the declaration of `pthread_attr_setguardsize', and + to 0 if you don't. */ +#undef HAVE_DECL_PTHREAD_ATTR_SETGUARDSIZE + +/* Define to 1 if you have the declaration of `pthread_attr_setstack', and to + 0 if you don't. */ +#undef HAVE_DECL_PTHREAD_ATTR_SETSTACK + +/* Define to 1 if you have the declaration of `pthread_rwlock_unlock', and to + 0 if you don't. */ +#undef HAVE_DECL_PTHREAD_RWLOCK_UNLOCK + +/* Define to 1 if you have the declaration of `seteuid', and to 0 if you + don't. */ +#undef HAVE_DECL_SETEUID + +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_MMAN_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* The size of `off_t', as computed by sizeof. */ +#undef SIZEOF_OFF_T + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS diff --git a/testsuites/samples/config.h.in b/testsuites/samples/config.h.in new file mode 100644 index 0000000000..6a175babfe --- /dev/null +++ b/testsuites/samples/config.h.in @@ -0,0 +1,61 @@ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* Define to 1 if you have the header file. */ +#undef HAVE_CSTDIO + +/* Define to 1 if you have the header file. */ +#undef HAVE_CSTDLIB + +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_IOSTREAM + +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* The size of `time_t', as computed by sizeof. */ +#undef SIZEOF_TIME_T + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS diff --git a/testsuites/sptests/config.h.in b/testsuites/sptests/config.h.in new file mode 100644 index 0000000000..bbeef66bff --- /dev/null +++ b/testsuites/sptests/config.h.in @@ -0,0 +1,55 @@ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* if RTEMS_TEST_NO_PAUSE is enabled */ +#undef RTEMS_TEST_NO_PAUSE + +/* The size of `time_t', as computed by sizeof. */ +#undef SIZEOF_TIME_T + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS diff --git a/testsuites/tmtests/config.h.in b/testsuites/tmtests/config.h.in new file mode 100644 index 0000000000..993c8f93c5 --- /dev/null +++ b/testsuites/tmtests/config.h.in @@ -0,0 +1,22 @@ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* if RTEMS_TEST_NO_PAUSE is enabled */ +#undef RTEMS_TEST_NO_PAUSE -- cgit v1.2.3 From e7096b1fdf492a71ae3cdd88f073270f2fb5e639 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 24 May 2012 14:39:06 +0200 Subject: libblock: Fix state descriptions --- cpukit/libblock/src/bdbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/libblock/src/bdbuf.c b/cpukit/libblock/src/bdbuf.c index de2cebd7be..d97265e828 100644 --- a/cpukit/libblock/src/bdbuf.c +++ b/cpukit/libblock/src/bdbuf.c @@ -296,7 +296,7 @@ void rtems_bdbuf_show_users (const char* where, rtems_bdbuf_buffer* bd) { const char* states[] = - { "FR", "EM", "CH", "AC", "AM", "MD", "SY", "TR" }; + { "FR", "EM", "CH", "AC", "AM", "AE", "AP", "MD", "SY", "TR", "TP" }; printf ("bdbuf:users: %15s: [%" PRIu32 " (%s)] %td:%td = %" PRIu32 " %s\n", where, -- cgit v1.2.3 From 13d3a37d3870e129b9856638ac9a1ead7acdde98 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 24 May 2012 17:15:05 +0200 Subject: libblock: Fix read request block count calculation --- cpukit/libblock/src/bdbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/libblock/src/bdbuf.c b/cpukit/libblock/src/bdbuf.c index d97265e828..593f19beaf 100644 --- a/cpukit/libblock/src/bdbuf.c +++ b/cpukit/libblock/src/bdbuf.c @@ -1848,7 +1848,7 @@ rtems_bdbuf_create_read_request (const rtems_disk_device *dd, rtems_bdbuf_buffer *bd = NULL; rtems_blkdev_bnum media_block_end = dd->start + dd->size; rtems_blkdev_bnum media_block_count = dd->block_to_media_block_shift >= 0 ? - dd->block_size >> dd->block_to_media_block_shift + 1U << dd->block_to_media_block_shift : dd->block_size / dd->media_block_size; uint32_t block_size = dd->block_size; uint32_t transfer_index = 1; -- cgit v1.2.3 From 4acbff6c8e6ae836027ba2150c3cb6cab22176a7 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 23 May 2012 11:39:05 +0200 Subject: shell/lsof: Use fprintf() instead of printk() --- cpukit/libmisc/shell/main_lsof.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cpukit/libmisc/shell/main_lsof.c b/cpukit/libmisc/shell/main_lsof.c index 993d107da8..ed0c87c1de 100644 --- a/cpukit/libmisc/shell/main_lsof.c +++ b/cpukit/libmisc/shell/main_lsof.c @@ -16,6 +16,8 @@ #include "config.h" #endif +#include + #include #include #include @@ -35,7 +37,8 @@ static void lsof(void) rtems_chain_control *mt_entry_chain = &mt_entry->location_chain; rtems_chain_node *mt_entry_node = NULL; - printk( + fprintf( + stdout, "%c %c %s %s -> %s root 0x%08x -> 0x%08x\n", mt_entry->mounted ? 'M' : 'U', mt_entry->writeable ? 'W' : 'R', @@ -54,7 +57,8 @@ static void lsof(void) const rtems_filesystem_location_info_t *loc = (rtems_filesystem_location_info_t *) mt_entry_node; - printk( + fprintf( + stdout, "\t0x%08x -> 0x%08x\n", loc, loc->node_access -- cgit v1.2.3