source: umon/main/common/alttfsdevtbl.S @ 87db514

Last change on this file since 87db514 was 87db514, checked in by Amar Takhar <amar@…>, on 04/16/15 at 19:26:21

Initial commit of the umon repository.

Prior to this three changes were made:

  • Remove umon_ prefix from parent directories.
  • Collapse main/target/ into main/
  • Remove ports/template/flashtest.scr.ucon script.
  • Property mode set to 100644
File size: 2.7 KB
Line 
1/**************************************************************************
2 *
3 * Copyright (c) 2013 Alcatel-Lucent
4 *
5 * Alcatel Lucent licenses this file to You under the Apache License,
6 * Version 2.0 (the "License"); you may not use this file except in
7 * compliance with the License.  A copy of the License is contained the
8 * file LICENSE at the top level of this repository.
9 * You may also obtain a copy of the License at:
10 *
11 *      http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 *
19 **************************************************************************
20 *
21 * alttfsdevtbl.S:
22 *
23 * The use of alt_tfsdevtbl_base within uMon allows the "tfs cfg"
24 * command to be used by versions of uMon that are relocated to
25 * RAM.  This applies to the "ramtst" build for a given port,
26 * but more importantly, it applies to those ports that have to
27 * relocate themselves to RAM just to successfully boot.
28 *
29 * The reason this is needed is because this block of empty flash
30 * is placed at a fixed location in the memory space (usually
31 * next to moncomptr and etheradd) so that other non-flash-based
32 * versions can find this location through a tag in the linker
33 * map file.  That tag must be set to point to the physical location
34 * at which alt_tfsdevtbl_base is placed (similar to etheradd).
35 *
36 * So, when building with the following line in config.h...
37 *
38 * #define TFS_ALTDEVTBL_BASE      &alt_tfsdevtbl_base
39 *
40 * the linker map file used by any run-from-ram version of that
41 * port must contain the tag that initializes this base address
42 * something like this (where ALTTFSDEVTBLBASE is replaced by
43 * some fixed address)...
44 *
45 * alt_tfsdevtbl_base   = ALTTFSDEVTBLBASE;
46 *
47 * Original author:     Ed Sutter (ed.sutter@alcatel-lucent.com)
48 *
49 */
50
51        .global alt_tfsdevtbl_base
52
53        .balign 0x10
54
55alt_tfsdevtbl_base:
56    .byte 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
57    .byte 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
58    .byte 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
59    .byte 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
60    .byte 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
61    .byte 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
62    .byte 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
63    .byte 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
64    .byte 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
65    .byte 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
66    .byte 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
67alt_tfsdevtbl_end:
Note: See TracBrowser for help on using the repository browser.