/kernel/trunk/arch/ppc32/src/mm/memory_init.c |
---|
26,10 → 26,24 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
#include <arch/boot/memmap.h> |
#include <arch/mm/memory_init.h> |
#include <typedefs.h> |
#include <print.h> |
memmap_t memmap; |
size_t get_memory_size(void) |
{ |
return 0; |
return memmap.total; |
} |
void memory_print_map(void) |
{ |
count_t i; |
for (i = 0; i < memmap.count; i++) |
printf("base: %L size: %L\n", memmap.zones[i].start, memmap.zones[i].size); |
} |