mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-26 08:37:33 +08:00
score: Remove fatal is internal indicator
The fatal is internal indicator is redundant since the fatal source and error code uniquely identify a fatal error. Keep the fatal user extension is internal parameter for backward compatibility and set it to false always. Update #2825.
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
void rtems_shutdown_executive( uint32_t result )
|
||||
{
|
||||
_Terminate( RTEMS_FATAL_SOURCE_EXIT, false, result );
|
||||
_Terminate( RTEMS_FATAL_SOURCE_EXIT, result );
|
||||
|
||||
/***************************************************************
|
||||
***************************************************************
|
||||
|
||||
@@ -30,7 +30,7 @@ void rtems_fatal_error_occurred(
|
||||
uint32_t the_error
|
||||
)
|
||||
{
|
||||
_Terminate( INTERNAL_ERROR_RTEMS_API, FALSE, the_error );
|
||||
_Terminate( INTERNAL_ERROR_RTEMS_API, the_error );
|
||||
|
||||
/* will not return from this routine */
|
||||
}
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @brief Invokes the internal error handler with is internal set to false.
|
||||
*
|
||||
* @ingroup ClassicFatal
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2012 embedded brains GmbH. All rights reserved.
|
||||
*
|
||||
* embedded brains GmbH
|
||||
* Obere Lagerstr. 30
|
||||
* 82178 Puchheim
|
||||
* Germany
|
||||
* <rtems@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.org/license/LICENSE.
|
||||
*/
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <rtems/fatal.h>
|
||||
|
||||
void rtems_fatal(
|
||||
rtems_fatal_source source,
|
||||
rtems_fatal_code error
|
||||
)
|
||||
{
|
||||
_Terminate( source, false, error );
|
||||
}
|
||||
@@ -25,5 +25,5 @@ void _POSIX_Fatal_error( POSIX_Fatal_domain domain, int eno )
|
||||
{
|
||||
uint32_t code = ( domain << 8 ) | ( ( uint32_t ) eno & 0xffU );
|
||||
|
||||
_Terminate( INTERNAL_ERROR_POSIX_API, false, code );
|
||||
_Terminate( INTERNAL_ERROR_POSIX_API, code );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user