Re: [PATCH 1/5] powerpc/asm: Add a patch_site macro & helpers for patching instructions

2018-08-09 Thread Michael Ellerman
Christophe LEROY writes: > Le 08/08/2018 à 18:30, Christophe LEROY a écrit : >> Le 23/07/2018 à 17:07, Michael Ellerman a écrit : ... >>> diff --git a/arch/powerpc/include/asm/code-patching.h >>> b/arch/powerpc/include/asm/code-patching.h >>> index 812535f40124..b2051234ada8 100644 >>> --- a/arch

Re: [PATCH 1/5] powerpc/asm: Add a patch_site macro & helpers for patching instructions

2018-08-08 Thread Christophe LEROY
Le 08/08/2018 à 18:30, Christophe LEROY a écrit : Le 23/07/2018 à 17:07, Michael Ellerman a écrit : Add a macro and some helper C functions for patching single asm instructions. The gas macro means we can do something like:    1:    nop    patch_site 1b, patch__foo Which is less visu

Re: [PATCH 1/5] powerpc/asm: Add a patch_site macro & helpers for patching instructions

2018-08-08 Thread Christophe LEROY
Le 23/07/2018 à 17:07, Michael Ellerman a écrit : Add a macro and some helper C functions for patching single asm instructions. The gas macro means we can do something like: 1: nop patch_site 1b, patch__foo Which is less visually distracting than defining a GLOBAL symbol at 1,

[PATCH 1/5] powerpc/asm: Add a patch_site macro & helpers for patching instructions

2018-07-23 Thread Michael Ellerman
Add a macro and some helper C functions for patching single asm instructions. The gas macro means we can do something like: 1:nop patch_site 1b, patch__foo Which is less visually distracting than defining a GLOBAL symbol at 1, and also doesn't pollute the symbol table which can con