aboutsummaryrefslogtreecommitdiffstats
path: root/sys/trusty
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-04-18 12:36:52 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-04-18 14:35:45 +0200
commit67234372ef1e27c87a6be2e0141d70ae797231a1 (patch)
treee6304ac41f5af586d81d84e31f9c8547754a32d9 /sys/trusty
parentea36da8271c508fe4c8bcc80af20ec81c812b95a (diff)
prog: refactor target.MakeMmap
Make MakeMmap return more than 1 call. This is a preparation for future changes. Also remove addr/size as they are effectively always the same and can be inferred from the target (will also conflict with the future changes). Also rename to MakeDataMmap to better represent the new purpose: it's just some arbitrary mmap, but rather mapping of the data segment.
Diffstat (limited to 'sys/trusty')
-rw-r--r--sys/trusty/init.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/trusty/init.go b/sys/trusty/init.go
index d437b5d3f..2ec63cbf3 100644
--- a/sys/trusty/init.go
+++ b/sys/trusty/init.go
@@ -9,5 +9,5 @@ import (
)
func InitTarget(target *prog.Target) {
- target.MakeMmap = targets.MakeSyzMmap(target)
+ target.MakeDataMmap = targets.MakeSyzMmap(target)
}