1/*
2 * Copyright 2009 Jonas Sundström, jonas@kirilla.com
3 * Copyright 2007 François Revol, revol@free.fr
4 * Distributed under the terms of the MIT License.
5 *
6 * Copyright 2001, Travis Geiselbrecht. All rights reserved.
7 * Distributed under the terms of the NewOS License.
8 */
9
10
11#include <KernelExport.h>
12#include <kernel.h>
13#include <vm/vm.h>
14#include <vm/vm_priv.h>
15#include <vm/VMAddressSpace.h>
16#include <int.h>
17#include <boot/kernel_args.h>
18#include <arch/vm_translation_map.h>
19#include <arch/cpu.h>
20#include <stdlib.h>
21
22#include "generic_vm_physical_page_mapper.h"
23
24
25//  #pragma mark -
26//  VM API
27
28
29status_t
30arch_vm_translation_map_init_map(vm_translation_map* map, bool kernel)
31{
32#warning IMPLEMENT arch_vm_translation_map_init_map
33	return NULL;
34}
35
36
37status_t
38arch_vm_translation_map_init_kernel_map_post_sem(vm_translation_map* map)
39{
40#warning IMPLEMENT arch_vm_translation_map_init_kernel_map_post_sem
41	return NULL;
42}
43
44
45status_t
46arch_vm_translation_map_init(kernel_args* args)
47{
48#warning IMPLEMENT arch_vm_translation_map_init
49	return NULL;
50}
51
52
53status_t
54arch_vm_translation_map_init_post_area(kernel_args* args)
55{
56#warning IMPLEMENT arch_vm_translation_map_init_post_area
57	return NULL;
58}
59
60
61status_t
62arch_vm_translation_map_init_post_sem(kernel_args* args)
63{
64#warning IMPLEMENT arch_vm_translation_map_init_post_sem
65	return NULL;
66}
67
68
69status_t
70arch_vm_translation_map_early_map(kernel_args* ka, addr_t virtualAddress,
71	phys_addr_t physicalAddress, uint8 attributes,
72	phys_addr_t (*get_free_page)(kernel_args* ))
73{
74#warning IMPLEMENT arch_vm_translation_map_early_map
75	return NULL;
76}
77
78
79status_t
80arch_vm_translation_map_early_query(addr_t va, phys_addr_t* out_physical)
81{
82#warning IMPLEMENT arch_vm_translation_map_early_query
83	return NULL;
84}
85
86
87bool
88arch_vm_translation_map_is_kernel_page_accessible(addr_t virtualAddress,
89	uint32 protection)
90{
91#warning IMPLEMENT arch_vm_translation_map_is_kernel_page_accessible
92	return TRUE;
93}
94
95
96// #pragma mark -
97
98
99status_t
100mipsel_map_address_range(addr_t virtualAddress, phys_addr_t physicalAddress,
101	size_t size)
102{
103#warning IMPLEMENT mipsel_map_address_range
104	return B_OK;
105}
106
107
108void
109mipsel_unmap_address_range(addr_t virtualAddress, size_t size)
110{
111#warning IMPLEMENT mipsel_unmap_address_range
112}
113
114
115status_t
116mipsel_remap_address_range(addr_t *_virtualAddress, size_t size, bool unmap)
117{
118#warning IMPLEMENT mipsel_remap_address_range
119	return B_OK;
120}
121
122