]> rtime.felk.cvut.cz Git - arc.git/blob - include/MemMap.h
Merge branch 'mikulka' of git@rtime.felk.cvut.cz:arc into mikulka
[arc.git] / include / MemMap.h
1 /* -------------------------------- Arctic Core ------------------------------\r
2  * Arctic Core - the open source AUTOSAR platform http://arccore.com\r
3  *\r
4  * Copyright (C) 2009  ArcCore AB <contact@arccore.com>\r
5  *\r
6  * This source code is free software; you can redistribute it and/or modify it\r
7  * under the terms of the GNU General Public License version 2 as published by the\r
8  * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.\r
9  *\r
10  * This program is distributed in the hope that it will be useful, but\r
11  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r
12  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\r
13  * for more details.\r
14  * -------------------------------- Arctic Core ------------------------------*/\r
15 \r
16 /* REFERENCE\r
17  *   MemoryMapping.pdf\r
18  *\r
19  * DESCRIPTION\r
20  *\r
21  *\r
22  *
23  */\r
24 \r
25 #if defined(__GNUC__) || defined(__DCC__)\r
26 \r
27    #define SECTION_RAMLOG       __attribute__ ((section (".ramlog")))\r
28 \r
29 \r
30 #elif defined(__CWCC__)\r
31 \r
32 /* The compiler manual states:\r
33  *   The section name specified in the\r
34  *   __declspec(section <section_name>) statement must be the\r
35  *   name of an initialized data section.  It is an error to use the uninitialized\r
36  *   data section name.\r
37  *\r
38  * NOTE!! The initialized data section name is __declspec() does not mean that\r
39  *        it will end up in that section, if its BSS data it will end-up in\r
40  *        ramlog_bss instead.\r
41  *\r
42  * NOTE!! Naming the initialized and uninitialized data section to the same\r
43  *        name will generate strange linker warnings (sometimes)\r
44  */\r
45 \r
46    #pragma section RW ".ramlog_data" ".ramlog_bss"\r
47    #define SECTION_RAMLOG       __declspec(section ".ramlog_data")\r
48 \r
49 \r
50 #endif\r
51 \r