Binary code patching on i386
authorsf <sf@openbsd.org>
Sun, 19 Apr 2015 06:27:17 +0000 (06:27 +0000)
committersf <sf@openbsd.org>
Sun, 19 Apr 2015 06:27:17 +0000 (06:27 +0000)
commit64e2e8001cb24b423e5ca4634f7ff8ccd2f1661d
tree843b4c1883f45431856d85b85a917ef9da3fc1f4
parentc431e8df888e18b944bb2def106b276c8161d572
Binary code patching on i386

This commit ports the infrastructure to do binary code patching from amd64.
The existing code patching for SMAP is converted to the new infrastruture.

ok kettenis@
"should go in" deraadt@
sys/arch/i386/conf/files.i386
sys/arch/i386/i386/codepatch.c [new file with mode: 0644]
sys/arch/i386/i386/cpu.c
sys/arch/i386/i386/locore.s
sys/arch/i386/include/codepatch.h [new file with mode: 0644]