130 |
130 |
131 return map; |
131 return map; |
132 } |
132 } |
133 |
133 |
134 // Part of the class sharing workaround |
134 // Part of the class sharing workaround |
135 static map_info* add_class_share_map_info(struct ps_prochandle* ph, off_t offset, |
135 static void add_class_share_map_info(struct ps_prochandle* ph, off_t offset, |
136 uintptr_t vaddr, size_t memsz) { |
136 uintptr_t vaddr, size_t memsz) { |
137 map_info* map; |
137 map_info* map; |
138 if ((map = allocate_init_map(ph->core->classes_jsa_fd, |
138 if ((map = allocate_init_map(ph->core->classes_jsa_fd, |
139 offset, vaddr, memsz)) == NULL) { |
139 offset, vaddr, memsz)) == NULL) { |
140 return NULL; |
140 return; |
141 } |
141 } |
142 |
142 |
143 map->next = ph->core->class_share_maps; |
143 map->next = ph->core->class_share_maps; |
144 ph->core->class_share_maps = map; |
144 ph->core->class_share_maps = map; |
145 } |
145 } |