/* * Copyright 2007, François Revol, revol@free.fr. * Distributed under the terms of the MIT License. * * Copyright 2003-2005, Axel Dörfler, axeld@pinc-software.de. * Distributed under the terms of the MIT License. * * Copyright 2001, Travis Geiselbrecht. All rights reserved. * Distributed under the terms of the NewOS License. */ #include #include #include #include #include #include //#include //#define TRACE_ARCH_VM #ifdef TRACE_ARCH_VM # define TRACE(x) dprintf x #else # define TRACE(x) ; #endif #warning M68K: WRITEME status_t arch_vm_init(kernel_args *args) { return B_OK; } status_t arch_vm_init2(kernel_args *args) { // int bats[8]; // int i; /**/ #warning M68K: disable TT0 and TT1, set up pmmu return B_OK; } status_t arch_vm_init_post_area(kernel_args *args) { return B_OK; } status_t arch_vm_init_end(kernel_args *args) { #warning M68K: unset TT0 now return B_OK; } status_t arch_vm_init_post_modules(kernel_args *args) { return B_OK; } void arch_vm_aspace_swap(struct vm_address_space *from, struct vm_address_space *to) { #warning ARM:WRITEME // m68k_set_pgdir(m68k_translation_map_get_pgdir(&to->translation_map)); } bool arch_vm_supports_protection(uint32 protection) { return true; } void arch_vm_unset_memory_type(vm_area *area) { } status_t arch_vm_set_memory_type(vm_area *area, addr_t physicalBase, uint32 type) { if (type == 0) return B_OK; return B_ERROR; }