소스 검색

Memory: Move PAGE_MASK and PAGE_BITS to memory.h

Yuri Kunde Schlesner 11 년 전
부모
커밋
ccab02c723
2개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 0
      src/core/memory.h
  2. 0 3
      src/core/memory_setup.h

+ 2 - 0
src/core/memory.h

@@ -15,6 +15,8 @@ namespace Memory {
  * be mapped.
  */
 const u32 PAGE_SIZE = 0x1000;
+const u32 PAGE_MASK = PAGE_SIZE - 1;
+const int PAGE_BITS = 12;
 
 /// Physical memory regions as seen from the ARM11
 enum : PAddr {

+ 0 - 3
src/core/memory_setup.h

@@ -10,9 +10,6 @@
 
 namespace Memory {
 
-const u32 PAGE_MASK = PAGE_SIZE - 1;
-const int PAGE_BITS = 12;
-
 void InitMemoryMap();
 
 /**