Mercurial > flash_v2
annotate packages/hal/arm/aeb/current/misc/gdb_module.c @ 64:c38311975d4f ecos-sw-2000-01-28
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
| author | jlarmour |
|---|---|
| date | Fri, 28 Jan 2000 04:59:39 +0000 |
| parents | d3fbcdfa1b2f |
| children | bf00f99aec69 |
| rev | line source |
|---|---|
| 2 | 1 //========================================================================== |
| 2 // | |
| 3 // gdb_module.c | |
| 4 // | |
| 5 // ARM AEB-1 eval board GDB stubs (module wrapper) | |
| 6 // | |
| 7 //========================================================================== | |
| 8 //####COPYRIGHTBEGIN#### | |
|
64
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
10
diff
changeset
|
9 // |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
10
diff
changeset
|
10 // ------------------------------------------- |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
10
diff
changeset
|
11 // The contents of this file are subject to the Red Hat eCos Public License |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
10
diff
changeset
|
12 // Version 1.0 (the "License"); you may not use this file except in |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
10
diff
changeset
|
13 // compliance with the License. You may obtain a copy of the License at |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
10
diff
changeset
|
14 // http://sourceware.cygnus.com/ecos |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
10
diff
changeset
|
15 // |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
10
diff
changeset
|
16 // Software distributed under the License is distributed on an |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
10
diff
changeset
|
17 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
10
diff
changeset
|
18 // License for the specific language governing rights and limitations under |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
10
diff
changeset
|
19 // the License. |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
10
diff
changeset
|
20 // |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
10
diff
changeset
|
21 // The Original Code is eCos - Embedded Configurable Operating System, |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
10
diff
changeset
|
22 // released September 30, 1998. |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
10
diff
changeset
|
23 // |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
10
diff
changeset
|
24 // The Initial Developer of the Original Code is Red Hat. |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
10
diff
changeset
|
25 // Portions created by Red Hat are |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
10
diff
changeset
|
26 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc. |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
10
diff
changeset
|
27 // All Rights Reserved. |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
10
diff
changeset
|
28 // ------------------------------------------- |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
10
diff
changeset
|
29 // |
| 2 | 30 //####COPYRIGHTEND#### |
| 31 //========================================================================== | |
| 32 //#####DESCRIPTIONBEGIN#### | |
| 33 // | |
| 34 // Author(s): gthomas | |
| 35 // Contributors: gthomas | |
| 36 // Date: 1998-12-18 | |
| 37 // Description: AEB-1 FLASH module for eCos GDB stubs | |
| 38 //####DESCRIPTIONEND#### | |
| 39 | |
| 40 // | |
| 41 // This is the module 'wrapper' for the GDB stubs | |
| 42 // | |
| 43 | |
| 44 #include <pkgconf/hal.h> | |
| 45 #include <cyg/infra/cyg_type.h> | |
| 46 #include <cyg/hal/hal_stub.h> | |
| 47 | |
| 48 // ARM AEB-1 module stuff | |
| 49 | |
| 50 #ifdef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS | |
| 51 | |
| 52 #ifndef CHECKSUM | |
| 53 #define CHECKSUM 0x0 | |
| 54 #endif | |
| 55 | |
|
10
d3fbcdfa1b2f
Merge from eCos master repository on 1999-05-29-00:13:11-BST
jlarmour
parents:
2
diff
changeset
|
56 extern char __exception_handlers, __rom_data_end; |
| 2 | 57 |
| 58 const char __title[] = "eCos"; | |
|
10
d3fbcdfa1b2f
Merge from eCos master repository on 1999-05-29-00:13:11-BST
jlarmour
parents:
2
diff
changeset
|
59 const char __help[] = "eCos 1.2.2 (25 May 1999) GDB stubs"; |
| 2 | 60 |
| 61 struct ModuleHeader { | |
| 62 cyg_uint32 magic; | |
| 63 cyg_uint16 flags; | |
| 64 cyg_uint8 major; | |
| 65 cyg_uint8 minor; | |
| 66 cyg_uint32 checksum; | |
| 67 cyg_uint32 ro_base; | |
| 68 cyg_uint32 ro_limit; | |
| 69 cyg_uint32 rw_base; | |
| 70 cyg_uint32 zi_base; | |
| 71 cyg_uint32 zi_limit; | |
| 72 cyg_uint32 self; | |
| 73 cyg_uint32 start; | |
| 74 cyg_uint32 init; | |
| 75 cyg_uint32 final; | |
| 76 cyg_uint32 service; | |
| 77 cyg_uint32 title; | |
| 78 cyg_uint32 help; | |
| 79 cyg_uint32 cmdtbl; | |
| 80 cyg_uint32 swi_base; | |
| 81 cyg_uint32 swi_handler; | |
| 82 }; | |
| 83 | |
| 84 const static struct ModuleHeader __hdr = { | |
| 85 0x4D484944, // MHID | |
| 86 2, // flags = auto start | |
| 87 1, // major | |
| 88 0, // minor | |
| 89 CHECKSUM, // checksum | |
|
10
d3fbcdfa1b2f
Merge from eCos master repository on 1999-05-29-00:13:11-BST
jlarmour
parents:
2
diff
changeset
|
90 (cyg_uint32) &__exception_handlers, // start of module (read-only) image |
|
d3fbcdfa1b2f
Merge from eCos master repository on 1999-05-29-00:13:11-BST
jlarmour
parents:
2
diff
changeset
|
91 (cyg_uint32) &__rom_data_end, // end of image |
| 2 | 92 0, // r/w base - unused |
| 93 0, // bss base - unused | |
| 94 0, // bss limit - unused | |
| 95 (cyg_uint32) &__hdr, // self (for module identification) | |
|
10
d3fbcdfa1b2f
Merge from eCos master repository on 1999-05-29-00:13:11-BST
jlarmour
parents:
2
diff
changeset
|
96 (cyg_uint32) &__exception_handlers, // startup |
| 2 | 97 0, // init - unused |
| 98 0, // final - unused | |
| 99 0, // service - unused | |
| 100 (cyg_uint32) &__title, // title | |
| 101 (cyg_uint32) &__help, // help string | |
| 102 0, // command table - unused | |
| 103 0, // SWI table - unused | |
| 104 0 // SWI handler - unused | |
| 105 }; | |
| 106 | |
| 107 static void | |
| 108 __dummy(void *p) | |
| 109 { | |
| 110 } | |
| 111 | |
| 112 void cyg_start (void) | |
| 113 { | |
| 114 __dummy((void *)&__hdr); // Just to keep it in! | |
| 115 for(;;) breakpoint(); | |
| 116 } | |
| 117 #else | |
| 118 | |
| 119 #include <cyg/infra/testcase.h> | |
| 120 | |
| 121 void cyg_start (void) | |
| 122 { | |
| 123 CYG_TEST_INIT(); | |
| 124 CYG_TEST_PASS_FINISH("N/A: Stand-alone GDB stubs only"); | |
| 125 } | |
| 126 #endif | |
| 127 | |
| 128 | |
| 129 |
