FreeCalypso > hg > freecalypso-sw
comparison 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 |
comparison
equal
deleted
inserted
replaced
418:a9bf3e92a30c | 419:3a46728e054b |
---|---|
83 extern char *optarg; | 83 extern char *optarg; |
84 extern int optind; | 84 extern int optind; |
85 int c; | 85 int c; |
86 fd_set fds; | 86 fd_set fds; |
87 | 87 |
88 while ((c = getopt(argc, argv, "l:w:")) != EOF) | 88 while ((c = getopt(argc, argv, "a:l:s:w:")) != EOF) |
89 switch (c) { | 89 switch (c) { |
90 case 'a': | |
91 iram_load_addr = strtoul(optarg, 0, 16); | |
92 continue; | |
90 case 'l': | 93 case 'l': |
91 logfname = optarg; | 94 logfname = optarg; |
95 continue; | |
96 case 's': | |
97 stack_smash_addr = strtoul(optarg, 0, 16); | |
92 continue; | 98 continue; |
93 case 'w': | 99 case 'w': |
94 wakeup_after_sec = strtoul(optarg, 0, 0); | 100 wakeup_after_sec = strtoul(optarg, 0, 0); |
95 continue; | 101 continue; |
96 case '?': | 102 case '?': |