change log for rtems (2011-05-06)

rtems-vc at rtems.org rtems-vc at rtems.org
Fri May 6 07:10:13 UTC 2011


 *sh* (on branch rtems-4-10-branch):
2011-05-06	Sebastian Huber <sebastian.huber at embedded-brains.de>

	* include/bsp.h: Moved NEED_LOW_LEVEL_INIT define because it has to be
	visible for the assembler.
	* startup/linkcmds.brs5l: Fixed RAM size.

M 1.146.2.2  c/src/lib/libbsp/powerpc/gen5200/ChangeLog
M 1.24.2.1  c/src/lib/libbsp/powerpc/gen5200/include/bsp.h
M 1.7.4.1  c/src/lib/libbsp/powerpc/gen5200/startup/linkcmds.brs5l

diff -u rtems/c/src/lib/libbsp/powerpc/gen5200/ChangeLog:1.146.2.1 rtems/c/src/lib/libbsp/powerpc/gen5200/ChangeLog:1.146.2.2
--- rtems/c/src/lib/libbsp/powerpc/gen5200/ChangeLog:1.146.2.1	Wed Feb  2 09:16:33 2011
+++ rtems/c/src/lib/libbsp/powerpc/gen5200/ChangeLog	Fri May  6 01:28:04 2011
@@ -1,3 +1,9 @@
+2011-05-06	Sebastian Huber <sebastian.huber at embedded-brains.de>
+
+	* include/bsp.h: Moved NEED_LOW_LEVEL_INIT define because it has to be
+	visible for the assembler.
+	* startup/linkcmds.brs5l: Fixed RAM size.
+
 2011-02-02	Ralf Corsépius <ralf.corsepius at rtems.org>
 
 	* configure.ac: Require autoconf-2.68, automake-1.11.1.

diff -u rtems/c/src/lib/libbsp/powerpc/gen5200/include/bsp.h:1.24 rtems/c/src/lib/libbsp/powerpc/gen5200/include/bsp.h:1.24.2.1
--- rtems/c/src/lib/libbsp/powerpc/gen5200/include/bsp.h:1.24	Thu Mar 25 15:26:51 2010
+++ rtems/c/src/lib/libbsp/powerpc/gen5200/include/bsp.h	Fri May  6 01:28:04 2011
@@ -79,6 +79,11 @@
 #define PM520
 #endif
 
+#if !defined(HAS_UBOOT)
+  /* we need the low level initialization in start.S*/
+  #define NEED_LOW_LEVEL_INIT
+#endif
+
 #if defined(BRS5L)
 /*
  * IMD Custom Board BRS5L
@@ -123,10 +128,6 @@
 extern bd_t bsp_uboot_board_info;
 #else
 
-/* we need the low level initialization in start.S*/
-#define NEED_LOW_LEVEL_INIT
-
-
 #endif
 
 /*

diff -u rtems/c/src/lib/libbsp/powerpc/gen5200/startup/linkcmds.brs5l:1.7 rtems/c/src/lib/libbsp/powerpc/gen5200/startup/linkcmds.brs5l:1.7.4.1
--- rtems/c/src/lib/libbsp/powerpc/gen5200/startup/linkcmds.brs5l:1.7	Wed Sep  3 10:40:11 2008
+++ rtems/c/src/lib/libbsp/powerpc/gen5200/startup/linkcmds.brs5l	Fri May  6 01:28:04 2011
@@ -5,7 +5,7 @@
  */
 
 MEMORY {
-	RAM : ORIGIN = 0x0, LENGTH = 256M
+	RAM : ORIGIN = 0x0, LENGTH = 128M
 	ROM : ORIGIN = 0xffe00000, LENGTH = 2M
 	DPRAM : ORIGIN = 0xff000000, LENGTH = 1k
 	REGS : ORIGIN = 0xf0000000, LENGTH = 64k


 *sh*:
2011-05-06	Sebastian Huber <sebastian.huber at embedded-brains.de>

	* spnsext01/.cvsignore, spnsext01/Makefile.am, spnsext01/init.c,
	spnsext01/spnsext01.doc, spnsext01/spnsext01.scn: New files.
	* Makefile.am, configure.ac: Reflect changes above.

M  1.449  testsuites/sptests/ChangeLog
M  1.110  testsuites/sptests/Makefile.am
M  1.117  testsuites/sptests/configure.ac
A    1.1  testsuites/sptests/spnsext01/.cvsignore
A    1.1  testsuites/sptests/spnsext01/Makefile.am
A    1.1  testsuites/sptests/spnsext01/init.c
A    1.1  testsuites/sptests/spnsext01/spnsext01.doc
A    1.1  testsuites/sptests/spnsext01/spnsext01.scn

diff -u rtems/testsuites/sptests/ChangeLog:1.448 rtems/testsuites/sptests/ChangeLog:1.449
--- rtems/testsuites/sptests/ChangeLog:1.448	Thu May  5 11:45:57 2011
+++ rtems/testsuites/sptests/ChangeLog	Fri May  6 02:08:03 2011
@@ -1,3 +1,9 @@
+2011-05-06	Sebastian Huber <sebastian.huber at embedded-brains.de>
+
+	* spnsext01/.cvsignore, spnsext01/Makefile.am, spnsext01/init.c,
+	spnsext01/spnsext01.doc, spnsext01/spnsext01.scn: New files.
+	* Makefile.am, configure.ac: Reflect changes above.
+
 2011-05-05	Joel Sherrill <joel.sherrill at oarcorp.com>
 
 	* sp09/screen12.c, sp09/sp09.scn, sp21/Makefile.am, sp35/priinv.c,

diff -u rtems/testsuites/sptests/Makefile.am:1.109 rtems/testsuites/sptests/Makefile.am:1.110
--- rtems/testsuites/sptests/Makefile.am:1.109	Mon Apr  4 13:45:38 2011
+++ rtems/testsuites/sptests/Makefile.am	Fri May  6 02:08:03 2011
@@ -29,7 +29,7 @@
     spintrcritical09 spintrcritical10 spintrcritical11 spintrcritical12 \
     spintrcritical13 spintrcritical14 spintrcritical15 spintrcritical16 \
     spintrcritical17 spmkdir spmountmgr01 spheapprot \
-    spsimplesched01 spsimplesched02 spsimplesched03
+    spsimplesched01 spsimplesched02 spsimplesched03 spnsext01
 
 DIST_SUBDIRS = $(SUBDIRS) spfatal_support spintrcritical_support
 EXTRA_DIST = spfatal_support/init.c spfatal_support/system.h

diff -u rtems/testsuites/sptests/configure.ac:1.116 rtems/testsuites/sptests/configure.ac:1.117
--- rtems/testsuites/sptests/configure.ac:1.116	Mon Apr  4 13:45:38 2011
+++ rtems/testsuites/sptests/configure.ac	Fri May  6 02:08:03 2011
@@ -157,6 +157,7 @@
 spmkdir/Makefile
 spmountmgr01/Makefile
 spnotepad01/Makefile
+spnsext01/Makefile
 spobjgetnext/Makefile
 spprintk/Makefile
 spprivenv01/Makefile

diff -u /dev/null rtems/testsuites/sptests/spnsext01/.cvsignore:1.1
--- /dev/null	Fri May  6 02:10:13 2011
+++ rtems/testsuites/sptests/spnsext01/.cvsignore	Fri May  6 02:08:04 2011
@@ -0,0 +1,2 @@
+Makefile
+Makefile.in

diff -u /dev/null rtems/testsuites/sptests/spnsext01/Makefile.am:1.1
--- /dev/null	Fri May  6 02:10:13 2011
+++ rtems/testsuites/sptests/spnsext01/Makefile.am	Fri May  6 02:08:04 2011
@@ -0,0 +1,27 @@
+##
+## $Id$
+##
+
+MANAGERS = io semaphore event
+
+rtems_tests_PROGRAMS = spnsext01
+spnsext01_SOURCES = init.c
+
+dist_rtems_tests_DATA = spnsext01.scn spnsext01.doc
+
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP at .cfg
+include $(top_srcdir)/../automake/compile.am
+include $(top_srcdir)/../automake/leaf.am
+
+spnsext01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
+
+AM_CPPFLAGS += -I$(top_srcdir)/../support/include
+
+LINK_OBJS = $(spnsext01_OBJECTS) $(spnsext01_LDADD)
+LINK_LIBS = $(spnsext01_LDLIBS)
+
+spnsext01$(EXEEXT): $(spnsext01_OBJECTS) $(spnsext01_DEPENDENCIES)
+	@rm -f spnsext01$(EXEEXT)
+	$(make-exe)
+
+include $(top_srcdir)/../automake/local.am

diff -u /dev/null rtems/testsuites/sptests/spnsext01/init.c:1.1
--- /dev/null	Fri May  6 02:10:13 2011
+++ rtems/testsuites/sptests/spnsext01/init.c	Fri May  6 02:08:04 2011
@@ -0,0 +1,88 @@
+/*
+ * Copyright (c) 2011 embedded brains GmbH.  All rights reserved.
+ *
+ *  embedded brains GmbH
+ *  Obere Lagerstr. 30
+ *  82178 Puchheim
+ *  Germany
+ *  <rtems at embedded-brains.de>
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <tmacros.h>
+
+static rtems_task Init(rtems_task_argument argument)
+{
+  rtems_status_code sc = RTEMS_SUCCESSFUL;
+  rtems_interrupt_level level;
+  rtems_interval t0 = 0;
+  rtems_interval t1 = 0;
+  int i = 0;
+  int n = 0;
+  struct timespec uptime;
+  struct timespec new_uptime;
+
+  puts("\n\n*** TEST NANO SECONDS EXTENSION 1 ***");
+
+  /* Align with clock tick */
+  t0 = rtems_clock_get_ticks_since_boot();
+  while ((t1 = rtems_clock_get_ticks_since_boot()) == t0) {
+    /* Do nothing */
+  }
+
+  t0 = t1;
+  sc = rtems_clock_get_uptime(&uptime);
+  rtems_test_assert(sc == RTEMS_SUCCESSFUL);
+  while ((t1 = rtems_clock_get_ticks_since_boot()) == t0) {
+    ++n;
+    sc = rtems_clock_get_uptime(&new_uptime);
+    rtems_test_assert(sc == RTEMS_SUCCESSFUL);
+    rtems_test_assert(!_Timestamp_Less_than(&new_uptime, &uptime));
+    uptime = new_uptime;
+  }
+
+  n = (3 * n) / 2;
+
+  rtems_interrupt_disable(level);
+  sc = rtems_clock_get_uptime(&uptime);
+  rtems_test_assert(sc == RTEMS_SUCCESSFUL);
+  for (i = 0; i < n; ++i) {
+    /* Preserve execution time of previous loop */
+    rtems_clock_get_ticks_since_boot();
+
+    sc = rtems_clock_get_uptime(&new_uptime);
+    rtems_test_assert(sc == RTEMS_SUCCESSFUL);
+    rtems_test_assert(!_Timestamp_Less_than(&new_uptime, &uptime));
+    uptime = new_uptime;
+  }
+  rtems_interrupt_enable(level);
+
+  puts("*** END OF TEST NANO SECONDS EXTENSION 1 ***");
+
+  rtems_test_exit(0);
+}
+
+#define CONFIGURE_INIT
+
+#define CONFIGURE_MICROSECONDS_PER_TICK 100000
+
+#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+
+#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
+
+#define CONFIGURE_MAXIMUM_TASKS 1
+#define CONFIGURE_MAXIMUM_DRIVERS 2
+
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+
+#include <rtems/confdefs.h>

diff -u /dev/null rtems/testsuites/sptests/spnsext01/spnsext01.doc:1.1
--- /dev/null	Fri May  6 02:10:13 2011
+++ rtems/testsuites/sptests/spnsext01/spnsext01.doc	Fri May  6 02:08:04 2011
@@ -0,0 +1,27 @@
+# 
+# Copyright (c) 2011 embedded brains GmbH.  All rights reserved.
+# 
+#  embedded brains GmbH
+#  Obere Lagerstr. 30
+#  82178 Puchheim
+#  Germany
+#  <rtems at embedded-brains.de>
+# 
+# The license and distribution terms for this file may be
+# found in the file LICENSE in this distribution or at
+# http://www.rtems.com/license/LICENSE.
+#
+# $Id$
+#
+
+This file describes the directives and concepts tested by this test set.
+
+test set name: spnsext
+
+directives:
+
+  rtems_clock_get_uptime
+
+concepts:
+
++ Check if nano seconds extension works.

diff -u /dev/null rtems/testsuites/sptests/spnsext01/spnsext01.scn:1.1
--- /dev/null	Fri May  6 02:10:13 2011
+++ rtems/testsuites/sptests/spnsext01/spnsext01.scn	Fri May  6 02:08:04 2011
@@ -0,0 +1,2 @@
+*** TEST NANO SECONDS EXTENSION 1 ***
+*** END OF TEST NANO SECONDS EXTENSION 1 ***



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20110506/66a013ce/attachment.html>


More information about the vc mailing list