Binary code patching on amd64
authorsf <sf@openbsd.org>
Fri, 16 Jan 2015 10:17:51 +0000 (10:17 +0000)
committersf <sf@openbsd.org>
Fri, 16 Jan 2015 10:17:51 +0000 (10:17 +0000)
commit61d6df422f0f5a89aceb8b55fd2d03b24dfe19a1
tree35cdcebfcf35671c3c59be0798f12af738e19373
parent5129e365b454f03f794db0f6936cdbe31627a2ed
Binary code patching on amd64

This commit adds generic infrastructure to do binary code patching on amd64.
The existing code patching for SMAP is converted to the new infrastruture.

More consumers and support for i386 will follow later.

This version of the diff has some simplifications in codepatch_fill_nop()
compared to a version that was:

OK @kettenis @mlarkin @jsg
sys/arch/amd64/amd64/codepatch.c [new file with mode: 0644]
sys/arch/amd64/amd64/copy.S
sys/arch/amd64/amd64/cpu.c
sys/arch/amd64/amd64/locore.S
sys/arch/amd64/conf/files.amd64
sys/arch/amd64/include/codepatch.h [new file with mode: 0644]