[freenos] r242 committed - Added the PAGE_RESERVED page flag to mark pages reserved....

  • From: codesite-noreply@xxxxxxxxxx
  • To: freenos@xxxxxxxxxxxxx
  • Date: Sun, 02 Aug 2009 10:47:15 +0000

Revision: 242
Author: nieklinnenbank
Date: Sun Aug  2 03:33:36 2009
Log: Added the PAGE_RESERVED page flag to mark pages reserved.
This enables the MemoryManager to reserve virtual memory in advance,
leaving a hole in virtual memory. When searching for an unused virtual
memory address, reserved pages are skipped. This enables creation of
memory mapping which can "grow" to a certain size, without risking accidental mapping of other objects without the range. The dynamic memory heap currently
uses this mechanism for ~128 megabyte maximum.

http://code.google.com/p/freenos/source/detail?r=242

Modified:
 /trunk/include/X86/Memory.h

=======================================
--- /trunk/include/X86/Memory.h Sun Jun 28 17:23:04 2009
+++ /trunk/include/X86/Memory.h Sun Aug  2 03:33:36 2009
@@ -67,6 +67,9 @@
 /** This page has been marked for temporary operations. */
 #define PAGE_MARKED    (1 << 10)

+/** Page has been reserved for future use. */
+#define PAGE_RESERVED  (1 << 11)
+
 /** We map page tables into virtual memory, at a fixed address. */
 #define PAGETABFROM            ADDRESS (1024 * 1024 * 4)


Other related posts:

  • » [freenos] r242 committed - Added the PAGE_RESERVED page flag to mark pages reserved.... - codesite-noreply