Skip to content

Commit f0a8153

Browse files
author
Sir Richard
committed
[FREELDR]: No Linux support for ARM, no RS232 support for ARM, and no complex debug infrastructure for ARM either.
svn path=/trunk/; revision=45523
1 parent 2e97a01 commit f0a8153

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

reactos/boot/freeldr/freeldr/comm/rs232.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
* with this program; if not, write to the Free Software Foundation, Inc.,
1919
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
2020
*/
21+
22+
#ifndef _M_ARM
2123

2224
#include <freeldr.h>
2325

@@ -275,8 +277,6 @@ VOID Rs232PortPutByte(UCHAR ByteToSend)
275277
WRITE_PORT_UCHAR (SER_THR(Rs232PortBase), ByteToSend);
276278
}
277279

278-
#endif /* DBG */
279-
280280
BOOLEAN Rs232PortInUse(ULONG Base)
281281
{
282282
#if DBG
@@ -285,3 +285,6 @@ BOOLEAN Rs232PortInUse(ULONG Base)
285285
return FALSE;
286286
#endif
287287
}
288+
289+
#endif /* DBG */
290+
#endif

reactos/boot/freeldr/freeldr/debug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#include <debug.h>
2323

24-
#if DBG
24+
#if defined(DBG) && !defined(_M_ARM)
2525

2626
//#define DEBUG_ALL
2727
//#define DEBUG_INIFILE

reactos/boot/freeldr/freeldr/include/debug.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
extern char* g_file;
4040
extern int g_line;
4141

42-
#if DBG
42+
#if defined(DBG) && !defined(_M_ARM)
4343

4444
VOID DbgPrintMask(ULONG Mask, char *format, ...);
4545
VOID DebugInit(VOID);
@@ -80,7 +80,7 @@ void MEMORY_WRITE_BREAKPOINT4(unsigned long addr);
8080

8181
#else
8282

83-
#define DebugInit()
83+
#define DebugInit(x)
8484
#define DPRINTM(_x_, ...)
8585
#define BugCheck(_x_)
8686
#define DbgDumpBuffer(_x_, _y_, _z_)

reactos/boot/freeldr/freeldr/linuxboot.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1818
*/
1919

20-
20+
#ifndef _M_ARM
21+
2122
#include <freeldr.h>
2223
#include <debug.h>
23-
2424
#ifdef __i386__
2525
#define LINUX_READ_CHUNK_SIZE 0x20000 // Read 128k at a time
2626

@@ -516,3 +516,4 @@ BOOLEAN LinuxReadInitrd(PFILE LinuxInitrdFile)
516516
return TRUE;
517517
}
518518
#endif /* __i386__ */
519+
#endif

0 commit comments

Comments
 (0)