From d451a511e96298ab5a0ea21d5ed38737b9a78d20 Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Sun, 13 Nov 2005 06:34:51 +0000 Subject: [PATCH] - Add new configuration option "SARCH" to define the sub-architecture. Examples include i386-xbox, ppc-be/le (little/bigendian), or any other sub-types of the specified ARCH. - Use SARCH option to isolate XBOX architecture code in freeldr. - Only build rs232.c if DEBUG is on, because the code is only used in DEBUG mode. svn path=/trunk/; revision=19196 --- .../boot/freeldr/freeldr/arch/i386/archmach.c | 2 ++ reactos/boot/freeldr/freeldr/comm/rs232.c | 4 ++++ reactos/boot/freeldr/freeldr/freeldr_base.xml | 18 ++++++++++-------- reactos/config.template.xml | 6 ++++++ 4 files changed, 22 insertions(+), 8 deletions(-) diff --git a/reactos/boot/freeldr/freeldr/arch/i386/archmach.c b/reactos/boot/freeldr/freeldr/arch/i386/archmach.c index 2400029a00c..be3982bdafc 100644 --- a/reactos/boot/freeldr/freeldr/arch/i386/archmach.c +++ b/reactos/boot/freeldr/freeldr/arch/i386/archmach.c @@ -32,7 +32,9 @@ MachInit(const char *CmdLine) PciId = READ_PORT_ULONG((ULONG*) 0xcfc); if (0x02a510de == PciId) { +#ifdef XBOX XboxMachInit(CmdLine); +#endif } else { diff --git a/reactos/boot/freeldr/freeldr/comm/rs232.c b/reactos/boot/freeldr/freeldr/comm/rs232.c index 364bc0d6b1e..34a2abbac3c 100644 --- a/reactos/boot/freeldr/freeldr/comm/rs232.c +++ b/reactos/boot/freeldr/freeldr/comm/rs232.c @@ -23,6 +23,8 @@ /* MACROS *******************************************************************/ +#ifndef DEBUG + #define DEFAULT_BAUD_RATE 19200 #define SER_RBR(x) ((x)+0) @@ -272,3 +274,5 @@ VOID Rs232PortPutByte(UCHAR ByteToSend) WRITE_PORT_UCHAR (SER_THR(Rs232PortBase), ByteToSend); } + +#endif diff --git a/reactos/boot/freeldr/freeldr/freeldr_base.xml b/reactos/boot/freeldr/freeldr/freeldr_base.xml index ab8277bce4d..4abcd6691d4 100644 --- a/reactos/boot/freeldr/freeldr/freeldr_base.xml +++ b/reactos/boot/freeldr/freeldr/freeldr_base.xml @@ -22,20 +22,22 @@ i386rtl.c i386vid.c machpc.c - machxbox.c pccons.c pcdisk.c pcmem.c pcrtc.c pcvideo.c portio.c - xboxcons.c - xboxdisk.c - xboxfont.c - xboxhw.c - xboxmem.c - xboxrtc.c - xboxvideo.c + + machxbox.c + xboxcons.c + xboxdisk.c + xboxfont.c + xboxhw.c + xboxmem.c + xboxrtc.c + xboxvideo.c + diff --git a/reactos/config.template.xml b/reactos/config.template.xml index d2031dbf0fb..340f3e9bda9 100644 --- a/reactos/config.template.xml +++ b/reactos/config.template.xml @@ -15,6 +15,12 @@ --> + + +