powerpc/32: add helper to write into segment registers
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 21 Feb 2019 19:08:44 +0000 (19:08 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 23 Feb 2019 10:04:32 +0000 (21:04 +1100)
commit02d5d13b4544dff5fc0c0aa0179085ed52b72ecd
tree89ca00e3e402e982247ea8cd2ecf4fd3ce4f2dea
parentdf25f863903bab5fa0b8fd3a429eb8f455852986
powerpc/32: add helper to write into segment registers

This patch add an helper which wraps 'mtsrin' instruction
to write into segment registers.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/reg.h