Browse Source

librt: fix mq_timed{send,receive} return instructions

Not all architectures use 'ret' as function return instruction. For example,
xtensa usually uses 'retw'. Use the ret_ERRVAL arch dependant macro instead.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Baruch Siach 10 years ago
parent
commit
294079b3fd
2 changed files with 2 additions and 2 deletions
  1. 1 1
      librt/mq_timedreceive.S
  2. 1 1
      librt/mq_timedsend.S

+ 1 - 1
librt/mq_timedreceive.S

@@ -3,6 +3,6 @@
 #error Missing definition of NR_timedreceive needed for cancellation.
 #endif
 PSEUDO(mq_timedreceive, mq_timedreceive, 5)
-ret
+ret_ERRVAL
 PSEUDO_END(mq_timedreceive)
 librt_hidden_def(mq_timedreceive)

+ 1 - 1
librt/mq_timedsend.S

@@ -3,6 +3,6 @@
 #error Missing definition of NR_timedsend needed for cancellation.
 #endif
 PSEUDO(mq_timedsend, mq_timedsend, 5)
-ret
+ret_ERRVAL
 PSEUDO_END(mq_timedsend)
 librt_hidden_def(mq_timedsend)