From: richardbarry Date: Thu, 23 Sep 2010 13:13:26 +0000 (+0000) Subject: Replace the hard coded interrupt priorities with the configKERNEL_INTERRUPT_PRIORITY... X-Git-Tag: V6.1.0~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5bd29d426b63664d54209a2dab47662ec4e4e92c;p=freertos Replace the hard coded interrupt priorities with the configKERNEL_INTERRUPT_PRIORITY and configMAX_SYSCALL_INTERRUPT_PRIORITY definitions in the IAR RX port layer. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1129 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Source/portable/IAR/RX600/port_asm.s b/Source/portable/IAR/RX600/port_asm.s index 6e8c1787d..fd447215b 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. */