The Pedigree Project  0.1
arm_926e/VirtualAddressSpace.cc
1 /*
2  * Copyright (c) 2008-2014, Pedigree Developers
3  *
4  * Please see the CONTRIB file in the root of the source tree for a full
5  * list of contributors.
6  *
7  * Permission to use, copy, modify, and distribute this software for any
8  * purpose with or without fee is hereby granted, provided that the above
9  * copyright notice and this permission notice appear in all copies.
10  *
11  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 #include "VirtualAddressSpace.h"
21 #include "pedigree/kernel/Log.h"
22 #include "pedigree/kernel/panic.h"
23 #include "pedigree/kernel/processor/PhysicalMemoryManager.h"
24 #include "pedigree/kernel/processor/Processor.h"
25 #include "pedigree/kernel/processor/types.h"
26 #include "pedigree/kernel/utilities/utility.h"
27 
29 
31 {
33 }
34 
36 {
37  // TODO
38  // return new X86VirtualAddressSpace();
39  return 0;
40 }
41 
43  : VirtualAddressSpace(reinterpret_cast<void *>(0))
44 {
45 }
46 
48 {
49 }
50 
52 {
53  return true;
54 }
55 
57 {
58  return true;
59 }
60 
61 bool Arm926EVirtualAddressSpace::isMapped(void *virtualAddress)
62 {
63  return true;
64 }
65 
67  physical_uintptr_t physicalAddress, void *virtualAddress, size_t flags)
68 {
69  return false;
70 }
71 
73  void *virtualAddress, physical_uintptr_t &physicalAddress, size_t &flags)
74 {
75  physicalAddress = 0;
76  flags = 0;
77 }
78 
79 void Arm926EVirtualAddressSpace::setFlags(void *virtualAddress, size_t newFlags)
80 {
81 }
82 
83 void Arm926EVirtualAddressSpace::unmap(void *virtualAddress)
84 {
85 }
86 
88 {
89  // TODO
90  return 0;
91 }
92 void Arm926EVirtualAddressSpace::freeStack(void *pStack)
93 {
94  // TODO
95 }
virtual bool isAddressValid(void *virtualAddress)
static EXPORTED_PUBLIC VirtualAddressSpace & getKernelAddressSpace()
static VirtualAddressSpace * create()
uintptr_t physicalAddress(physical_uintptr_t address) PURE
Definition: utils.h:38
virtual bool isMapped(void *virtualAddress)
virtual void setFlags(void *virtualAddress, size_t newFlags)
virtual void getMapping(void *virtualAddress, physical_uintptr_t &physicalAddress, size_t &flags)
virtual void unmap(void *virtualAddress)
virtual bool map(physical_uintptr_t physicalAddress, void *virtualAddress, size_t flags)