diff --git a/include/vm_segment.h b/include/vm_segment.h index 07c09ae..e87a20d 100644 --- a/include/vm_segment.h +++ b/include/vm_segment.h @@ -62,6 +62,7 @@ extern int vm_segment_write_map(vm_segment *, size_t, vm_segment_write_fn); extern vm_16bit vm_segment_get16(vm_segment *, size_t); extern vm_8bit vm_segment_get(vm_segment *, size_t); extern vm_segment *vm_segment_create(size_t); +extern void *vm_segment_get_map_machine(); extern void vm_segment_free(vm_segment *); extern void vm_segment_set_map_machine(void *); diff --git a/src/vm_segment.c b/src/vm_segment.c index fc0745e..b79ec20 100644 --- a/src/vm_segment.c +++ b/src/vm_segment.c @@ -294,3 +294,12 @@ vm_segment_set_map_machine(void *mach) { map_mach = mach; } + +/* + * Return the map machine + */ +void * +vm_segment_get_map_machine() +{ + return map_mach; +}