| 2 |
theseven |
1 |
//
|
|
|
2 |
//
|
|
|
3 |
// Copyright 2010 TheSeven
|
|
|
4 |
//
|
|
|
5 |
//
|
| 677 |
theseven |
6 |
// This file is part of emCORE.
|
| 2 |
theseven |
7 |
//
|
| 677 |
theseven |
8 |
// emCORE is free software: you can redistribute it and/or
|
| 2 |
theseven |
9 |
// modify it under the terms of the GNU General Public License as
|
|
|
10 |
// published by the Free Software Foundation, either version 2 of the
|
|
|
11 |
// License, or (at your option) any later version.
|
|
|
12 |
//
|
| 677 |
theseven |
13 |
// emCORE is distributed in the hope that it will be useful,
|
| 2 |
theseven |
14 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
15 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
16 |
// See the GNU General Public License for more details.
|
|
|
17 |
//
|
|
|
18 |
// You should have received a copy of the GNU General Public License along
|
| 677 |
theseven |
19 |
// with emCORE. If not, see <http://www.gnu.org/licenses/>.
|
| 2 |
theseven |
20 |
//
|
|
|
21 |
//
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
#ifndef __GLOBAL_H__
|
|
|
25 |
#define __GLOBAL_H__
|
|
|
26 |
|
|
|
27 |
|
| 15 |
theseven |
28 |
#define ICODE_ATTR __attribute__((section(".icode")))
|
|
|
29 |
#define ICONST_ATTR __attribute__((section(".irodata")))
|
|
|
30 |
#define IDATA_ATTR __attribute__((section(".idata")))
|
|
|
31 |
#define IBSS_ATTR __attribute__((section(".ibss")))
|
| 98 |
theseven |
32 |
#define INITHEAD_ATTR __attribute__((section(".inithead")))
|
| 15 |
theseven |
33 |
#define INITCODE_ATTR __attribute__((section(".initcode")))
|
|
|
34 |
#define INITCONST_ATTR __attribute__((section(".initrodata")))
|
|
|
35 |
#define INITDATA_ATTR __attribute__((section(".initdata")))
|
|
|
36 |
#define INITBSS_ATTR __attribute__((section(".initbss")))
|
| 89 |
theseven |
37 |
#define INITSTACK_ATTR __attribute__((section(".initstack")))
|
| 15 |
theseven |
38 |
#define STACK_ATTR __attribute__((section(".stack")))
|
| 2 |
theseven |
39 |
|
| 71 |
theseven |
40 |
#ifndef ASM_FILE
|
| 111 |
theseven |
41 |
#include <stdarg.h>
|
| 112 |
theseven |
42 |
#include "libc/include/inttypes.h"
|
|
|
43 |
#include "libc/include/string.h"
|
|
|
44 |
#include "libc/include/sys/types.h"
|
| 71 |
theseven |
45 |
typedef int bool;
|
| 202 |
theseven |
46 |
#endif
|
| 71 |
theseven |
47 |
#define true 1
|
|
|
48 |
#define false 0
|
|
|
49 |
|
| 202 |
theseven |
50 |
|
| 111 |
theseven |
51 |
#ifndef IN_APPLICATION_CODE
|
| 71 |
theseven |
52 |
#include "build/version.h"
|
| 54 |
theseven |
53 |
#include "configmagic.h"
|
| 111 |
theseven |
54 |
#endif
|
| 44 |
theseven |
55 |
#include "debug.h"
|
| 2 |
theseven |
56 |
|
| 15 |
theseven |
57 |
|
| 14 |
theseven |
58 |
#endif
|