Changeset 4037847 in mainline for arch/ppc32/src/mm/memory_init.c


Ignore:
Timestamp:
2006-03-24T19:14:12Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c715e9b
Parents:
5201199
Message:

kernel boot API change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ppc32/src/mm/memory_init.c

    r5201199 r4037847  
    2727 */
    2828
    29 #include <arch/boot/memmap.h>
     29#include <arch/boot/boot.h>
    3030#include <arch/mm/memory_init.h>
    3131#include <typedefs.h>
    3232#include <print.h>
    3333
    34 memmap_t memmap;
    35 
    3634
    3735size_t get_memory_size(void)
    3836{
    39         return memmap.total;
     37        return bootinfo.memmap.total;
    4038}
    4139
     
    4543        count_t i;
    4644       
    47         for (i = 0; i < memmap.count; i++)
    48                 printf("base: %L size: %L\n", memmap.zones[i].start, memmap.zones[i].size);
     45        for (i = 0; i < bootinfo.memmap.count; i++)
     46                printf("base: %L size: %L\n", bootinfo.memmap.zones[i].start, bootinfo.memmap.zones[i].size);
    4947}
Note: See TracChangeset for help on using the changeset viewer.