Changeset 1084a784 in mainline for src/mm/vm.c


Ignore:
Timestamp:
2005-10-04T22:09:41Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
342de62
Parents:
8e3f47b3
Message:

mips32 memory management work.
TLB Refill Exception implemented (passed basic testing).
Remove bit g from struct entry_hi.
Add generic find_mapping().
Add asid to vm_t type, define asid_t to hide architecture specific differences.
Implement ASID allocation for mips32, dummy for other architectures.
Add THE→vm (a.k.a. VM).
Add vm_install_arch().
Move pte_t definition to arch/types.h on each architecture.
Fix PTL manipulating functions on mips32 to shift pfn by 12 instead of by 14.
Fix tlb_init_arch() to initialize all entries.

Other.
Remove unnecessary header files from arch.h
Add missing headers here and there.
Remove two unnecessary ld flags from mips32 makefile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mm/vm.c

    r8e3f47b3 r1084a784  
    3333#include <mm/heap.h>
    3434#include <arch/mm/page.h>
     35#include <arch/mm/asid.h>
     36#include <arch/mm/vm.h>
    3537#include <arch/types.h>
    3638#include <typedefs.h>
     
    5658                spinlock_initialize(&m->lock);
    5759                list_initialize(&m->vm_area_head);
     60
     61                m->asid = asid_get();
    5862
    5963                /*
     
    200204
    201205        cpu_priority_restore(pri);
    202 }
     206
     207        vm_install_arch(m);
     208       
     209        VM = m;
     210}
Note: See TracChangeset for help on using the changeset viewer.