Lines Matching defs:modules
184 struct boot_modules modules[MAX_BOOT_MODULES];
915 modules[0].bm_addr = xen_info->mod_start;
916 modules[0].bm_size = xen_info->mod_len;
918 bi->bi_modules = (native_ptr_t)modules;
1077 modules[0].bm_addr = mod_start;
1078 modules[0].bm_size = mod_end - mod_start;
1079 modules[0].bm_name = NULL;
1080 modules[0].bm_hash = NULL;
1081 modules[0].bm_type = BMT_ENV;
1082 bi->bi_modules = (native_ptr_t)(uintptr_t)modules;
1156 ascii = (const char *)(uintptr_t)modules[midx].bm_hash;
1157 image = (const void *)(uintptr_t)modules[midx].bm_addr;
1158 len = (size_t)modules[midx].bm_size;
1201 i, (char *)(uintptr_t)modules[i].bm_name,
1202 type_to_str(modules[i].bm_type),
1203 (ulong_t)modules[i].bm_addr,
1204 (ulong_t)modules[i].bm_size);
1207 if (modules[i].bm_type == BMT_HASH ||
1208 modules[i].bm_hash == NULL) {
1213 (void *)(uintptr_t)modules[i].bm_hash,
1271 modules[midx].bm_addr = mod_start;
1272 modules[midx].bm_size = mod_end - mod_start;
1273 modules[midx].bm_name = (native_ptr_t)(uintptr_t)cmdline;
1274 modules[midx].bm_hash = NULL;
1275 modules[midx].bm_type = BMT_FILE;
1278 modules[midx].bm_name = (native_ptr_t)(uintptr_t)noname;
1283 modules[midx].bm_name =
1290 modules[midx].bm_name =
1301 modules[midx].bm_type = BMT_ROOTFS;
1303 modules[midx].bm_type = BMT_HASH;
1305 modules[midx].bm_type = BMT_ENV;
1316 modules[midx].bm_hash =
1327 * Backward compatibility: if there are exactly one or two modules, both
1329 * given the legacy style modules. In this case we need to treat the first
1341 if (modules[0].bm_type != BMT_FILE ||
1342 modules_used > 1 && modules[1].bm_type != BMT_FILE) {
1346 if (modules[0].bm_hash != NULL ||
1347 modules_used > 1 && modules[1].bm_hash != NULL) {
1351 modules[0].bm_type = BMT_ROOTFS;
1353 modules[1].bm_type = BMT_HASH;
1354 modules[1].bm_name = modules[0].bm_name;
1359 * For modules that do not have assigned hashes but have a separate hash module,
1361 * to the hash data from that module. We will then ignore modules of type
1370 if (modules[i].bm_type == BMT_HASH ||
1371 modules[i].bm_hash != NULL) {
1376 if (modules[j].bm_type != BMT_HASH ||
1377 strcmp((char *)(uintptr_t)modules[j].bm_name,
1378 (char *)(uintptr_t)modules[i].bm_name) != 0) {
1382 if (modules[j].bm_size < SHA1_ASCII_LENGTH) {
1385 (ulong_t)modules[j].bm_size);
1387 modules[i].bm_hash = modules[j].bm_addr;
1407 dboot_panic("Too many modules (%d) -- the maximum is %d.",
1411 * search the modules to find the last used address
1419 bi->bi_modules = (native_ptr_t)(uintptr_t)modules;