1*f2a58733SJustin Miller /*
2*f2a58733SJustin Miller * PROJECT: Freeldr ARM32
3*f2a58733SJustin Miller * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4*f2a58733SJustin Miller * PURPOSE: Arch specific debug
5*f2a58733SJustin Miller * COPYRIGHT: Copyright 2022 Justin Miller <justinmiller100@gmail.com>
6*f2a58733SJustin Miller */
7*f2a58733SJustin Miller
8*f2a58733SJustin Miller #include <freeldr.h>
9*f2a58733SJustin Miller #include <debug.h>
10*f2a58733SJustin Miller
11*f2a58733SJustin Miller #define QEMUUART 0x09000000
12*f2a58733SJustin Miller volatile unsigned int * UART0DR = (unsigned int *) QEMUUART;
13*f2a58733SJustin Miller
14*f2a58733SJustin Miller BOOLEAN
Rs232PortInitialize(IN ULONG ComPort,IN ULONG BaudRate)15*f2a58733SJustin Miller Rs232PortInitialize(IN ULONG ComPort,
16*f2a58733SJustin Miller IN ULONG BaudRate)
17*f2a58733SJustin Miller {
18*f2a58733SJustin Miller return TRUE;
19*f2a58733SJustin Miller }
20*f2a58733SJustin Miller
21*f2a58733SJustin Miller VOID
Rs232PortPutByte(UCHAR ByteToSend)22*f2a58733SJustin Miller Rs232PortPutByte(UCHAR ByteToSend)
23*f2a58733SJustin Miller {
24*f2a58733SJustin Miller *UART0DR = ByteToSend;
25*f2a58733SJustin Miller }
26*f2a58733SJustin Miller
27*f2a58733SJustin Miller VOID
FrLdrBugCheckWithMessage(ULONG BugCode,PCHAR File,ULONG Line,PSTR Format,...)28*f2a58733SJustin Miller FrLdrBugCheckWithMessage(
29*f2a58733SJustin Miller ULONG BugCode,
30*f2a58733SJustin Miller PCHAR File,
31*f2a58733SJustin Miller ULONG Line,
32*f2a58733SJustin Miller PSTR Format,
33*f2a58733SJustin Miller ...)
34*f2a58733SJustin Miller {
35*f2a58733SJustin Miller }
36