source: rtems/c/src/lib/libbsp/m68k/efi332/start/ram_init.sed @ f52111f

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 
11 {
2i\
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
16D;
17};
18/include in ram_init.S/,/end include in ram_init.S/ {
19/\*.*= *\(.*\)/ {
20s/*/    .org    /
21h;
22s/=.*//
23P;
24g;
25/(.*short int)/ s/.*short int)/ .short  /
26/(.*char)/ s/.*char)/   .byte   /
27s/\/\*.*\*\///
28t dumby
29:dumby
30s/;//;
31t next
32N;
33s/ *\/\*.*\*\/ *//
34t dumby
35b dumby
36:next
37s/      / /g
38s/ /    /
39s/ *\n *//g
40s/|/+/g
41P;
42D;
43}
44P;
45D;
46}
47D;
Note: See TracBrowser for help on using the repository browser.