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


Ignore:
Timestamp:
2009-02-16T18:50:48Z (16 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
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/src/drivers/msim.c

    r17f168e rae318d3  
    4242#include <ddi/ddi.h>
    4343
    44 static parea_t msim_parea;
    4544static chardev_t console;
    4645static irq_t msim_irq;
     
    157156        sysinfo_set_item_val("kbd.address.virtual", NULL, MSIM_KBD_ADDRESS);
    158157       
    159         msim_parea.pbase = KA2PA(MSIM_VIDEORAM);
    160         msim_parea.vbase = MSIM_VIDEORAM;
    161         msim_parea.frames = 1;
    162         msim_parea.cacheable = false;
    163         ddi_parea_register(&msim_parea);
    164        
    165158        sysinfo_set_item_val("fb", NULL, true);
    166159        sysinfo_set_item_val("fb.kind", NULL, 3);
  • 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.