2 * Copyright 2007, Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 * François Revol <revol@free.fr>
11 #include <arch_030_mmu.h>
13 #define ARCH_M68K_MMU_TYPE 68030
15 #include "arch_vm_translation_map_impl.cpp"
20 long_page_directory_entry entry
;
21 *(uint64
*)&entry
= DFL_PAGEENT_VAL
;
23 entry
.addr
= TA_TO_PREA(((addr_t
)rt
));
26 "pmove (%0),%%srp\n" \
27 "pmove (%0),%%crp\n" \
28 : : "a"((uint64
*)&entry
));
33 struct m68k_vm_ops m68030_vm_ops
= {
34 _m68k_translation_map_get_pgdir
,
35 m68k_vm_translation_map_init_map
,
36 m68k_vm_translation_map_init_kernel_map_post_sem
,
37 m68k_vm_translation_map_init
,
38 m68k_vm_translation_map_init_post_area
,
39 m68k_vm_translation_map_init_post_sem
,
40 m68k_vm_translation_map_early_map
,
41 /*m68k_vm_translation_map_*/early_query
,
44 m68k_map_address_range
,
45 m68k_unmap_address_range
,
46 m68k_remap_address_range
48 m68k_vm_translation_map_is_kernel_page_accessible