aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/libgnarl
diff options
context:
space:
mode:
authorJohannes Kliemann <kliemann@adacore.com>2023-05-12 13:21:22 +0000
committerMarc Poulhiès <poulhies@adacore.com>2023-06-15 09:59:36 +0200
commitb36be75b29d7fc5c6ab3c48229f9521ae91c6a2c (patch)
tree3377f39d421bd94e1858e6e8503a20a94669d64b /gcc/ada/libgnarl
parent1de3b5a7b57c7c02a216d2f6c709639536a45818 (diff)
downloadgcc-b36be75b29d7fc5c6ab3c48229f9521ae91c6a2c.zip
gcc-b36be75b29d7fc5c6ab3c48229f9521ae91c6a2c.tar.gz
gcc-b36be75b29d7fc5c6ab3c48229f9521ae91c6a2c.tar.bz2
ada: Adjust QNX Ada priorities to match QNX system priorities
The Ada priority range of the QNX runtime started from 0, differing from the QNX system priorities range starting from 1. As this may cause confusion, especially if used in a mixed language environment, the Ada priority range now starts at 1. The default priority of Ada tasks as mandated is the middle of the priority range. On QNX this means the default priority of Ada tasks is 30. This is much higher than the default QNX priority of 10 and may cause unexpected system interruptions when Ada tasks take a lot of CPU time. gcc/ada/ * libgnarl/s-osinte__qnx.adb: Adjust priority conversion function. * libgnat/system-qnx-arm.ads: Adjust priority range and default priority.
Diffstat (limited to 'gcc/ada/libgnarl')
-rw-r--r--gcc/ada/libgnarl/s-osinte__qnx.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/libgnarl/s-osinte__qnx.adb b/gcc/ada/libgnarl/s-osinte__qnx.adb
index bf08ecb..127d179 100644
--- a/gcc/ada/libgnarl/s-osinte__qnx.adb
+++ b/gcc/ada/libgnarl/s-osinte__qnx.adb
@@ -87,7 +87,7 @@ package body System.OS_Interface is
(Prio : System.Any_Priority) return Interfaces.C.int
is
begin
- return Interfaces.C.int (Prio) + 1;
+ return Interfaces.C.int (Prio);
end To_Target_Priority;
-----------------