]> git.buserror.net Git - polintos/scott/priv.git/blob - kernel/mem/orbmm.cc
49502d2f49e5603552629afcbbcdd1241e98683b
[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 // This software is provided 'as-is', without any express or implied warranty.
6 // In no event will the authors or contributors be held liable for any damages
7 // arising from the use of this software.
8 // 
9 // Permission is hereby granted to everyone, free of charge, to use, copy,
10 // modify, prepare derivative works of, publish, distribute, perform,
11 // sublicense, and/or sell copies of the Software, provided that the above
12 // copyright notice and disclaimer of warranty be included in all copies or
13 // substantial portions of this software.
14
15 #include <kern/mem.h>
16 #include <kern/paging.h>
17
18 namespace System {
19 namespace RunTime {
20         ORBMM orbmm_real;
21         ORBMM *orbmm = &orbmm_real;
22         
23         ORBMM::ORBMM()
24         {
25                 priv = NULL;
26         }
27
28         void *ORBMM::alloc(size_t size, AllocGroup *group)
29         {
30                 return reinterpret_cast<void *>(new u8[size]);
31         }
32         
33         void ORBMM::retain(Region region)
34         {
35                 // FIXME
36         }
37
38         void ORBMM::release(Region region)
39         {
40                 // FIXME
41         }
42 }
43 }