]> git.buserror.net Git - polintos/scott/priv.git/blob - kernel/mem/orbmm.cc
Switch to a simple X11-style license.
[polintos/scott/priv.git] / kernel / mem / orbmm.cc
1 // mem/orbmm.cc -- The ORB memory manager for the kernel address space
2 //
3 // This software is copyright (c) 2006 Scott Wood <scott@buserror.net>.
4 // 
5 // Permission is hereby granted, free of charge, to any person obtaining a copy of
6 // this software and associated documentation files (the "Software"), to deal with
7 // the Software without restriction, including without limitation the rights to
8 // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9 // of the Software, and to permit persons to whom the Software is furnished to do
10 // so, subject to the following condition:
11 // 
12 // The above copyright notice and this permission notice shall be
13 // included in all copies or substantial portions of the Software.
14 // 
15 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17 // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
18 // CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
21 // SOFTWARE.
22
23 #include <kern/mem.h>
24 #include <kern/paging.h>
25
26 namespace System {
27 namespace RunTime {
28         ORBMM orbmm_real;
29         ORBMM *orbmm = &orbmm_real;
30         
31         ORBMM::ORBMM()
32         {
33                 priv = NULL;
34         }
35
36         void *ORBMM::alloc(size_t size, AllocGroup *group)
37         {
38                 return reinterpret_cast<void *>(new u8[size]);
39         }
40         
41         void ORBMM::retain(Region region)
42         {
43                 // FIXME
44         }
45
46         void ORBMM::release(Region region)
47         {
48                 // FIXME
49         }
50 }
51 }