Changeset ef67bab in mainline for arch/mips32/src


Ignore:
Timestamp:
2006-02-01T00:02:16Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
071a8ae6
Parents:
fc1e4f6
Message:

Memory management work.
Remove the last (i.e. 'root') argument from page_mapping_insert() and page_mapping_find().
Page table address is now extracted from the first (i.e. 'as') argument.
Add a lot of infrastructure to make the above possible.
sparc64 is now broken, most likely because of insufficient identity mapping of physical memory.

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

Legend:

Unmodified
Added
Removed
  • arch/mips32/src/mm/as.c

    rfc1e4f6 ref67bab  
    2828
    2929#include <arch/mm/as.h>
     30#include <genarch/mm/as_pt.h>
    3031#include <arch/mm/tlb.h>
    3132#include <mm/tlb.h>
     
    3334#include <arch/cp0.h>
    3435#include <arch.h>
     36
     37/** Architecture dependent address space init. */
     38void as_arch_init(void)
     39{
     40        as_operations = &as_pt_operations;
     41}
    3542
    3643/** Install address space.
     
    5764        interrupts_restore(ipl);
    5865}
     66
  • arch/mips32/src/mm/tlb.c

    rfc1e4f6 ref67bab  
    340340         * Check if the mapping exists in page tables.
    341341         */     
    342         pte = page_mapping_find(AS, badvaddr, 0);
     342        pte = page_mapping_find(AS, badvaddr);
    343343        if (pte && pte->lo.v) {
    344344                /*
     
    357357                         * The mapping ought to be in place.
    358358                         */
    359                         pte = page_mapping_find(AS, badvaddr, 0);
     359                        pte = page_mapping_find(AS, badvaddr);
    360360                        ASSERT(pte && pte->lo.v);
    361361                        return pte;
Note: See TracChangeset for help on using the changeset viewer.