FreeCalypso > hg > freecalypso-sw
diff rvinterf/lowlevel/tfc139.c @ 419:3a46728e054b
tfc139: -a and -s options to override IRAM payload and stack smash addresses
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Tue, 17 Jun 2014 21:08:06 +0000 |
parents | a9bf3e92a30c |
children | 15e69d31c96f |
line wrap: on
line diff
--- a/rvinterf/lowlevel/tfc139.c Tue Jun 17 20:59:59 2014 +0000 +++ b/rvinterf/lowlevel/tfc139.c Tue Jun 17 21:08:06 2014 +0000 @@ -85,11 +85,17 @@ int c; fd_set fds; - while ((c = getopt(argc, argv, "l:w:")) != EOF) + while ((c = getopt(argc, argv, "a:l:s:w:")) != EOF) switch (c) { + case 'a': + iram_load_addr = strtoul(optarg, 0, 16); + continue; case 'l': logfname = optarg; continue; + case 's': + stack_smash_addr = strtoul(optarg, 0, 16); + continue; case 'w': wakeup_after_sec = strtoul(optarg, 0, 0); continue;