Changes in kernel/arch/sparc32/src/mm/as.c [b6b02c0:ef9a2a8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc32/src/mm/as.c
rb6b02c0 ref9a2a8 1 1 /* 2 * Copyright (c) 201 0 Martin Decky2 * Copyright (c) 2013 Jakub Klama 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup abs32lemm29 /** @addtogroup sparc32mm 30 30 * @{ 31 31 */ 32 32 33 33 #include <mm/as.h> 34 #include <arch/arch.h> 35 #include <arch/asm.h> 34 36 #include <arch/mm/as.h> 37 #include <arch/mm/page.h> 35 38 #include <genarch/mm/page_pt.h> 39 40 static ptd_t context_table[ASID_MAX_ARCH] __attribute__((aligned (1024))); 36 41 37 42 void as_arch_init(void) 38 43 { 39 44 as_operations = &as_pt_operations; 45 as_context_table = (uintptr_t)&context_table; 46 } 47 48 void as_install_arch(as_t *as) 49 { 50 printf("as_install_arch(asid=%d)\n", as->asid); 51 printf("genarch.page_table=%p\n", as->genarch.page_table); 52 53 context_table[as->asid].table_pointer = (uintptr_t)as->genarch.page_table >> 6; 54 context_table[as->asid].et = PTE_ET_DESCRIPTOR; 55 asi_u32_write(ASI_MMUREGS, 0x200, as->asid); 40 56 } 41 57
Note:
See TracChangeset
for help on using the changeset viewer.