Hi Bruce,
I have fucked so much with that file on my system I cant realy
make a patch right now. But in the future I will do that. AnhkSVN supports
.patch. But only only thing this diff does is replaces
while ((uint)page < ceil) {
PageAllocator.ReservePage (page);
page += 4096;
}
WITH
PageAllocator.ReservePageRange(page, (ceil / ADC.Pager.AtomicPageSize),
"Reserve memory below 0x100000 (1MB) for the BIOS/video memory");
Since I changed the PageAllocator to work with Reserverd pages in bulk not in
pages. Then this lowers the ReserveCheck form 256 checks to 1.
Kveðja/Regards
Ásgeir Halldórsson
E.C. Software
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bruce Markham
Sent: 15. nóvember 2007 02:27
To: sharpos-developers@lists.sourceforge.net
Subject: Re: [SharpOS Developers] Small performance boost in Pager.cs in X86
Ásgeir:
Would you kindly re-send this patch to Pager.cs, as an attachment?
My TortoiseSVN is being cranky about it...
-Bruce
On Nov 12, 2007 1:06 PM, Ásgeir Halldórsson <[EMAIL PROTECTED]<mailto:[EMAIL
PROTECTED]>> wrote:
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<mailto:SharpOS-Developers@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/sharpos-developers
-------------------------------------------------------------------------
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