parisc: Add ALTERNATIVE_CODE() and ALT_COND_RUN_ON_QEMU
authorHelge Deller <deller@gmx.de>
Mon, 12 Aug 2019 17:11:06 +0000 (19:11 +0200)
committerHelge Deller <deller@gmx.de>
Mon, 12 Aug 2019 17:17:39 +0000 (19:17 +0200)
commit82992fc70f98dee091faa926eb5cecadda5c84f4
tree915078a06f9ed8bd736bbd29d52eca237af19b91
parent83af58f8068ea3f7b3c537c37a30887bfa585069
parisc: Add ALTERNATIVE_CODE() and ALT_COND_RUN_ON_QEMU

The macro ALTERNATIVE_CODE() allows assembly code to patch in a series
of new assembler statements given at a specific start address.
The ALT_COND_RUN_ON_QEMU condition is true if the kernel is started in a
qemu emulation.

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/alternative.h
arch/parisc/kernel/alternative.c