diff options
Diffstat (limited to 'arch/sandbox/cpu')
| -rw-r--r-- | arch/sandbox/cpu/cpu.c | 5 | ||||
| -rw-r--r-- | arch/sandbox/cpu/start.c | 9 | 
2 files changed, 13 insertions, 1 deletions
| diff --git a/arch/sandbox/cpu/cpu.c b/arch/sandbox/cpu/cpu.c index b2788d5d5..dd8d495e3 100644 --- a/arch/sandbox/cpu/cpu.c +++ b/arch/sandbox/cpu/cpu.c @@ -57,6 +57,11 @@ void *map_physmem(phys_addr_t paddr, unsigned long len, unsigned long flags)  	return (void *)(gd->arch.ram_buf + paddr);  } +phys_addr_t map_to_sysmem(void *ptr) +{ +	return (u8 *)ptr - gd->arch.ram_buf; +} +  void flush_dcache_range(unsigned long start, unsigned long stop)  {  } diff --git a/arch/sandbox/cpu/start.c b/arch/sandbox/cpu/start.c index 5287fd5ee..ae6e16cab 100644 --- a/arch/sandbox/cpu/start.c +++ b/arch/sandbox/cpu/start.c @@ -90,7 +90,7 @@ int sandbox_main_loop_init(void)  	/* Execute command if required */  	if (state->cmd) { -		run_command(state->cmd, 0); +		run_command_list(state->cmd, -1, 0);  		os_exit(state->exit_type);  	} @@ -104,6 +104,13 @@ static int sb_cmdline_cb_command(struct sandbox_state *state, const char *arg)  }  SB_CMDLINE_OPT_SHORT(command, 'c', 1, "Execute U-Boot command"); +static int sb_cmdline_cb_fdt(struct sandbox_state *state, const char *arg) +{ +	state->fdt_fname = arg; +	return 0; +} +SB_CMDLINE_OPT_SHORT(fdt, 'd', 1, "Specify U-Boot's control FDT"); +  int main(int argc, char *argv[])  {  	struct sandbox_state *state; |