Home | History | Annotate | Download | only in hw

Lines Matching refs:info

61 static void set_kernel_args(struct arm_boot_info *info,
77 WRITE_WORD(p, info->ram_size);
78 WRITE_WORD(p, info->loader_start);
83 WRITE_WORD(p, info->loader_start + INITRD_LOAD_ADDR);
86 if (info->kernel_cmdline && *info->kernel_cmdline) {
90 cmdline_size = strlen(info->kernel_cmdline);
91 cpu_physical_memory_write(p + 8, (void *)info->kernel_cmdline,
98 if (info->atag_board) {
103 atag_board_len = (info->atag_board(info, atag_board_buf) + 3) & ~3;
114 static void set_kernel_args_old(struct arm_boot_info *info,
126 WRITE_WORD(p, info->ram_size / 4096);
160 WRITE_WORD(p, info->loader_start + INITRD_LOAD_ADDR);
179 s = info->kernel_cmdline;
187 void arm_load_kernel(CPUState *env, struct arm_boot_info *info)
198 if (!info->kernel_filename) {
203 if (info->nb_cpus == 0)
204 info->nb_cpus = 1;
205 env->boot_info = info;
214 kernel_size = load_elf(info->kernel_filename, 0, &elf_entry, NULL, NULL);
217 kernel_size = load_uimage(info->kernel_filename, &entry, NULL,
221 entry = info->loader_start + KERNEL_LOAD_ADDR;
222 kernel_size = load_image_targphys(info->kernel_filename, entry,
228 info->kernel_filename);
236 if (info->initrd_filename) {
237 initrd_size = load_image_targphys(info->initrd_filename,
238 info->loader_start
243 info->initrd_filename);
249 bootloader[1] |= info->board_id & 0xff;
250 bootloader[2] |= (info->board_id >> 8) & 0xff;
251 bootloader[5] = info->loader_start + KERNEL_ARGS_ADDR;
254 stl_phys_notdirty(info->loader_start + (n * 4), bootloader[n]);
256 if (info->nb_cpus > 1) {
258 stl_phys_notdirty(info->smp_loader_start + (n * 4), smpboot[n]);
262 set_kernel_args_old(info, initrd_size, info->loader_start);
264 set_kernel_args(info, initrd_size, info->loader_start);
266 info->is_linux = is_linux;