diff options
Diffstat (limited to 'mig_test/software/lib/premain.c')
-rw-r--r-- | mig_test/software/lib/premain.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/mig_test/software/lib/premain.c b/mig_test/software/lib/premain.c new file mode 100644 index 0000000..6206c06 --- /dev/null +++ b/mig_test/software/lib/premain.c @@ -0,0 +1,26 @@ +/* +extern char _data_start; +extern char _data_end; +extern char _data_start_rom; +*/ + + +void _premain( void) +{ +/* + int count; + char *dst = (char *) &_data_start; + char *src = (char *) &_data_start_rom; + + if ( (&_data_start) != (&_data_start_rom) ) + { + count = &_data_end - &_data_start; + while (count--) + { + *dst++ = *src++; + } + } +*/ + + main(); +} |