4.104.114.84.95
Last change
on this file since f52111f was
50bb7627,
checked in by Joel Sherrill <joel.sherrill@…>, on 10/12/00 at 12:56:07
|
2000-10-12 John S Gwynne <jgwynne@…>
- start/start.c: Modified to support generation of ram_init.
- start/ram_init.ld, BSP/start/ram_init.sed: New files.
These changes enable RTEMS to automatically generate
the ram_init file used by gdb with the BDM patches. The 332 has
on-board chip select lines (for RAM and FLASH) that must be
configured before use of these peripherals. These patches parse
data from start.c where the chip select lines are configured in
the runtime executable and automatically generates the gdb
initialization file using the same settings. A great time saver.
A similar file, ram_init_FW (flash writable), is also generated
that the flash programming tool uses.
- start/Makefile.am: Modified to support above.
- CPU/sim.h: Modified to support above.
- startup/except_vect_332_ROM.S: Moved to start so it would not
be included in libbsp.a. Moving it to start ensures it is
available as a single object file.
- start/except_vect_332_ROM.S: Moved from startup.
- startup/linkcmds, startup/linkcmds_ROM: Fixes to the memory map
shown in the comments.
|
-
Property mode set to
100644
|
File size:
647 bytes
|
Line | |
---|
1 | 1 { |
---|
2 | i\ |
---|
3 | #include <efi332.h>\ |
---|
4 | #define ASM\ |
---|
5 | #include "sim.h"\ |
---|
6 | \ |
---|
7 | /* This file is automatically generated from EFI332_crt0.c -- DO NOT EDIT */\ |
---|
8 | \ |
---|
9 | /* note: For one reason or another, I could not get '|' (bit-or) to\ |
---|
10 | work in the version of gas I'm using. I've replaced them with \ |
---|
11 | '+' (addition) for this file. */\ |
---|
12 | \ |
---|
13 | .text\ |
---|
14 | \ |
---|
15 | |
---|
16 | D; |
---|
17 | }; |
---|
18 | /include in ram_init.S/,/end include in ram_init.S/ { |
---|
19 | /\*.*= *\(.*\)/ { |
---|
20 | s/*/ .org / |
---|
21 | h; |
---|
22 | s/=.*// |
---|
23 | P; |
---|
24 | g; |
---|
25 | /(.*short int)/ s/.*short int)/ .short / |
---|
26 | /(.*char)/ s/.*char)/ .byte / |
---|
27 | s/\/\*.*\*\/// |
---|
28 | t dumby |
---|
29 | :dumby |
---|
30 | s/;//; |
---|
31 | t next |
---|
32 | N; |
---|
33 | s/ *\/\*.*\*\/ *// |
---|
34 | t dumby |
---|
35 | b dumby |
---|
36 | :next |
---|
37 | s/ / /g |
---|
38 | s/ / / |
---|
39 | s/ *\n *//g |
---|
40 | s/|/+/g |
---|
41 | P; |
---|
42 | D; |
---|
43 | } |
---|
44 | P; |
---|
45 | D; |
---|
46 | } |
---|
47 | D; |
---|
Note: See
TracBrowser
for help on using the repository browser.