summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/conf
diff options
context:
space:
mode:
authorStefan Fritsch <sf@cvs.openbsd.org>2015-01-16 10:17:52 +0000
committerStefan Fritsch <sf@cvs.openbsd.org>2015-01-16 10:17:52 +0000
commit04848c8b5e35427fb525880887fb74edb803b56f (patch)
tree06c82cdc1636868e4c5eea4c6c2d334db0687d77 /sys/arch/amd64/conf
parent49bb0794ceb08efa5df906a7f8c464f81d739b3b (diff)
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
Diffstat (limited to 'sys/arch/amd64/conf')
-rw-r--r--sys/arch/amd64/conf/files.amd644
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/amd64/conf/files.amd64 b/sys/arch/amd64/conf/files.amd64
index d5a1c6e0c43..a39ed72c176 100644
--- a/sys/arch/amd64/conf/files.amd64
+++ b/sys/arch/amd64/conf/files.amd64
@@ -1,4 +1,4 @@
-# $OpenBSD: files.amd64,v 1.76 2014/12/10 05:42:25 jsg Exp $
+# $OpenBSD: files.amd64,v 1.77 2015/01/16 10:17:51 sf Exp $
maxpartitions 16
maxusers 2 16 128
@@ -80,6 +80,8 @@ device mainbus: isabus, pcibus, mainbus
attach mainbus at root
file arch/amd64/amd64/mainbus.c mainbus
+file arch/amd64/amd64/codepatch.c
+
device bios {}
attach bios at mainbus
file arch/amd64/amd64/bios.c bios needs-flag