]> sourceware.org Git - glibc.git/commit
powerpc: Fix handling of scv return error codes [BZ #27892]
authorNicholas Piggin <npiggin@gmail.com>
Thu, 20 May 2021 14:00:36 +0000 (11:00 -0300)
committerMatheus Castanho <msc@linux.ibm.com>
Mon, 24 May 2021 20:01:40 +0000 (17:01 -0300)
commit7de36744ee1325f35d3fe0ca079dd33c40b12267
treebd0e5c1b564964f1922aab977f907b801319ecb5
parent79aec841029c160a85f46564f8bad132af008e30
powerpc: Fix handling of scv return error codes [BZ #27892]

When using scv for templated ASM syscalls, current code interprets any
negative return value as error, but the only valid error codes are in
the range -4095..-1 according to the ABI.

This commit also fixes 'signal.gen.test' strace test, where the issue
was first identified.

Reviewed-by: Matheus Castanho <msc@linux.ibm.com>
sysdeps/powerpc/powerpc64/sysdep.h
This page took 0.038309 seconds and 5 git commands to generate.