Update GCC compiler for:

* RX600v2
 * RX600
 * RX100

Signed-off-by: Dinh Van Nam <vannam.dinh.xt@renesas.com>
This commit is contained in:
Dinh Van Nam 2020-07-16 16:39:48 +09:00 committed by Ravishankar Bhagavandas
parent 6149a700a0
commit e7cb025db4
3 changed files with 43 additions and 1 deletions

View file

@ -40,7 +40,11 @@
#include "string.h" #include "string.h"
/* Hardware specifics. */ /* Hardware specifics. */
#if defined(configINCLUDE_PLATFORM_H_INSTEAD_OF_IODEFINE_H) && (configINCLUDE_PLATFORM_H_INSTEAD_OF_IODEFINE_H == 1)
#include "platform.h"
#else
#include "iodefine.h" #include "iodefine.h"
#endif
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
@ -89,13 +93,21 @@ static void prvStartFirstTask( void ) __attribute__((naked));
* restoring of registers). Written in asm code as direct register access is * restoring of registers). Written in asm code as direct register access is
* required. * required.
*/ */
#if defined(configTICK_VECTOR)
void vPortSoftwareInterruptISR( void ) __attribute__((naked, vector( R_BSP_SECNAME_INTVECTTBL, VECT_ICU_SWINT )));
#else
void vPortSoftwareInterruptISR( void ) __attribute__((naked)); void vPortSoftwareInterruptISR( void ) __attribute__((naked));
#endif
/* /*
* The tick interrupt handler. * The tick interrupt handler.
*/ */
void vPortTickISR( void ) __attribute__((interrupt));
#if defined(configTICK_VECTOR)
void vPortTickISR( void ) __attribute__((interrupt( R_BSP_SECNAME_INTVECTTBL, _VECT( configTICK_VECTOR ) )));
#else
void vPortTickISR( void ) __attribute__((interrupt));
#endif
/* /*
* Sets up the periodic ISR used for the RTOS tick using the CMT. * Sets up the periodic ISR used for the RTOS tick using the CMT.
* The application writer can define configSETUP_TICK_INTERRUPT() (in * The application writer can define configSETUP_TICK_INTERRUPT() (in

View file

@ -37,7 +37,11 @@
#include "string.h" #include "string.h"
/* Hardware specifics. */ /* Hardware specifics. */
#if defined(configINCLUDE_PLATFORM_H_INSTEAD_OF_IODEFINE_H) && (configINCLUDE_PLATFORM_H_INSTEAD_OF_IODEFINE_H == 1)
#include "platform.h"
#else
#include "iodefine.h" #include "iodefine.h"
#endif
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
@ -67,12 +71,20 @@ static void prvStartFirstTask( void ) __attribute__((naked));
* restoring of registers). Written in asm code as direct register access is * restoring of registers). Written in asm code as direct register access is
* required. * required.
*/ */
#if defined(configTICK_VECTOR)
void vSoftwareInterruptISR( void ) __attribute__((naked, vector( R_SECNAME_INTVECTTBL, VECT_ICU_SWINT )));
#else
void vSoftwareInterruptISR( void ) __attribute__((naked)); void vSoftwareInterruptISR( void ) __attribute__((naked));
#endif
/* /*
* The tick interrupt handler. * The tick interrupt handler.
*/ */
#if defined(configTICK_VECTOR)
void vTickISR( void ) __attribute__((interrupt( R_SECNAME_INTVECTTBL, _VECT( configTICK_VECTOR ) )));
#else
void vTickISR( void ) __attribute__((interrupt)); void vTickISR( void ) __attribute__((interrupt));
#endif
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
@ -344,6 +356,9 @@ uint32_t ulPortGetIPL( void )
void vPortSetIPL( uint32_t ulNewIPL ) void vPortSetIPL( uint32_t ulNewIPL )
{ {
/* Avoid compiler warning about unreferenced parameter. */
( void ) ulNewIPL;
__asm volatile __asm volatile
( (
"PUSH R5 \n" \ "PUSH R5 \n" \

View file

@ -37,7 +37,11 @@
#include "string.h" #include "string.h"
/* Hardware specifics. */ /* Hardware specifics. */
#if defined(configINCLUDE_PLATFORM_H_INSTEAD_OF_IODEFINE_H) && (configINCLUDE_PLATFORM_H_INSTEAD_OF_IODEFINE_H == 1)
#include "platform.h"
#else
#include "iodefine.h" #include "iodefine.h"
#endif
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
@ -67,12 +71,20 @@ static void prvStartFirstTask( void ) __attribute__((naked));
* restoring of registers). Written in asm code as direct register access is * restoring of registers). Written in asm code as direct register access is
* required. * required.
*/ */
#if defined(configTICK_VECTOR)
void vSoftwareInterruptISR( void ) __attribute__((naked, vector( R_BSP_SECNAME_INTVECTTBL, VECT_ICU_SWINT )));
#else
void vSoftwareInterruptISR( void ) __attribute__((naked)); void vSoftwareInterruptISR( void ) __attribute__((naked));
#endif
/* /*
* The tick interrupt handler. * The tick interrupt handler.
*/ */
#if defined(configTICK_VECTOR)
void vTickISR( void ) __attribute__((interrupt( R_BSP_SECNAME_INTVECTTBL, _VECT( configTICK_VECTOR ) )));
#else
void vTickISR( void ) __attribute__((interrupt)); void vTickISR( void ) __attribute__((interrupt));
#endif
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
@ -393,6 +405,9 @@ uint32_t ulPortGetIPL( void )
void vPortSetIPL( uint32_t ulNewIPL ) void vPortSetIPL( uint32_t ulNewIPL )
{ {
/* Avoid compiler warning about unreferenced parameter. */
( void ) ulNewIPL;
__asm volatile __asm volatile
( (
"PUSH R5 \n" \ "PUSH R5 \n" \