kDefaultPageFlags is now defined in mmu.h, so that it can be used

by other sources as well. Maybe we can remove that parameter from
mmu_map_physical_memory() altogether, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12283 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-04-10 14:45:24 +00:00
parent 8a43fdf807
commit 3e2c0a3264
3 changed files with 7 additions and 5 deletions
@@ -57,7 +57,6 @@ struct extended_memory {
uint32 type; uint32 type;
}; };
static const uint32 kDefaultPageFlags = 0x03; // present, R/W
static const uint32 kDefaultPageTableFlags = 0x07; // present, user, R/W static const uint32 kDefaultPageTableFlags = 0x07; // present, user, R/W
static const size_t kMaxKernelSize = 0x100000; // 1 MB for the kernel static const size_t kMaxKernelSize = 0x100000; // 1 MB for the kernel
+6 -3
View File
@@ -1,7 +1,7 @@
/* /*
** Copyright 2004, Axel Dörfler, [email protected]. All rights reserved. * Copyright 2004-2005, Axel Dörfler, [email protected]. All rights reserved.
** Distributed under the terms of the OpenBeOS License. * Distributed under the terms of the MIT License.
*/ */
#ifndef MMU_H #ifndef MMU_H
#define MMU_H #define MMU_H
@@ -9,6 +9,9 @@
#include <SupportDefs.h> #include <SupportDefs.h>
// For use with mmu_map_physical_memory()
static const uint32 kDefaultPageFlags = 0x3; // present, R/W
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
+1 -1
View File
@@ -479,7 +479,7 @@ fallback:
if (lastBase == 0) { if (lastBase == 0) {
// the graphics memory has not been mapped yet! // the graphics memory has not been mapped yet!
sFrameBuffer = mmu_map_physical_memory(gKernelArgs.frame_buffer.physical_buffer.start, sFrameBuffer = mmu_map_physical_memory(gKernelArgs.frame_buffer.physical_buffer.start,
gKernelArgs.frame_buffer.physical_buffer.size, 0x03); gKernelArgs.frame_buffer.physical_buffer.size, kDefaultPageFlags);
} }
// clear the video memory // clear the video memory