change log for rtems (2011-07-13)
rtems-vc at rtems.org
rtems-vc at rtems.org
Wed Jul 13 19:12:03 UTC 2011
*joel*:
2011-07-13 Joel Sherrill <joel.sherrilL at OARcorp.com>
PR 1824/cpukit
* sapi/include/rtems/init.h, sapi/src/exinit.c, sapi/src/exshutdown.c:
Return exit/shutdown status back to boot_card().
M 1.2871 cpukit/ChangeLog
M 1.21 cpukit/sapi/include/rtems/init.h
M 1.60 cpukit/sapi/src/exinit.c
M 1.6 cpukit/sapi/src/exshutdown.c
diff -u rtems/cpukit/ChangeLog:1.2870 rtems/cpukit/ChangeLog:1.2871
--- rtems/cpukit/ChangeLog:1.2870 Mon Jul 11 06:29:38 2011
+++ rtems/cpukit/ChangeLog Wed Jul 13 13:34:22 2011
@@ -1,3 +1,9 @@
+2011-07-13 Joel Sherrill <joel.sherrilL at OARcorp.com>
+
+ PR 1824/cpukit
+ * sapi/include/rtems/init.h, sapi/src/exinit.c, sapi/src/exshutdown.c:
+ Return exit/shutdown status back to boot_card().
+
2011-07-11 Sebastien Bourdeauducq <sebastien.bourdeauducq at gmail.com>
PR 1823/cpukit
diff -u rtems/cpukit/sapi/include/rtems/init.h:1.20 rtems/cpukit/sapi/include/rtems/init.h:1.21
--- rtems/cpukit/sapi/include/rtems/init.h:1.20 Sun Jul 25 10:13:35 2010
+++ rtems/cpukit/sapi/include/rtems/init.h Wed Jul 13 13:34:22 2011
@@ -76,8 +76,11 @@
* This routine implements the early portion of rtems_initialize_executive
* directive up to the pretasking hook. This directive is invoked at system
* startup to initialize the RTEMS multitasking environment.
+ *
+ * @return This method returns the status code passed into the
+ * @ref rtems_shutdown_executive directive.
*/
-void rtems_initialize_start_multitasking(void);
+uint32_t rtems_initialize_start_multitasking(void);
/**
* @brief rtems_shutdown_executive
diff -u rtems/cpukit/sapi/src/exinit.c:1.59 rtems/cpukit/sapi/src/exinit.c:1.60
--- rtems/cpukit/sapi/src/exinit.c:1.59 Wed Apr 27 12:18:59 2011
+++ rtems/cpukit/sapi/src/exinit.c Wed Jul 13 13:34:22 2011
@@ -225,9 +225,8 @@
_API_extensions_Run_postdriver();
}
-void rtems_initialize_start_multitasking(void)
+uint32_t rtems_initialize_start_multitasking(void)
{
-
_System_state_Set( SYSTEM_STATE_BEGIN_MULTITASKING );
_Thread_Start_multitasking();
@@ -240,4 +239,6 @@
*******************************************************************
*******************************************************************
*******************************************************************/
+
+ return _Per_CPU_Information[0].idle->Wait.return_code;
}
diff -u rtems/cpukit/sapi/src/exshutdown.c:1.5 rtems/cpukit/sapi/src/exshutdown.c:1.6
--- rtems/cpukit/sapi/src/exshutdown.c:1.5 Thu May 26 13:07:07 2011
+++ rtems/cpukit/sapi/src/exshutdown.c Wed Jul 13 13:34:22 2011
@@ -44,6 +44,9 @@
#if defined(RTEMS_SMP)
_SMP_Request_other_cores_to_shutdown();
#endif
+
+ _Per_CPU_Information[0].idle->Wait.return_code = result;
+
_System_state_Set( SYSTEM_STATE_SHUTDOWN );
_Thread_Stop_multitasking();
}
*joel*:
2011-07-13 Joel Sherrill <joel.sherrilL at OARcorp.com>
PR 1824/cpukit
* bootcard.c, bspclean.c, include/bootcard.h: Return exit/shutdown
status back to boot_card(). boot_card() propagates this to
bsp_cleanup() and returns it to the assembly that started the
application.
M 1.187 c/src/lib/libbsp/shared/ChangeLog
M 1.50 c/src/lib/libbsp/shared/bootcard.c
M 1.6 c/src/lib/libbsp/shared/bspclean.c
M 1.11 c/src/lib/libbsp/shared/include/bootcard.h
diff -u rtems/c/src/lib/libbsp/shared/ChangeLog:1.186 rtems/c/src/lib/libbsp/shared/ChangeLog:1.187
--- rtems/c/src/lib/libbsp/shared/ChangeLog:1.186 Mon Mar 21 03:19:19 2011
+++ rtems/c/src/lib/libbsp/shared/ChangeLog Wed Jul 13 13:35:04 2011
@@ -1,3 +1,11 @@
+2011-07-13 Joel Sherrill <joel.sherrilL at OARcorp.com>
+
+ PR 1824/cpukit
+ * bootcard.c, bspclean.c, include/bootcard.h: Return exit/shutdown
+ status back to boot_card(). boot_card() propagates this to
+ bsp_cleanup() and returns it to the assembly that started the
+ application.
+
2011-03-21 Sebastian Huber <sebastian.huber at embedded-brains.de>
* console.c: Make device file optional.
diff -u rtems/c/src/lib/libbsp/shared/bootcard.c:1.49 rtems/c/src/lib/libbsp/shared/bootcard.c:1.50
--- rtems/c/src/lib/libbsp/shared/bootcard.c:1.49 Wed May 18 11:09:37 2011
+++ rtems/c/src/lib/libbsp/shared/bootcard.c Wed Jul 13 13:35:04 2011
@@ -111,7 +111,7 @@
* the system while maximizing shared code and keeping BSP code in C
* as much as possible.
*/
-int boot_card(
+uint32_t boot_card(
const char *cmdline
)
{
@@ -121,6 +121,7 @@
void *heap_start = NULL;
uintptr_t heap_size = 0;
uintptr_t sbrk_amount = 0;
+ uint32_t status;
/*
* Special case for PowerPC: The interrupt disable mask is stored in SPRG0.
@@ -170,8 +171,8 @@
printk("Configuration error!\n"
"Application was configured with CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK\n"
"but BSP was configured w/o sbrk support\n");
- bsp_cleanup();
- return -1;
+ bsp_cleanup(1);
+ return 1;
}
#endif
@@ -181,8 +182,8 @@
(void *) Configuration.work_space_size,
(void *) work_area_size
);
- bsp_cleanup();
- return -1;
+ bsp_cleanup(1);
+ return 1;
}
if ( rtems_unified_work_area ) {
@@ -265,7 +266,7 @@
* Complete initialization of RTEMS and switch to the first task.
* Global C++ constructors will be executed in the context of that task.
*/
- rtems_initialize_start_multitasking();
+ status = rtems_initialize_start_multitasking();
/***************************************************************
***************************************************************
@@ -277,10 +278,10 @@
/*
* Perform any BSP specific shutdown actions which are written in C.
*/
- bsp_cleanup();
+ bsp_cleanup( status );
/*
* Now return to the start code.
*/
- return 0;
+ return status;
}
diff -u rtems/c/src/lib/libbsp/shared/bspclean.c:1.5 rtems/c/src/lib/libbsp/shared/bspclean.c:1.6
--- rtems/c/src/lib/libbsp/shared/bspclean.c:1.5 Sun Nov 29 22:56:10 2009
+++ rtems/c/src/lib/libbsp/shared/bspclean.c Wed Jul 13 13:35:04 2011
@@ -17,7 +17,9 @@
#include <bspopts.h>
#include <bsp/bootcard.h>
-void bsp_cleanup( void )
+void bsp_cleanup(
+ uint32_t status
+)
{
#if (BSP_PRESS_KEY_FOR_RESET)
printk( "\nEXECUTIVE SHUTDOWN! Any key to reboot..." );
diff -u rtems/c/src/lib/libbsp/shared/include/bootcard.h:1.10 rtems/c/src/lib/libbsp/shared/include/bootcard.h:1.11
--- rtems/c/src/lib/libbsp/shared/include/bootcard.h:1.10 Wed May 18 00:26:52 2011
+++ rtems/c/src/lib/libbsp/shared/include/bootcard.h Wed Jul 13 13:35:04 2011
@@ -62,7 +62,7 @@
void bsp_postdriver_hook(void);
-void bsp_cleanup(void);
+void bsp_cleanup(uint32_t status);
void bsp_reset(void);
@@ -118,9 +118,11 @@
* the framework for the BSP initialization sequence. The basic flow of
* initialization is:
*
- * - disable interrupts, interrupts will be enabled during the first context switch
+ * - disable interrupts, interrupts will be enabled during the first context
+ * switch
* - bsp_start() - more advanced initialization
- * - obtain information on BSP memory via bsp_get_work_area() and allocate RTEMS Workspace
+ * - obtain information on BSP memory via bsp_get_work_area() and allocate
+ * RTEMS Workspace
* - rtems_initialize_data_structures()
* - allocate memory for C Program Heap
* - initialize C Library and C Program Heap
@@ -144,7 +146,7 @@
* This style of initialization ensures that the C++ global constructors are
* executed after RTEMS is initialized.
*/
-int boot_card(const char *cmdline);
+uint32_t boot_card(const char *cmdline);
/** @} */
*joel*:
2011-07-13 Joel Sherrill <joel.sherrilL at OARcorp.com>
PR 1824/cpukit
* startup/bspclean.c, startup/bspstart.c: Return exit/shutdown status
back to boot_card(). boot_card() propagates this to bsp_cleanup() and
returns it to the assembly that started the application.
bsp_cleanup() prototype changed.
M 1.23 c/src/lib/libbsp/powerpc/beatnik/ChangeLog
M 1.2 c/src/lib/libbsp/powerpc/beatnik/startup/bspclean.c
M 1.6 c/src/lib/libbsp/powerpc/beatnik/startup/bspstart.c
diff -u rtems/c/src/lib/libbsp/powerpc/beatnik/ChangeLog:1.22 rtems/c/src/lib/libbsp/powerpc/beatnik/ChangeLog:1.23
--- rtems/c/src/lib/libbsp/powerpc/beatnik/ChangeLog:1.22 Tue Jul 12 11:18:02 2011
+++ rtems/c/src/lib/libbsp/powerpc/beatnik/ChangeLog Wed Jul 13 13:35:19 2011
@@ -1,3 +1,11 @@
+2011-07-13 Joel Sherrill <joel.sherrilL at OARcorp.com>
+
+ PR 1824/cpukit
+ * startup/bspclean.c, startup/bspstart.c: Return exit/shutdown status
+ back to boot_card(). boot_card() propagates this to bsp_cleanup() and
+ returns it to the assembly that started the application.
+ bsp_cleanup() prototype changed.
+
2011-07-12 Joel Sherrill <joel.sherrilL at OARcorp.com>
* make/custom/beatnik.cfg: Spacing.
diff -u rtems/c/src/lib/libbsp/powerpc/beatnik/startup/bspclean.c:1.1 rtems/c/src/lib/libbsp/powerpc/beatnik/startup/bspclean.c:1.2
--- rtems/c/src/lib/libbsp/powerpc/beatnik/startup/bspclean.c:1.1 Thu Dec 3 10:56:50 2009
+++ rtems/c/src/lib/libbsp/powerpc/beatnik/startup/bspclean.c Wed Jul 13 13:35:19 2011
@@ -1,11 +1,16 @@
#include <bsp.h>
#include <rtems/bspIo.h>
-void bsp_cleanup(void)
+void bsp_cleanup(
+ uint32_t status
+)
{
/* We can't go back to MotLoad since we blew it's memory area
* and vectors. Just pull the reset line...
*/
- printk("bsp_cleanup(): RTEMS terminated -- no way back to MotLoad so I reset the card\n");
+ printk(
+ "bsp_cleanup(): RTEMS terminated -- no way back to MotLoad "
+ "so I reset the card\n"
+ );
bsp_reset();
}
diff -u rtems/c/src/lib/libbsp/powerpc/beatnik/startup/bspstart.c:1.5 rtems/c/src/lib/libbsp/powerpc/beatnik/startup/bspstart.c:1.6
--- rtems/c/src/lib/libbsp/powerpc/beatnik/startup/bspstart.c:1.5 Fri Feb 11 06:44:28 2011
+++ rtems/c/src/lib/libbsp/powerpc/beatnik/startup/bspstart.c Wed Jul 13 13:35:19 2011
@@ -57,7 +57,6 @@
BSP_output_char_function_type BSP_output_char = BSP_output_char_via_serial;
BSP_polling_getchar_function_type BSP_poll_char = NULL;
-extern void bsp_cleanup(void);
extern Triv121PgTbl BSP_pgtbl_setup(unsigned int *);
extern void BSP_pgtbl_activate(Triv121PgTbl);
extern void BSP_motload_pci_fixup(void);
*joel*:
2011-07-13 Joel Sherrill <joel.sherrilL at OARcorp.com>
PR 1824/cpukit
* include/bsp.h, startup/bspclean.c: Return exit/shutdown status back
to boot_card(). boot_card() propagates this to bsp_cleanup() and
returns it to the assembly that started the application.
bsp_cleanup() prototype changed.
M 1.10 c/src/lib/libbsp/m68k/mcf5225x/ChangeLog
M 1.3 c/src/lib/libbsp/m68k/mcf5225x/include/bsp.h
M 1.3 c/src/lib/libbsp/m68k/mcf5225x/startup/bspclean.c
diff -u rtems/c/src/lib/libbsp/m68k/mcf5225x/ChangeLog:1.9 rtems/c/src/lib/libbsp/m68k/mcf5225x/ChangeLog:1.10
--- rtems/c/src/lib/libbsp/m68k/mcf5225x/ChangeLog:1.9 Fri Feb 11 06:30:19 2011
+++ rtems/c/src/lib/libbsp/m68k/mcf5225x/ChangeLog Wed Jul 13 13:35:31 2011
@@ -1,3 +1,11 @@
+2011-07-13 Joel Sherrill <joel.sherrilL at OARcorp.com>
+
+ PR 1824/cpukit
+ * include/bsp.h, startup/bspclean.c: Return exit/shutdown status back
+ to boot_card(). boot_card() propagates this to bsp_cleanup() and
+ returns it to the assembly that started the application.
+ bsp_cleanup() prototype changed.
+
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* startup/bspclean.c:
diff -u rtems/c/src/lib/libbsp/m68k/mcf5225x/include/bsp.h:1.2 rtems/c/src/lib/libbsp/m68k/mcf5225x/include/bsp.h:1.3
--- rtems/c/src/lib/libbsp/m68k/mcf5225x/include/bsp.h:1.2 Mon May 3 19:06:51 2010
+++ rtems/c/src/lib/libbsp/m68k/mcf5225x/include/bsp.h Wed Jul 13 13:35:31 2011
@@ -64,8 +64,6 @@
uint32_t bsp_get_CPU_clock_speed(void);
-void bsp_cleanup(void);
-
m68k_isr_entry set_vector(
rtems_isr_entry handler,
rtems_vector_number vector,
diff -u rtems/c/src/lib/libbsp/m68k/mcf5225x/startup/bspclean.c:1.2 rtems/c/src/lib/libbsp/m68k/mcf5225x/startup/bspclean.c:1.3
--- rtems/c/src/lib/libbsp/m68k/mcf5225x/startup/bspclean.c:1.2 Fri Feb 11 06:30:19 2011
+++ rtems/c/src/lib/libbsp/m68k/mcf5225x/startup/bspclean.c Wed Jul 13 13:35:31 2011
@@ -22,7 +22,9 @@
#include <bsp.h>
#include <rtems/bspIo.h>
-void __attribute__((weak)) bsp_cleanup(void)
+void __attribute__((weak)) bsp_cleanup(
+ uint32_t status
+)
{
printk("\nRTEMS exited!\n");
for (;;) {
*joel*:
2011-07-13 Joel Sherrill <joel.sherrilL at OARcorp.com>
PR 1824/cpukit
* misc/interr.c, spurious/spinit.c: Return exit/shutdown status back to
boot_card(). boot_card() propagates this to bsp_cleanup() and returns
it to the assembly that started the application. bsp_cleanup()
prototype changed.
M 1.132 c/src/lib/libbsp/m68k/mrm332/ChangeLog
M 1.6 c/src/lib/libbsp/m68k/mrm332/misc/interr.c
M 1.9 c/src/lib/libbsp/m68k/mrm332/spurious/spinit.c
diff -u rtems/c/src/lib/libbsp/m68k/mrm332/ChangeLog:1.131 rtems/c/src/lib/libbsp/m68k/mrm332/ChangeLog:1.132
--- rtems/c/src/lib/libbsp/m68k/mrm332/ChangeLog:1.131 Tue Mar 22 09:14:24 2011
+++ rtems/c/src/lib/libbsp/m68k/mrm332/ChangeLog Wed Jul 13 13:35:33 2011
@@ -1,3 +1,11 @@
+2011-07-13 Joel Sherrill <joel.sherrilL at OARcorp.com>
+
+ PR 1824/cpukit
+ * misc/interr.c, spurious/spinit.c: Return exit/shutdown status back to
+ boot_card(). boot_card() propagates this to bsp_cleanup() and returns
+ it to the assembly that started the application. bsp_cleanup()
+ prototype changed.
+
2011-03-22 Joel Sherrill <joel.sherrilL at OARcorp.com>
PR 1772/bsps
diff -u rtems/c/src/lib/libbsp/m68k/mrm332/misc/interr.c:1.5 rtems/c/src/lib/libbsp/m68k/mrm332/misc/interr.c:1.6
--- rtems/c/src/lib/libbsp/m68k/mrm332/misc/interr.c:1.5 Sat Sep 6 12:09:08 2008
+++ rtems/c/src/lib/libbsp/m68k/mrm332/misc/interr.c Wed Jul 13 13:35:33 2011
@@ -47,7 +47,6 @@
* this phase of install. jsg
*/
void outbyte(char);
-void bsp_cleanup( void );
#define RAW_PUTS(str) \
{ register char *ptr = str; \
@@ -91,7 +90,7 @@
RAW_PUTS(").\r\n");
/* configure peripherals for a safe exit */
- bsp_cleanup();
+ bsp_cleanup(1);
_CPU_Fatal_halt( the_error );
diff -u rtems/c/src/lib/libbsp/m68k/mrm332/spurious/spinit.c:1.8 rtems/c/src/lib/libbsp/m68k/mrm332/spurious/spinit.c:1.9
--- rtems/c/src/lib/libbsp/m68k/mrm332/spurious/spinit.c:1.8 Fri Feb 11 06:32:23 2011
+++ rtems/c/src/lib/libbsp/m68k/mrm332/spurious/spinit.c Wed Jul 13 13:35:33 2011
@@ -74,7 +74,7 @@
RAW_PUTI(sp);
RAW_PUTS("\n\r");
#endif
- bsp_cleanup();
+ bsp_cleanup(1);
/* BDM SIGEMT */
__asm__ (" .word 0x4afa");
*joel*:
2011-07-13 Joel Sherrill <joel.sherrilL at OARcorp.com>
PR 1824/cpukit
* startup/bspclean.c: Return exit/shutdown status back to boot_card().
boot_card() propagates this to bsp_cleanup() and returns it to the
assembly that started the application. bsp_cleanup() prototype
changed.
M 1.116 c/src/lib/libbsp/m68k/mvme136/ChangeLog
M 1.15 c/src/lib/libbsp/m68k/mvme136/startup/bspclean.c
M 1.114 c/src/lib/libbsp/m68k/mvme147/ChangeLog
M 1.12 c/src/lib/libbsp/m68k/mvme147/startup/bspclean.c
M 1.128 c/src/lib/libbsp/m68k/mvme162/ChangeLog
M 1.16 c/src/lib/libbsp/m68k/mvme162/startup/bspclean.c
M 1.133 c/src/lib/libbsp/m68k/mvme167/ChangeLog
M 1.9 c/src/lib/libbsp/m68k/mvme167/startup/bspclean.c
M 1.122 c/src/lib/libbsp/m68k/uC5282/ChangeLog
M 1.7 c/src/lib/libbsp/m68k/uC5282/startup/bspclean.c
M 1.132 c/src/lib/libbsp/powerpc/mvme5500/ChangeLog
M 1.6 c/src/lib/libbsp/powerpc/mvme5500/startup/bspclean.c
diff -u rtems/c/src/lib/libbsp/m68k/mvme136/ChangeLog:1.115 rtems/c/src/lib/libbsp/m68k/mvme136/ChangeLog:1.116
--- rtems/c/src/lib/libbsp/m68k/mvme136/ChangeLog:1.115 Fri Feb 11 06:34:22 2011
+++ rtems/c/src/lib/libbsp/m68k/mvme136/ChangeLog Wed Jul 13 13:35:35 2011
@@ -1,3 +1,11 @@
+2011-07-13 Joel Sherrill <joel.sherrilL at OARcorp.com>
+
+ PR 1824/cpukit
+ * startup/bspclean.c: Return exit/shutdown status back to boot_card().
+ boot_card() propagates this to bsp_cleanup() and returns it to the
+ assembly that started the application. bsp_cleanup() prototype
+ changed.
+
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* include/bsp.h, shmsupp/lock.c, startup/bspclean.c:
diff -u rtems/c/src/lib/libbsp/m68k/mvme136/startup/bspclean.c:1.14 rtems/c/src/lib/libbsp/m68k/mvme136/startup/bspclean.c:1.15
--- rtems/c/src/lib/libbsp/m68k/mvme136/startup/bspclean.c:1.14 Fri Feb 11 06:34:23 2011
+++ rtems/c/src/lib/libbsp/m68k/mvme136/startup/bspclean.c Wed Jul 13 13:35:35 2011
@@ -33,7 +33,9 @@
#define TIMER 0xfffb0000
-void bsp_cleanup( void )
+void bsp_cleanup(
+ uint32_t status
+)
{
Z8x36_WRITE( TIMER, MASTER_INTR, 0x62 ); /* redo timer */
Z8x36_WRITE( TIMER, CT1_MODE_SPEC, 0x00 );
diff -u rtems/c/src/lib/libbsp/m68k/mvme147/ChangeLog:1.113 rtems/c/src/lib/libbsp/m68k/mvme147/ChangeLog:1.114
--- rtems/c/src/lib/libbsp/m68k/mvme147/ChangeLog:1.113 Fri Feb 11 06:36:11 2011
+++ rtems/c/src/lib/libbsp/m68k/mvme147/ChangeLog Wed Jul 13 13:35:36 2011
@@ -1,3 +1,11 @@
+2011-07-13 Joel Sherrill <joel.sherrilL at OARcorp.com>
+
+ PR 1824/cpukit
+ * startup/bspclean.c: Return exit/shutdown status back to boot_card().
+ boot_card() propagates this to bsp_cleanup() and returns it to the
+ assembly that started the application. bsp_cleanup() prototype
+ changed.
+
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* startup/bspclean.c:
diff -u rtems/c/src/lib/libbsp/m68k/mvme147/startup/bspclean.c:1.11 rtems/c/src/lib/libbsp/m68k/mvme147/startup/bspclean.c:1.12
--- rtems/c/src/lib/libbsp/m68k/mvme147/startup/bspclean.c:1.11 Fri Feb 11 06:36:11 2011
+++ rtems/c/src/lib/libbsp/m68k/mvme147/startup/bspclean.c Wed Jul 13 13:35:37 2011
@@ -34,7 +34,9 @@
__asm__ volatile ( "jmp %0@" : "=a" (start_addr) : "0" (start_addr) );
}
-void bsp_cleanup( void )
+void bsp_cleanup(
+ uint32_t status
+)
{
pcc->timer1_int_control = 0; /* Disable Timer 1 */
pcc->timer2_int_control = 0; /* Disable Timer 2 */
diff -u rtems/c/src/lib/libbsp/m68k/mvme162/ChangeLog:1.127 rtems/c/src/lib/libbsp/m68k/mvme162/ChangeLog:1.128
--- rtems/c/src/lib/libbsp/m68k/mvme162/ChangeLog:1.127 Sat Jun 11 12:26:16 2011
+++ rtems/c/src/lib/libbsp/m68k/mvme162/ChangeLog Wed Jul 13 13:35:39 2011
@@ -1,3 +1,11 @@
+2011-07-13 Joel Sherrill <joel.sherrilL at OARcorp.com>
+
+ PR 1824/cpukit
+ * startup/bspclean.c: Return exit/shutdown status back to boot_card().
+ boot_card() propagates this to bsp_cleanup() and returns it to the
+ assembly that started the application. bsp_cleanup() prototype
+ changed.
+
2011-06-11 Joel Sherrill <joel.sherrill at oarcorp.com>
* Makefile.am: Remove reference to wrapup directory.
diff -u rtems/c/src/lib/libbsp/m68k/mvme162/startup/bspclean.c:1.15 rtems/c/src/lib/libbsp/m68k/mvme162/startup/bspclean.c:1.16
--- rtems/c/src/lib/libbsp/m68k/mvme162/startup/bspclean.c:1.15 Fri Feb 11 06:37:56 2011
+++ rtems/c/src/lib/libbsp/m68k/mvme162/startup/bspclean.c Wed Jul 13 13:35:39 2011
@@ -52,7 +52,9 @@
#endif
}
-void bsp_cleanup( void )
+void bsp_cleanup(
+ uint32_t status
+)
{
M68Kvec[ 45 ] = bsp_return_to_monitor_trap; /* install handler */
__asm__ volatile( "trap #13" ); /* insures SUPV mode */
diff -u rtems/c/src/lib/libbsp/m68k/mvme167/ChangeLog:1.132 rtems/c/src/lib/libbsp/m68k/mvme167/ChangeLog:1.133
--- rtems/c/src/lib/libbsp/m68k/mvme167/ChangeLog:1.132 Fri Feb 11 06:37:58 2011
+++ rtems/c/src/lib/libbsp/m68k/mvme167/ChangeLog Wed Jul 13 13:35:41 2011
@@ -1,3 +1,11 @@
+2011-07-13 Joel Sherrill <joel.sherrilL at OARcorp.com>
+
+ PR 1824/cpukit
+ * startup/bspclean.c: Return exit/shutdown status back to boot_card().
+ boot_card() propagates this to bsp_cleanup() and returns it to the
+ assembly that started the application. bsp_cleanup() prototype
+ changed.
+
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* console/console.c, fatal/bspfatal.c, startup/bspclean.c,
diff -u rtems/c/src/lib/libbsp/m68k/mvme167/startup/bspclean.c:1.8 rtems/c/src/lib/libbsp/m68k/mvme167/startup/bspclean.c:1.9
--- rtems/c/src/lib/libbsp/m68k/mvme167/startup/bspclean.c:1.8 Fri Feb 11 06:37:58 2011
+++ rtems/c/src/lib/libbsp/m68k/mvme167/startup/bspclean.c Wed Jul 13 13:35:41 2011
@@ -74,7 +74,9 @@
*
* Return values: DOES NOT RETURN
*/
-void bsp_cleanup( void )
+void bsp_cleanup(
+ uint32_t status
+)
{
M68Kvec[ 45 ] = bsp_return_to_monitor_trap;
__asm__ volatile( "trap #13" );
diff -u rtems/c/src/lib/libbsp/m68k/uC5282/ChangeLog:1.121 rtems/c/src/lib/libbsp/m68k/uC5282/ChangeLog:1.122
--- rtems/c/src/lib/libbsp/m68k/uC5282/ChangeLog:1.121 Tue Mar 15 16:34:44 2011
+++ rtems/c/src/lib/libbsp/m68k/uC5282/ChangeLog Wed Jul 13 13:35:43 2011
@@ -1,3 +1,11 @@
+2011-07-13 Joel Sherrill <joel.sherrilL at OARcorp.com>
+
+ PR 1824/cpukit
+ * startup/bspclean.c: Return exit/shutdown status back to boot_card().
+ boot_card() propagates this to bsp_cleanup() and returns it to the
+ assembly that started the application. bsp_cleanup() prototype
+ changed.
+
2011-03-15 Till Straumann <strauman at slac.stanford.edu>
* startup/bspstart.c: Fix clock code on qemu. Also ensure UART is
diff -u rtems/c/src/lib/libbsp/m68k/uC5282/startup/bspclean.c:1.6 rtems/c/src/lib/libbsp/m68k/uC5282/startup/bspclean.c:1.7
--- rtems/c/src/lib/libbsp/m68k/uC5282/startup/bspclean.c:1.6 Tue Apr 27 12:23:22 2010
+++ rtems/c/src/lib/libbsp/m68k/uC5282/startup/bspclean.c Wed Jul 13 13:35:43 2011
@@ -21,7 +21,9 @@
extern void bsp_reset(int);
-void bsp_cleanup( void )
+void bsp_cleanup(
+ uint32_t status
+)
{
- bsp_reset(0);
+ bsp_reset(0);
}
diff -u rtems/c/src/lib/libbsp/powerpc/mvme5500/ChangeLog:1.131 rtems/c/src/lib/libbsp/powerpc/mvme5500/ChangeLog:1.132
--- rtems/c/src/lib/libbsp/powerpc/mvme5500/ChangeLog:1.131 Fri Jun 17 08:24:46 2011
+++ rtems/c/src/lib/libbsp/powerpc/mvme5500/ChangeLog Wed Jul 13 13:35:22 2011
@@ -1,3 +1,11 @@
+2011-07-13 Joel Sherrill <joel.sherrilL at OARcorp.com>
+
+ PR 1824/cpukit
+ * startup/bspclean.c: Return exit/shutdown status back to boot_card().
+ boot_card() propagates this to bsp_cleanup() and returns it to the
+ assembly that started the application. bsp_cleanup() prototype
+ changed.
+
2011-04-10 Kate Feng <feng at bnl.gov>
PR 1786/bsps
diff -u rtems/c/src/lib/libbsp/powerpc/mvme5500/startup/bspclean.c:1.5 rtems/c/src/lib/libbsp/powerpc/mvme5500/startup/bspclean.c:1.6
--- rtems/c/src/lib/libbsp/powerpc/mvme5500/startup/bspclean.c:1.5 Fri May 8 13:12:31 2009
+++ rtems/c/src/lib/libbsp/powerpc/mvme5500/startup/bspclean.c Wed Jul 13 13:35:22 2011
@@ -8,7 +8,9 @@
#define AUTO_BOOT 0
-void bsp_cleanup(void)
+void bsp_cleanup(
+ uint32_t status
+)
{
#if AUTO_BOOT
/* Till Straumann <strauman at slac.stanford.edu> for SVGM */
*joel*:
2011-07-13 Joel Sherrill <joel.sherrilL at OARcorp.com>
PR 1824/cpukit
* bsp_howto/init.t, bsp_howto/support.t, user/init.t: Return
exit/shutdown status back to boot_card().
M 1.313 doc/ChangeLog
M 1.15 doc/bsp_howto/init.t
M 1.10 doc/bsp_howto/support.t
M 1.21 doc/user/init.t
diff -u rtems/doc/ChangeLog:1.312 rtems/doc/ChangeLog:1.313
--- rtems/doc/ChangeLog:1.312 Mon May 23 11:18:51 2011
+++ rtems/doc/ChangeLog Wed Jul 13 13:35:56 2011
@@ -1,3 +1,9 @@
+2011-07-13 Joel Sherrill <joel.sherrilL at OARcorp.com>
+
+ PR 1824/cpukit
+ * bsp_howto/init.t, bsp_howto/support.t, user/init.t: Return
+ exit/shutdown status back to boot_card().
+
2011-05-23 Joel Sherrill <joel.sherrilL at OARcorp.com>
* bsp_howto/support.t: Update copyright.
diff -u rtems/doc/bsp_howto/init.t:1.14 rtems/doc/bsp_howto/init.t:1.15
--- rtems/doc/bsp_howto/init.t:1.14 Fri Aug 22 12:00:31 2008
+++ rtems/doc/bsp_howto/init.t Wed Jul 13 13:35:56 2011
@@ -97,7 +97,7 @@
to the first application task. After this, the application executes
until it calls @code{exit}, @code{rtems_shutdown_executive}, or some
other normal termination initiating routine and control is returned
-to @code{bootcard.c} which allows the BSP to perform some clanup in C
+to @code{bootcard.c} which allows the BSP to perform some cleanup in C
(@code{bsp_cleanup}) and then @code{boot_card} returns to the assembly
language which initially invoked it.
diff -u rtems/doc/bsp_howto/support.t:1.9 rtems/doc/bsp_howto/support.t:1.10
--- rtems/doc/bsp_howto/support.t:1.9 Mon May 23 11:18:51 2011
+++ rtems/doc/bsp_howto/support.t Wed Jul 13 13:35:56 2011
@@ -182,7 +182,7 @@
@findex CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK
If your BSP does not want to support dynamic heap extension, then you do not have to do anything special. However, if you want to support @code{sbrk}, you must provide an implementation of this method and define @code{CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK} in @code{bsp.h}. This informs @code{rtems/confdefs.h} to configure the Malloc Family Extensions which support @code{sbrk}.
- at section bsp_cleanup() - Cleanup the Hardware
+ at section bsp_cleanup(uint32_t status) - Cleanup the Hardware
The @code{bsp_cleanup()} is the last C code invoked. Most of the BSPs
use the same shared version of @code{bsp_cleanup()} that does nothing.
@@ -194,13 +194,18 @@
The @code{bsp_cleanup()} routine can be used to return to a ROM monitor,
insure that interrupt sources are disabled, etc.. This routine is the
-last place to insure a clean shutdown of the hardware. On some BSPs,
-it prints a message indicating that the application completed execution
-and waits for the user to press a key before resetting the board.
-The PowerPC/gen83xx and PowerPC/gen5200 BSPs do this when they are built
-to support the FreeScale evaluation boards. This is convenient when
-using the boards in a development environment and may be disabled for
-production use.
+last place to ensure a clean shutdown of the hardware. The @code{status}
+argument is the value passed to the service which initiated shutting
+down RTEMS. All of the non-fatal shutdown sequences ultimately pass
+their exit status to @code{rtems_shutdown_executive} and this is what
+is passed to this routine.
+
+On some BSPs, it prints a message indicating that the application
+completed execution and waits for the user to press a key before
+resetting the board. The PowerPC/gen83xx and PowerPC/gen5200 BSPs do
+this when they are built to support the FreeScale evaluation boards.
+This is convenient when using the boards in a development environment
+and may be disabled for production use.
@section Configuration Macros
diff -u rtems/doc/user/init.t:1.20 rtems/doc/user/init.t:1.21
--- rtems/doc/user/init.t:1.20 Mon Dec 15 13:22:26 2008
+++ rtems/doc/user/init.t Wed Jul 13 13:35:56 2011
@@ -349,7 +349,7 @@
@ifset is-C
@findex rtems_initialize_start_multitasking
@example
-void rtems_initialize_start_multitasking(void);
+uint32_t rtems_initialize_start_multitasking(void);
@end example
@end ifset
@@ -361,7 +361,8 @@
@subheading DIRECTIVE STATUS CODES:
-NONE
+This directive returns the status code passed in to the
+ at code{@value{DIRPREFIX}shutdown_executive}.
@subheading DESCRIPTION:
*joel* (on branch rtems-4-10-branch):
2011-07-13 Till Straumann <strauman at slac.stanford.edu>
PR 1775/filesystem
* libfs/src/nfsclient/src/nfs.c: NFSAddress NFS issue where read/write
problems when requested bytes greater than nfsStBlksize. Failure to
create files and symlinks.
M 1.2872 cpukit/ChangeLog
M 1.2346.2.95 cpukit/ChangeLog
M 1.28 cpukit/libfs/src/nfsclient/src/nfs.c
M 1.21.2.2 cpukit/libfs/src/nfsclient/src/nfs.c
diff -u rtems/cpukit/ChangeLog:1.2871 rtems/cpukit/ChangeLog:1.2872
--- rtems/cpukit/ChangeLog:1.2871 Wed Jul 13 13:34:22 2011
+++ rtems/cpukit/ChangeLog Wed Jul 13 14:05:43 2011
@@ -1,3 +1,10 @@
+2011-07-13 Till Straumann <strauman at slac.stanford.edu>
+
+ PR 1775/filesystem
+ * libfs/src/nfsclient/src/nfs.c: NFSAddress NFS issue where read/write
+ problems when requested bytes greater than nfsStBlksize. Failure to
+ create files and symlinks.
+
2011-07-13 Joel Sherrill <joel.sherrilL at OARcorp.com>
PR 1824/cpukit
diff -u rtems/cpukit/ChangeLog:1.2346.2.94 rtems/cpukit/ChangeLog:1.2346.2.95
--- rtems/cpukit/ChangeLog:1.2346.2.94 Sun Jul 3 19:27:35 2011
+++ rtems/cpukit/ChangeLog Wed Jul 13 14:06:01 2011
@@ -1,3 +1,10 @@
+2011-07-13 Till Straumann <strauman at slac.stanford.edu>
+
+ PR 1775/filesystem
+ * libfs/src/nfsclient/src/nfs.c: NFSAddress NFS issue where read/write
+ problems when requested bytes greater than nfsStBlksize. Failure to
+ create files and symlinks.
+
2011-07-04 Chris Johns <chrisj at rtems.org>
PR 1827/filesystem
diff -u rtems/cpukit/libfs/src/nfsclient/src/nfs.c:1.27 rtems/cpukit/libfs/src/nfsclient/src/nfs.c:1.28
--- rtems/cpukit/libfs/src/nfsclient/src/nfs.c:1.27 Tue Jan 4 12:32:59 2011
+++ rtems/cpukit/libfs/src/nfsclient/src/nfs.c Wed Jul 13 14:05:43 2011
@@ -1574,7 +1574,7 @@
*/
assert( node->args.name );
- *(const char**)arg = pathname + (node->args.name - p);
+ *(arg->c) = pathname + (node->args.name - p);
#if 0
/* restore the directory node */
diff -u rtems/cpukit/libfs/src/nfsclient/src/nfs.c:1.21.2.1 rtems/cpukit/libfs/src/nfsclient/src/nfs.c:1.21.2.2
--- rtems/cpukit/libfs/src/nfsclient/src/nfs.c:1.21.2.1 Thu Jul 1 10:18:06 2010
+++ rtems/cpukit/libfs/src/nfsclient/src/nfs.c Wed Jul 13 14:06:02 2011
@@ -1574,7 +1574,7 @@
*/
assert( node->args.name );
- *(const char**)arg = pathname + (node->args.name - p);
+ *(arg->c) = pathname + (node->args.name - p);
#if 0
/* restore the directory node */
--
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/20110713/02d0700c/attachment-0001.html>
More information about the vc
mailing list