9
0
Fork 0

pass filename to nfs and tftp start functions

Signed-off-by: Sascha Hauer <sha@pengutronix.de>
This commit is contained in:
Sascha Hauer 2009-10-17 09:58:29 +02:00 committed by Sascha Hauer
parent 1d3d2c6369
commit ac50a05caf
3 changed files with 6 additions and 8 deletions

View File

@ -160,8 +160,8 @@ U_BOOT_CMD_END
int net_store_fd;
extern void TftpStart(void); /* Begin TFTP get */
extern void NfsStart(void);
extern void TftpStart(char *); /* Begin TFTP get */
extern void NfsStart(char *);
static int
netboot_common (proto_t proto, cmd_tbl_t *cmdtp, int argc, char *argv[])
@ -196,10 +196,10 @@ netboot_common (proto_t proto, cmd_tbl_t *cmdtp, int argc, char *argv[])
switch (proto) {
case TFTP:
TftpStart();
TftpStart(remotefile);
break;
case NFS:
NfsStart();
NfsStart(remotefile);
default:
break;
}

View File

@ -648,10 +648,8 @@ NfsHandler (uchar *pkt, unsigned dest, unsigned src, unsigned len)
void
NfsStart (void)
NfsStart (char *p)
{
char *p = BootFile;
#ifdef NFS_DEBUG
printf ("%s\n", __FUNCTION__);
#endif

View File

@ -66,7 +66,7 @@ struct rpc_t {
} reply;
} u;
};
extern void NfsStart (void); /* Begin NFS */
extern void NfsStart (char *); /* Begin NFS */
/**********************************************************************/