# HG changeset patch # User Michael Spacefalcon # Date 1403039286 0 # Node ID 3a46728e054b20f8b17c2fc79a3752521550d1b4 # Parent a9bf3e92a30c59f974d2d0869867438777004231 tfc139: -a and -s options to override IRAM payload and stack smash addresses diff -r a9bf3e92a30c -r 3a46728e054b rvinterf/lowlevel/tfc139.c --- 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;