• Heiko Carstens's avatar
    s390/fpu: convert __kernel_fpu_begin()/__kernel_fpu_end() to C · 918c7cad
    Heiko Carstens authored
    Convert the rather large __kernel_fpu_begin()/__kernel_fpu_end() inline
    assemblies to C. The C variant is much more readable, and this also allows
    to get rid of the non-obvious usage of KERNEL_VXR_* constants within the
    inline assemblies. E.g. "tmll %[m],6" correlates with the two bits set in
    KERNEL_VXR_LOW. If the corresponding defines would be changed, the inline
    assembles would break in a subtle way.
    
    Therefore convert to C, use the proper defines, and allow the compiler to
    generate code using the (hopefully) most efficient instructions.
    Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
    918c7cad
fpu.h 5.84 KB