OSDN Git Service

pcm: dmix: assembly: refactor the PIC mode
authorFrédéric Recoules <frederic.recoules@orange.fr>
Wed, 6 May 2020 17:19:23 +0000 (19:19 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 6 May 2020 20:27:11 +0000 (22:27 +0200)
commit79c6ba99c472db2686554d96589c2fef20376016
treeeb6b03068bdb76b92eddd01badd186121f219f4a
parent0fd7f0cdc5e663e69486d17b0207434396620be6
pcm: dmix: assembly: refactor the PIC mode

Newer versions of GCC (> 5.0) accept that ebx is declared
in the clobber list even in PIC mode. Meanwhile, even
unlikely, the compiler may use ebx as base address of
one of the memory entry, making subsequent access to
them unreliable ('size', 'dst_step', 'src_step', 'sum_step').

Adding ebx in the clobber solves the problem.
By the way, the entry 'old_ebx' is no longer required.

Signed-off-by: Frédéric Recoules <frederic.recoules@orange.fr>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_dmix_i386.h
src/pcm/pcm_dmix_x86_64.h