Changeset ae318d3 in mainline for kernel/arch/mips32/src/mm


Ignore:
Timestamp:
2009-02-16T18:50:48Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
06da55b
Parents:
17f168e
Message:

overhaul pareas: use one single physical area for the physical address space not belonging to physical memory

Location:
kernel/arch/mips32/src/mm
Files:
2 edited

Legend:

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

    r17f168e rae318d3  
    6565static count_t phys_regions_count = 0;
    6666static phys_region_t phys_regions[MAX_REGIONS];
     67
     68uintptr_t end_frame = 0;
    6769
    6870
     
    237239        }
    238240       
    239         frame_add_region(start_frame, frame);
     241        end_frame = frame;
     242       
     243        frame_add_region(start_frame, end_frame);
    240244       
    241245        /* Blacklist interrupt vector frame */
  • kernel/arch/mips32/src/mm/page.c

    r17f168e rae318d3  
    2727 */
    2828
    29 /** @addtogroup mips32mm       
     29/** @addtogroup mips32mm
    3030 * @{
    3131 */
     
    3636#include <genarch/mm/page_pt.h>
    3737#include <mm/page.h>
     38#include <mm/frame.h>
    3839
    3940void page_arch_init(void)
     
    5152}
    5253
     54void hw_area(uintptr_t *physaddr, pfn_t *frames)
     55{
     56        *physaddr = end_frame;
     57        *frames = ADDR2PFN(0xffffffff - end_frame);
     58}
     59
    5360/** @}
    5461 */
Note: See TracChangeset for help on using the changeset viewer.