From f352dc846b549ea1a9ab9280a213f454be5cdd82 Mon Sep 17 00:00:00 2001 From: Richard Barry Date: Thu, 23 Sep 2010 13:13:26 +0000 Subject: [PATCH] Replace the hard coded interrupt priorities with the configKERNEL_INTERRUPT_PRIORITY and configMAX_SYSCALL_INTERRUPT_PRIORITY definitions in the IAR RX port layer. --- Source/portable/IAR/RX600/port_asm.s | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/portable/IAR/RX600/port_asm.s b/Source/portable/IAR/RX600/port_asm.s index 6e8c1787dc..fd447215b6 100644 --- a/Source/portable/IAR/RX600/port_asm.s +++ b/Source/portable/IAR/RX600/port_asm.s @@ -51,6 +51,8 @@ licensing and training services. */ +#include "PriorityDefinitions.h" + PUBLIC _prvStartFirstTask PUBLIC ___interrupt_27 @@ -150,13 +152,13 @@ ___interrupt_27: /* Ensure the interrupt mask is set to the syscall priority while the kernel structures are being accessed. */ - MVTIPL #4 + MVTIPL #configMAX_SYSCALL_INTERRUPT_PRIORITY /* Select the next task to run. */ BSR.A _vTaskSwitchContext /* Reset the interrupt mask as no more data structure access is required. */ - MVTIPL #1 + MVTIPL #configKERNEL_INTERRUPT_PRIORITY /* Load the stack pointer of the task that is now selected as the Running state task from its TCB. */