Author: sir_richard
Date: Tue Nov 23 17:17:32 2010
New Revision: 49744
URL: http://svn.reactos.org/svn/reactos?rev=49744&view=rev
Log:
[FREELDR]: On ARM, don't turn on maximum, hyper, ultra-slow debugging and analysis features for the heap. This, for example, reduces FreeLoader's size by 32KB+ and speeds up boot by entire seconds, as the entire heap isn't zeroed out on startup.
[FREELDR]: May I humbly suggest you do the same on x86?!
Modified:
trunk/reactos/boot/freeldr/freeldr/rtl/bget.c
Modified: trunk/reactos/boot/freeldr/freeldr/rtl/bget.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/rtl/b…
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/rtl/bget.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/rtl/bget.c [iso-8859-1] Tue Nov 23 17:17:32 2010
@@ -407,6 +407,7 @@
all buffers allocated are a
multiple of this size. This
MUST be a power of two. */
+#ifndef _M_ARM
#define BufDump 1 /* Define this symbol to enable the
bpoold() function which dumps the
@@ -442,6 +443,8 @@
#define BECtl 1 /* Define this symbol to enable the
bectl() function for automatic
pool space control. */
+#else
+#endif
#include <stdio.h>
Author: sir_richard
Date: Tue Nov 23 16:50:35 2010
New Revision: 49742
URL: http://svn.reactos.org/svn/reactos?rev=49742&view=rev
Log:
[ARMLLB]: Although the soothing BSOD blue color is nice for LLB debugging, we'd really prefer to have black so it looks more natural on the eyes when booting to FreeLoader. As such, make the default backcolor black, but keep the old blue color for early testing, if enabled with a define.
Modified:
trunk/reactos/boot/armllb/hw/video.c
Modified: trunk/reactos/boot/armllb/hw/video.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/armllb/hw/video.c?rev…
==============================================================================
--- trunk/reactos/boot/armllb/hw/video.c [iso-8859-1] (original)
+++ trunk/reactos/boot/armllb/hw/video.c [iso-8859-1] Tue Nov 23 16:50:35 2010
@@ -326,7 +326,11 @@
else
{
/* Deep blue */
+#ifdef BLUE_SCREEN
BackColor = LlbHwVideoCreateColor(14, 0, 82);
+#else
+ BackColor = LlbHwVideoCreateColor(0, 0, 0);
+#endif
BackColor = (BackColor << 16) | BackColor;
}
@@ -346,8 +350,12 @@
{
ULONG cx, cy, CharsPerLine, BackColor, ScreenWidth;
- /* Forecolor on this machine */
- BackColor = LlbHwVideoCreateColor(14, 0, 82);
+ /* Backcolor on this machine */
+#ifdef BLUE_SCREEN
+ BackColor = LlbHwVideoCreateColor(14, 0, 82);
+#else
+ BackColor = LlbHwVideoCreateColor(0, 0, 0);
+#endif
/* Amount of characters in a line */
ScreenWidth = LlbHwGetScreenWidth();
Author: sir_richard
Date: Tue Nov 23 16:49:28 2010
New Revision: 49741
URL: http://svn.reactos.org/svn/reactos?rev=49741&view=rev
Log:
[ARMLLB]: We made certain assumptions in the "generic" files that are actually board-specific. For example, Versatile does indeed return a strange ULONG as the RTC time (seconds since 1970, I think), but TWL4030 on the ZOOM2 is normal and returns BCD RTC values just like the PC CMOS. Therefore, most of the "Generic" time.c code should move to versatile later. For now, use an IFDEF.
[ARMLLB]: Likewise, not all platforms have a PS/2 controller like the Versatile. ZOOM2 for example has a keypad, so the generic "input" file shouldn't assume keyboard-only. As such, most of the code there should also be made specific, but for now, use an ifdef.
Modified:
trunk/reactos/boot/armllb/fw.c
trunk/reactos/boot/armllb/hw/time.c
Modified: trunk/reactos/boot/armllb/fw.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/armllb/fw.c?rev=49741…
==============================================================================
--- trunk/reactos/boot/armllb/fw.c [iso-8859-1] (original)
+++ trunk/reactos/boot/armllb/fw.c [iso-8859-1] Tue Nov 23 16:49:28 2010
@@ -49,7 +49,11 @@
LlbFwGetCh(VOID)
{
/* Return the key pressed */
+#ifdef _ZOOM2_
+ return LlbKeypadGetChar();
+#else
return LlbKeyboardGetChar();
+#endif
}
ULONG
Modified: trunk/reactos/boot/armllb/hw/time.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/armllb/hw/time.c?rev=…
==============================================================================
--- trunk/reactos/boot/armllb/hw/time.c [iso-8859-1] (original)
+++ trunk/reactos/boot/armllb/hw/time.c [iso-8859-1] Tue Nov 23 16:49:28 2010
@@ -11,7 +11,12 @@
#define LEAPS_THRU_END_OF(y) ((y)/4 - (y)/100 + (y)/400)
UCHAR LlbDaysInMonth[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
+
+#ifndef _ZOOM2_
TIMEINFO LlbTime;
+#else
+extern TIMEINFO LlbTime;
+#endif
BOOLEAN
NTAPI
@@ -82,9 +87,10 @@
/* Read RTC time */
RtcTime = LlbHwRtcRead();
-
+#ifndef _ZOOM2_
/* Convert it */
LlbConvertRtcTime(RtcTime, &LlbTime);
+#endif
return &LlbTime;
}