2 * Copyright (C) 2003 by Greg Watson, Los Alamos National Laboratory
8 extern unsigned _iseg[];
9 extern unsigned _liseg[];
10 extern unsigned _eliseg[];
12 void (*hardwaremain)(int) = _iseg;
15 * At this point we're running out of flash with our
16 * stack in cache ram. We need to do the following:
18 * - turn on real memory
19 * - relocate our payload into real memory
20 * - start hardwaremain() which does remainder of setup
33 * Relocate payload (text & data) if necessary
35 if (_liseg != _iseg) {
38 while (from < _eliseg)