Lines Matching defs:cur_map
41 struct map_info *cur_map;
51 cur_map = map_alloc_info ();
52 if (cur_map == MAP_FAILED)
54 cur_map->next = map_list;
55 cur_map->start = start;
56 cur_map->end = end;
57 cur_map->offset = offset;
58 cur_map->load_base = 0;
59 cur_map->flags = flags;
60 cur_map->path = strdup (mi.path);
61 mutex_init (&cur_map->ei_lock);
62 cur_map->ei.valid = false;
63 cur_map->ei.load_attempted = false;
64 cur_map->ei.mapped = false;
65 cur_map->ei.mini_debug_info_data = NULL;
66 cur_map->ei.mini_debug_info_size = 0;
74 if (strncmp ("/dev/", cur_map->path, 5) == 0
75 && strncmp ("ashmem/", cur_map->path + 5, 7) != 0)
76 cur_map->flags |= MAP_FLAGS_DEVICE_MEM;
80 if (cur_map->path[0] != '\0' && strncmp ("[stack:", cur_map->path, 7) != 0
82 && !(cur_map->flags & MAP_FLAGS_DEVICE_MEM))
88 && elf_map_image (&ei, cur_map->path))
92 cur_map->load_base = load_base;
127 ei.u.memory.start = cur_map->start;
128 ei.u.memory.end = cur_map->end;
133 if (ei.valid && elf_w (get_load_base) (&ei, cur_map->offset, &load_base))
134 cur_map->load_base = load_base;
139 map_list = cur_map;