86 |
|
class SheepMem { |
87 |
|
static uint32 align(uint32 size); |
88 |
|
protected: |
89 |
+ |
static uint32 page_size; |
90 |
|
static uintptr zero_page; |
91 |
|
static uintptr base; |
92 |
|
static uintptr top; |
94 |
|
public: |
95 |
|
static bool Init(void); |
96 |
|
static void Exit(void); |
97 |
+ |
static uint32 PageSize(); |
98 |
|
static uintptr ZeroPage(); |
99 |
|
static uintptr Reserve(uint32 size); |
100 |
|
static void Release(uint32 size); |
107 |
|
return (size + 3) & -4; |
108 |
|
} |
109 |
|
|
110 |
+ |
inline uint32 SheepMem::PageSize() |
111 |
+ |
{ |
112 |
+ |
return page_size; |
113 |
+ |
} |
114 |
+ |
|
115 |
|
inline uintptr SheepMem::ZeroPage() |
116 |
|
{ |
117 |
|
return zero_page; |