Rev 1787 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1787 | Rev 1790 | ||
---|---|---|---|
Line 31... | Line 31... | ||
31 | */ |
31 | */ |
32 | /** @file |
32 | /** @file |
33 | */ |
33 | */ |
34 | 34 | ||
35 | #include <arch/mm/memory_init.h> |
35 | #include <arch/mm/memory_init.h> |
36 | #include <genarch/ofw/memory_init.h> |
36 | #include <arch/boot/boot.h> |
37 | #include <typedefs.h> |
37 | #include <typedefs.h> |
38 | 38 | ||
- | 39 | /** Return total size of available memory in bytes. |
|
- | 40 | * |
|
- | 41 | * @return Size of available memory in bytes. |
|
- | 42 | */ |
|
39 | size_t get_memory_size(void) |
43 | size_t get_memory_size(void) |
40 | { |
44 | { |
41 | return ofw_get_memory_size(); |
45 | return bootinfo.memmap.total; |
42 | } |
46 | } |
43 | 47 | ||
44 | /** @} |
48 | /** @} |
45 | */ |
49 | */ |
46 | - |