diff options
| author | wdenk <wdenk> | 2003-07-24 23:38:38 +0000 | 
|---|---|---|
| committer | wdenk <wdenk> | 2003-07-24 23:38:38 +0000 | 
| commit | 27b207fd0a0941b03f27e2a82c0468b1a090c745 (patch) | |
| tree | 4d339d7a2a00889f09a876425ce430be57de56e9 /common/cmd_load.c | |
| parent | 2535d60277cc295adf75cd5721dcecd840c69a63 (diff) | |
| download | olio-uboot-2014.01-27b207fd0a0941b03f27e2a82c0468b1a090c745.tar.xz olio-uboot-2014.01-27b207fd0a0941b03f27e2a82c0468b1a090c745.zip | |
* Implement new mechanism to export U-Boot's functions to standalone
  applications: instead of using (PPC-specific) system calls we now
  use a jump table; please see doc/README.standalone for details
* Patch by Dave Westwood, 24 Jul 2003:
  added support for Unity OS (a proprietary OS)
Diffstat (limited to 'common/cmd_load.c')
| -rw-r--r-- | common/cmd_load.c | 9 | 
1 files changed, 4 insertions, 5 deletions
| diff --git a/common/cmd_load.c b/common/cmd_load.c index 0ea8c4b4e..5622452cc 100644 --- a/common/cmd_load.c +++ b/common/cmd_load.c @@ -28,7 +28,7 @@  #include <command.h>  #include <s_record.h>  #include <net.h> -#include <syscall.h> +#include <exports.h>  #if (CONFIG_COMMANDS & CFG_CMD_LOADS) @@ -213,6 +213,7 @@ load_serial (ulong offset)  static int  read_record (char *buf, ulong len)  { +	DECLARE_GLOBAL_DATA_PTR;  	char *p;  	char c; @@ -236,13 +237,11 @@ read_record (char *buf, ulong len)  		}  	    /* Check for the console hangup (if any different from serial) */ -#ifdef CONFIG_PPC	/* we don't have syscall_tbl anywhere else */ -	    if (syscall_tbl[SYSCALL_GETC] != serial_getc) { +	    if (gd->jt[XF_getc] != serial_getc) {  		if (ctrlc()) {  		    return (-1);  		}  	    } -#endif  	}  	/* line too long - truncate */ @@ -479,7 +478,7 @@ int do_load_serial_bin (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])  	printf ("## Ready for binary (kermit) download "  		"to 0x%08lX at %d bps...\n",  		offset, -		current_baudrate); +		load_baudrate);  	addr = load_serial_bin (offset);  	if (addr == ~0) { |