Subversion Repositories freemyipod

Rev

Rev 14 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14 Rev 15
Line 29... Line 29...
29
#include <stddef.h>
29
#include <stddef.h>
30
#endif
30
#endif
31
 
31
 
32
#define VERSION "0.0.1pre"
32
#define VERSION "0.0.1pre"
33
 
33
 
34
#define ICODE_ATTR __attribute__ ((section(".icode")))
34
#define ICODE_ATTR __attribute__((section(".icode")))
35
#define ICONST_ATTR __attribute__ ((section(".irodata")))
35
#define ICONST_ATTR __attribute__((section(".irodata")))
36
#define IDATA_ATTR __attribute__ ((section(".idata")))
36
#define IDATA_ATTR __attribute__((section(".idata")))
37
#define IBSS_ATTR __attribute__ ((section(".ibss")))
37
#define IBSS_ATTR __attribute__((section(".ibss")))
38
#define INITCODE_ATTR __attribute__ ((section(".initcode")))
38
#define INITCODE_ATTR __attribute__((section(".initcode")))
39
#define INITCONST_ATTR __attribute__ ((section(".initrodata")))
39
#define INITCONST_ATTR __attribute__((section(".initrodata")))
40
#define INITDATA_ATTR __attribute__ ((section(".initdata")))
40
#define INITDATA_ATTR __attribute__((section(".initdata")))
41
#define INITBSS_ATTR __attribute__ ((section(".initbss")))
41
#define INITBSS_ATTR __attribute__((section(".initbss")))
-
 
42
#define STACK_ATTR __attribute__((section(".stack")))
42
 
43
 
43
#define bool int
44
#define bool int
44
#define true 1
45
#define true 1
45
#define false 0
46
#define false 0
46
 
47
 
-
 
48
#include "config.h"
47
#include "target.h"
49
#include "target.h"
48
 
50
 
49
#ifndef MAX_THREADS
51
#ifndef MAX_THREADS
50
#define MAX_THREADS 32
52
#define MAX_THREADS 32
51
#endif
53
#endif
52
 
54
 
-
 
55
#define CACHELINE_SIZE (1<<CACHELINE_BITS)
-
 
56
#define CACHEALIGN_ATTR __attribute__((aligned(CACHELINE_SIZE)))
-
 
57
 
53
#endif
58
#endif