Rev 2238 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2238 | Rev 2263 | ||
---|---|---|---|
Line 32... | Line 32... | ||
32 | /** @file |
32 | /** @file |
33 | */ |
33 | */ |
34 | 34 | ||
35 | #include <arch/mm/memory_init.h> |
35 | #include <arch/mm/memory_init.h> |
36 | #include <arch/mm/page.h> |
36 | #include <arch/mm/page.h> |
37 | #include "../aux_print/printf.h" |
37 | #include <arch/drivers/gxemul.h> |
38 | 38 | ||
39 | #define GXEMUL_MP_ADDRESS 0x11000000 |
- | |
40 | #define GXEMUL_MP_MEMSIZE_OFFSET 0x0090 |
- | |
41 | size_t get_memory_size(void) |
39 | size_t get_memory_size(void) |
42 | { |
40 | { |
43 | //TODO preprocessor don't work |
- | |
44 | #if MACHINE == gxemul |
41 | #if MACHINE == MACHINE_GXEMUL_TESTARM |
45 | return *((int*)(GXEMUL_MP_ADDRESS+GXEMUL_MP_MEMSIZE_OFFSET)); |
42 | return gxemul_get_memory_size(); |
46 | #endif |
43 | #endif |
47 | } |
44 | } |
48 | 45 | ||
49 | 46 | ||
50 | /** @} |
47 | /** @} |