#include <command.h>
#include <s_record.h>
#include <net.h>
-#include <syscall.h>
+#include <exports.h>
#if (CONFIG_COMMANDS & CFG_CMD_LOADS)
static int
read_record (char *buf, ulong len)
{
+ DECLARE_GLOBAL_DATA_PTR;
char *p;
char c;
}
/* 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 */
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) {