1 /* 2 * Copyright 2007, François Revol, revol@free.fr. 3 * Distributed under the terms of the MIT License. 4 * 5 * Copyright 2003-2005, Axel Dörfler, axeld@pinc-software.de. 6 * Distributed under the terms of the MIT License. 7 * 8 * Copyright 2001, Travis Geiselbrecht. All rights reserved. 9 * Distributed under the terms of the NewOS License. 10 */ 11 12 13 #include <KernelExport.h> 14 15 #include <kernel.h> 16 #include <boot/kernel_args.h> 17 18 #include <vm/vm.h> 19 #include <vm/vm_types.h> 20 #include <arch/vm.h> 21 //#include <arch_mmu.h> 22 23 24 //#define TRACE_ARCH_VM 25 #ifdef TRACE_ARCH_VM 26 # define TRACE(x) dprintf x 27 #else 28 # define TRACE(x) ; 29 #endif 30 31 #warning ARM: WRITEME 32 33 34 status_t 35 arch_vm_init(kernel_args *args) 36 { 37 return B_OK; 38 } 39 40 41 status_t 42 arch_vm_init2(kernel_args *args) 43 { 44 // int bats[8]; 45 // int i; 46 47 /**/ 48 #warning ARM: WRITEME 49 50 return B_OK; 51 } 52 53 54 status_t 55 arch_vm_init_post_area(kernel_args *args) 56 { 57 return B_OK; 58 } 59 60 61 status_t 62 arch_vm_init_end(kernel_args *args) 63 { 64 #warning ARM: WRITEME 65 return B_OK; 66 } 67 68 69 status_t 70 arch_vm_init_post_modules(kernel_args *args) 71 { 72 return B_OK; 73 } 74 75 76 void 77 arch_vm_aspace_swap(struct VMAddressSpace *from, struct VMAddressSpace *to) 78 { 79 #warning ARM:WRITEME 80 // m68k_set_pgdir(m68k_translation_map_get_pgdir(&to->TranslationMap())); 81 } 82 83 84 bool 85 arch_vm_supports_protection(uint32 protection) 86 { 87 return true; 88 } 89 90 91 void 92 arch_vm_unset_memory_type(VMArea *area) 93 { 94 } 95 96 97 status_t 98 arch_vm_set_memory_type(VMArea *area, phys_addr_t physicalBase, uint32 type) 99 { 100 if (type == 0) 101 return B_OK; 102 103 return B_ERROR; 104 } 105