Index: Kernel/Core/ADC/X86/Pager.cs
===================================================================
--- Kernel/Core/ADC/X86/Pager.cs      (revision 457)
+++ Kernel/Core/ADC/X86/Pager.cs      (working copy)
@@ -246,12 +246,9 @@
                       // Reserve memory below 0x100000 (1MB) for the 
BIOS/video memory
                       uint ceil = 0x100000;
                       byte *page = null;
-
-                      while ((uint)page < ceil) {
-                              PageAllocator.ReservePage (page);
-                              page += 4096;
-                      }

+            PageAllocator.ReservePageRange(page, (ceil / 
ADC.Pager.AtomicPageSize), "Reserve memory below 0x100000 (1MB) for the 
BIOS/video memory");
+
                       *error = PageAllocator.Errors.Success;
                       return *error;
               }


Regards
   Ásgeir Halldórsson

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
SharpOS-Developers mailing list
SharpOS-Developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sharpos-developers

Reply via email to