/kernel/trunk/arch/mips32/include/mm/as.h |
---|
41,4 → 41,6 |
#define USTACK_ADDRESS_ARCH (0x80000000-PAGE_SIZE) |
#define UDATA_ADDRESS_ARCH 0x01001000 |
extern void as_arch_init(void); |
#endif |
/kernel/trunk/arch/mips32/src/mm/tlb.c |
---|
339,7 → 339,7 |
/* |
* Check if the mapping exists in page tables. |
*/ |
pte = page_mapping_find(AS, badvaddr, 0); |
pte = page_mapping_find(AS, badvaddr); |
if (pte && pte->lo.v) { |
/* |
* Mapping found in page tables. |
356,7 → 356,7 |
* The higher-level page fault handler succeeded, |
* The mapping ought to be in place. |
*/ |
pte = page_mapping_find(AS, badvaddr, 0); |
pte = page_mapping_find(AS, badvaddr); |
ASSERT(pte && pte->lo.v); |
return pte; |
} |
/kernel/trunk/arch/mips32/src/mm/as.c |
---|
27,6 → 27,7 |
*/ |
#include <arch/mm/as.h> |
#include <genarch/mm/as_pt.h> |
#include <arch/mm/tlb.h> |
#include <mm/tlb.h> |
#include <mm/as.h> |
33,6 → 34,12 |
#include <arch/cp0.h> |
#include <arch.h> |
/** Architecture dependent address space init. */ |
void as_arch_init(void) |
{ |
as_operations = &as_pt_operations; |
} |
/** Install address space. |
* |
* Install ASID. |
56,3 → 63,4 |
spinlock_unlock(&as->lock); |
interrupts_restore(ipl); |
} |