]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64: Add macros for annotating the destination of rfid/hrfid
authorNicholas Piggin <npiggin@gmail.com>
Tue, 9 Jan 2018 16:07:15 +0000 (03:07 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 9 Jan 2018 16:07:30 +0000 (03:07 +1100)
commit3d598a1230e7470c645e9ba4d0a453e69ba79d37
tree6f37b935c308c39495e190170a2a1e028ca5ef9a
parent3f49f3f11f87cae2b0c3a0a8ac077c818f8a425f
powerpc/64: Add macros for annotating the destination of rfid/hrfid

The rfid/hrfid ((Hypervisor) Return From Interrupt) instruction is
used for switching from the kernel to userspace, and from the
hypervisor to the guest kernel. However it can and is also used for
other transitions, eg. from real mode kernel code to virtual mode
kernel code, and it's not always clear from the code what the
destination context is.

To make it clearer when reading the code, add macros which encode the
expected destination context.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/exception-64e.h
arch/powerpc/include/asm/exception-64s.h