Re: [PATCH 1/2] cpukit: Add Epiphany architecture port
You should aim to write doxygen for the port-specific headers at least. On Thu, May 7, 2015 at 10:11 PM, Hesham ALMatary wrote: > --- > cpukit/configure.ac|1 + > cpukit/librpc/src/xdr/xdr_float.c |1 + > cpukit/score/cpu/Makefile.am |1 + > cpukit/score/cpu/epiphany/Makefile.am | 33 + > cpukit/score/cpu/epiphany/cpu.c| 99 ++ > .../cpu/epiphany/epiphany-context-initialize.c | 49 + > .../score/cpu/epiphany/epiphany-context-switch.S | 197 > .../cpu/epiphany/epiphany-exception-handler.S | 290 + > cpukit/score/cpu/epiphany/preinstall.am| 53 + > cpukit/score/cpu/epiphany/rtems/asm.h | 97 ++ > cpukit/score/cpu/epiphany/rtems/score/cpu.h| 1171 > > cpukit/score/cpu/epiphany/rtems/score/cpu_asm.h| 74 ++ > cpukit/score/cpu/epiphany/rtems/score/cpuatomic.h | 14 + > .../cpu/epiphany/rtems/score/epiphany-utility.h| 180 +++ > cpukit/score/cpu/epiphany/rtems/score/epiphany.h | 50 + > cpukit/score/cpu/epiphany/rtems/score/types.h | 55 + > 16 files changed, 2365 insertions(+) > create mode 100644 cpukit/score/cpu/epiphany/Makefile.am > create mode 100644 cpukit/score/cpu/epiphany/cpu.c > create mode 100644 cpukit/score/cpu/epiphany/epiphany-context-initialize.c > create mode 100644 cpukit/score/cpu/epiphany/epiphany-context-switch.S > create mode 100644 cpukit/score/cpu/epiphany/epiphany-exception-handler.S > create mode 100644 cpukit/score/cpu/epiphany/preinstall.am > create mode 100644 cpukit/score/cpu/epiphany/rtems/asm.h > create mode 100644 cpukit/score/cpu/epiphany/rtems/score/cpu.h > create mode 100644 cpukit/score/cpu/epiphany/rtems/score/cpu_asm.h > create mode 100644 cpukit/score/cpu/epiphany/rtems/score/cpuatomic.h > create mode 100644 cpukit/score/cpu/epiphany/rtems/score/epiphany-utility.h > create mode 100644 cpukit/score/cpu/epiphany/rtems/score/epiphany.h > create mode 100644 cpukit/score/cpu/epiphany/rtems/score/types.h > > diff --git a/cpukit/configure.ac b/cpukit/configure.ac > index 2b432f6..46942c9 100644 > --- a/cpukit/configure.ac > +++ b/cpukit/configure.ac > @@ -453,6 +453,7 @@ score/cpu/Makefile > score/cpu/arm/Makefile > score/cpu/bfin/Makefile > score/cpu/avr/Makefile > +score/cpu/epiphany/Makefile > score/cpu/h8300/Makefile > score/cpu/i386/Makefile > score/cpu/lm32/Makefile > diff --git a/cpukit/librpc/src/xdr/xdr_float.c > b/cpukit/librpc/src/xdr/xdr_float.c > index 925b294..ac8c46d 100644 > --- a/cpukit/librpc/src/xdr/xdr_float.c > +++ b/cpukit/librpc/src/xdr/xdr_float.c > @@ -61,6 +61,7 @@ static char *rcsid = "$FreeBSD: > src/lib/libc/xdr/xdr_float.c,v 1.7 1999/08/28 00 > #if defined(__alpha__) || \ > defined(_AM29K) || \ > defined(__arm__) || \ > +defined(__epiphany__) || defined(__EPIPHANY__) || \ > defined(__H8300__) || defined(__h8300__) || \ > defined(__hppa__) || \ > defined(__i386__) || \ > diff --git a/cpukit/score/cpu/Makefile.am b/cpukit/score/cpu/Makefile.am > index 69abcd6..7279d38 100644 > --- a/cpukit/score/cpu/Makefile.am > +++ b/cpukit/score/cpu/Makefile.am > @@ -4,6 +4,7 @@ DIST_SUBDIRS = > DIST_SUBDIRS += arm > DIST_SUBDIRS += avr > DIST_SUBDIRS += bfin > +DIST_SUBDIRS += epiphany > DIST_SUBDIRS += h8300 > DIST_SUBDIRS += i386 > DIST_SUBDIRS += lm32 > diff --git a/cpukit/score/cpu/epiphany/Makefile.am > b/cpukit/score/cpu/epiphany/Makefile.am > new file mode 100644 > index 000..0df3376 > --- /dev/null > +++ b/cpukit/score/cpu/epiphany/Makefile.am > @@ -0,0 +1,33 @@ > +include $(top_srcdir)/automake/compile.am > + > +CLEANFILES = > +DISTCLEANFILES = > + > +include_rtemsdir = $(includedir)/rtems > + > +include_rtems_HEADERS = rtems/asm.h > + > +include_rtems_scoredir = $(includedir)/rtems/score > + > +include_rtems_score_HEADERS = > +include_rtems_score_HEADERS += rtems/score/cpu.h > +include_rtems_score_HEADERS += rtems/score/cpuatomic.h > +include_rtems_score_HEADERS += rtems/score/cpu_asm.h > +include_rtems_score_HEADERS += rtems/score/types.h > +include_rtems_score_HEADERS += rtems/score/epiphany.h > +include_rtems_score_HEADERS += rtems/score/epiphany-utility.h > + > +noinst_LIBRARIES = libscorecpu.a > + > +libscorecpu_a_SOURCES = cpu.c > +libscorecpu_a_SOURCES += epiphany-exception-handler.S > +libscorecpu_a_SOURCES += epiphany-context-switch.S > +libscorecpu_a_SOURCES += epiphany-context-initialize.c > + > + Remove extra blank line > +libscorecpu_a_CPPFLAGS = $(AM_CPPFLAGS) > + > +all-local: $(PREINSTALL_FILES) > + > +include $(srcdir)/preinstall.am > +include $(top_srcdir)/automake/local.am > diff --git a/cpukit/score/cpu/epiphany/cpu.c b/cpukit/score/cpu/epiphany/cpu.c > new file mode 100644 > index 000..0558dbb > --- /dev/null > +++ b/cpukit/score/cpu/epiphany/cpu.c > @@ -0,0 +1,99 @@ > +/* > + * Epiphany CPU Dependent Source > + * > + * COPYRIGHT (c) 201
Re: [PATCH 2/2] Epiphany: Add the first epiphany_sim BSP.
On Thu, May 7, 2015 at 10:12 PM, Hesham ALMatary wrote: > This BSP in intended to run on the simulator that should be built > from RSB. When building RTEMS for Epiphany --disable-networking must > be provided part of the configure command. > --- > c/src/aclocal/rtems-cpu-subdirs.m4 | 1 + > c/src/lib/libbsp/epiphany/Makefile.am | 8 + > c/src/lib/libbsp/epiphany/acinclude.m4 | 10 + > c/src/lib/libbsp/epiphany/configure.ac | 20 ++ > c/src/lib/libbsp/epiphany/epiphany_sim/Makefile.am | 95 ++ > c/src/lib/libbsp/epiphany/epiphany_sim/README | 6 + > c/src/lib/libbsp/epiphany/epiphany_sim/bsp_specs | 11 + > .../lib/libbsp/epiphany/epiphany_sim/configure.ac | 37 +++ > .../epiphany/epiphany_sim/console/console-io.c | 87 + > .../lib/libbsp/epiphany/epiphany_sim/include/bsp.h | 40 +++ > .../libbsp/epiphany/epiphany_sim/include/bspopts.h | 53 > .../lib/libbsp/epiphany/epiphany_sim/include/irq.h | 31 ++ > .../libbsp/epiphany/epiphany_sim/include/tm27.h| 38 +++ > c/src/lib/libbsp/epiphany/epiphany_sim/irq/irq.c | 43 +++ > .../epiphany_sim/make/custom/epiphany_sim.cfg | 7 + > .../lib/libbsp/epiphany/epiphany_sim/preinstall.am | 104 ++ > .../lib/libbsp/epiphany/epiphany_sim/start/start.S | 152 + > .../libbsp/epiphany/epiphany_sim/startup/linkcmds | 351 > + > .../lib/libbsp/epiphany/epiphany_sim/timer/timer.c | 111 +++ > c/src/lib/libbsp/epiphany/preinstall.am| 7 + > .../epiphany/shared/include/linker-symbols.h | 81 + > 21 files changed, 1293 insertions(+) > create mode 100644 c/src/lib/libbsp/epiphany/Makefile.am > create mode 100644 c/src/lib/libbsp/epiphany/acinclude.m4 > create mode 100644 c/src/lib/libbsp/epiphany/configure.ac > create mode 100644 c/src/lib/libbsp/epiphany/epiphany_sim/Makefile.am > create mode 100644 c/src/lib/libbsp/epiphany/epiphany_sim/README > create mode 100644 c/src/lib/libbsp/epiphany/epiphany_sim/bsp_specs > create mode 100644 c/src/lib/libbsp/epiphany/epiphany_sim/configure.ac > create mode 100644 > c/src/lib/libbsp/epiphany/epiphany_sim/console/console-io.c > create mode 100644 c/src/lib/libbsp/epiphany/epiphany_sim/include/bsp.h > create mode 100644 c/src/lib/libbsp/epiphany/epiphany_sim/include/bspopts.h > create mode 100644 c/src/lib/libbsp/epiphany/epiphany_sim/include/irq.h > create mode 100644 c/src/lib/libbsp/epiphany/epiphany_sim/include/tm27.h > create mode 100644 c/src/lib/libbsp/epiphany/epiphany_sim/irq/irq.c > create mode 100644 > c/src/lib/libbsp/epiphany/epiphany_sim/make/custom/epiphany_sim.cfg > create mode 100644 c/src/lib/libbsp/epiphany/epiphany_sim/preinstall.am > create mode 100644 c/src/lib/libbsp/epiphany/epiphany_sim/start/start.S > create mode 100644 c/src/lib/libbsp/epiphany/epiphany_sim/startup/linkcmds > create mode 100644 c/src/lib/libbsp/epiphany/epiphany_sim/timer/timer.c > create mode 100644 c/src/lib/libbsp/epiphany/preinstall.am > create mode 100644 c/src/lib/libbsp/epiphany/shared/include/linker-symbols.h > > diff --git a/c/src/aclocal/rtems-cpu-subdirs.m4 > b/c/src/aclocal/rtems-cpu-subdirs.m4 > index 9593d34..524edac 100644 > --- a/c/src/aclocal/rtems-cpu-subdirs.m4 > +++ b/c/src/aclocal/rtems-cpu-subdirs.m4 > @@ -12,6 +12,7 @@ AC_DEFUN([RTEMS_CPU_SUBDIRS], > case $RTEMS_CPU in > _RTEMS_CPU_SUBDIR([arm],[$1]);; > _RTEMS_CPU_SUBDIR([bfin],[$1]);; > +_RTEMS_CPU_SUBDIR([epiphany],[$1]);; > _RTEMS_CPU_SUBDIR([avr],[$1]);; > _RTEMS_CPU_SUBDIR([h8300],[$1]);; > _RTEMS_CPU_SUBDIR([i386],[$1]);; > diff --git a/c/src/lib/libbsp/epiphany/Makefile.am > b/c/src/lib/libbsp/epiphany/Makefile.am > new file mode 100644 > index 000..cdcc3fb > --- /dev/null > +++ b/c/src/lib/libbsp/epiphany/Makefile.am > @@ -0,0 +1,8 @@ > +ACLOCAL_AMFLAGS = -I ../../../aclocal > +## Descend into the @RTEMS_BSP_FAMILY@ directory > +## Currently, the shared directory is not explicitly > +## added but it is present in the source tree. > +SUBDIRS = @RTEMS_BSP_FAMILY@ > +include $(srcdir)/preinstall.am > +include $(top_srcdir)/../../../automake/subdirs.am > +include $(top_srcdir)/../../../automake/local.am > diff --git a/c/src/lib/libbsp/epiphany/acinclude.m4 > b/c/src/lib/libbsp/epiphany/acinclude.m4 > new file mode 100644 > index 000..0fe1e2e > --- /dev/null > +++ b/c/src/lib/libbsp/epiphany/acinclude.m4 > @@ -0,0 +1,10 @@ > +# RTEMS_CHECK_BSPDIR(RTEMS_BSP_FAMILY) > +AC_DEFUN([RTEMS_CHECK_BSPDIR], > +[ > + case "$1" in > + epiphany_sim ) > +AC_CONFIG_SUBDIRS([epiphany_sim]);; > + *) > +AC_MSG_ERROR([Invalid BSP]);; > + esac > +]) > diff --git a/c/src/lib/libbsp/epiphany/configure.ac > b/c/src/lib/libbsp/epiphany/configure.ac > new file mode 100644 > index 000..899d4d7 > --- /dev/null > +++ b/c/src/lib/libbsp/epiphany/configure.ac > @@ -0,0 +1,19 @@ > +# Process this file with autoconf to produce a configure script. > + > +AC_PREREQ([2.69]) > +AC_
GSoC: Weekly meetings starting Tuesday May 19th
Hello GSoC students, and mentors, We will have weekly meetings starting on the 19th of May at 15:00 UTC in the IRC channel. Students please be prepared each week to give a summary of what you have been doing, and what you plan to do next. I will aim to give each student about 5 minutes to chat, and the meeting should last just over an hour. We will also have a Google Doc for each meeting to paste your summaries and next steps, which should be filled in each time even if you miss the meeting. Attending these meetings is important to ensure you are on track and making good progress. Gedare ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel