Changeset 00287cc in mainline for kernel/arch/arm32/src/mm/frame.c


Ignore:
Timestamp:
2009-03-12T23:26:32Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
648c9d9
Parents:
3b122e9
Message:

arm32: update for the new scheme of device drivers and keyboard/serial modules
streamline arm32 port (as GXemul is still the only machine supported), more cleanup is needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/src/mm/frame.c

    r3b122e9 r00287cc  
    3636#include <mm/frame.h>
    3737#include <arch/mm/frame.h>
    38 #include <arch/machine.h>
     38#include <arch/drivers/gxemul.h>
    3939#include <config.h>
    40 #include <arch/debug/print.h>
    4140
    4241/** Address of the last frame in the memory. */
     
    4645void frame_arch_init(void)
    4746{
    48         /* all memory as one zone */
    49         zone_create(0, ADDR2PFN(machine_get_memory_size()),
     47        last_frame = *((uintptr_t *) (GXEMUL_MP_ADDRESS + GXEMUL_MP_MEMSIZE_OFFSET));
     48       
     49        /* All memory as one zone */
     50        zone_create(0, ADDR2PFN(last_frame),
    5051            BOOT_PAGE_TABLE_START_FRAME + BOOT_PAGE_TABLE_SIZE_IN_FRAMES, 0);
    51         last_frame = machine_get_memory_size();
    5252       
    5353        /* blacklist boot page table */
     
    5959void boot_page_table_free(void)
    6060{
    61         int i;
    62         for (i = 0; i < BOOT_PAGE_TABLE_SIZE_IN_FRAMES; i++) {
     61        unsigned int i;
     62        for (i = 0; i < BOOT_PAGE_TABLE_SIZE_IN_FRAMES; i++)
    6363                frame_free(i * FRAME_SIZE + BOOT_PAGE_TABLE_ADDRESS);
    64         }
    6564}
    6665
Note: See TracChangeset for help on using the changeset viewer.