From dff2ca4ea04a0fe19ecf2534cd01fd679aa4c6e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sun, 5 May 2013 21:23:20 +0000 Subject: [PATCH] [KDROSDBG] Comment that part too, because it was in KdPortInitialize and here, it reported an invalid port. KdPortInUse is initialized by KDBG. svn path=/branches/kd++/; revision=58957 --- drivers/base/kdrosdbg/i386/kdbg.c | 4 +++- drivers/base/kdrosdbg/kdrosdbg.spec | 18 +++++++++--------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/drivers/base/kdrosdbg/i386/kdbg.c b/drivers/base/kdrosdbg/i386/kdbg.c index 9d6d2c76118..2fab855fdde 100644 --- a/drivers/base/kdrosdbg/i386/kdbg.c +++ b/drivers/base/kdrosdbg/i386/kdbg.c @@ -92,7 +92,7 @@ const ULONG BaseArray[] = {0, 0xF1012000}; /* STATIC VARIABLES *********************************************************/ -static KD_PORT_INFORMATION DefaultPort = { 0, 0, 0 }; +// static KD_PORT_INFORMATION DefaultPort = { 0, 0, 0 }; /* The com port must only be initialized once! */ // static BOOLEAN PortInitialized = FALSE; @@ -221,8 +221,10 @@ KdPortInitializeEx( HalDisplayString(buffer); #endif /* NDEBUG */ +#if 0 /* set global info */ KdComPortInUse = (PUCHAR)DefaultPort.BaseAddress; +#endif return TRUE; } diff --git a/drivers/base/kdrosdbg/kdrosdbg.spec b/drivers/base/kdrosdbg/kdrosdbg.spec index 2645cace4ed..c15f172b64d 100644 --- a/drivers/base/kdrosdbg/kdrosdbg.spec +++ b/drivers/base/kdrosdbg/kdrosdbg.spec @@ -1,13 +1,13 @@ -@ stdcall KdD0Transition() -@ stdcall KdD3Transition() -@ stdcall KdDebuggerInitialize0(ptr) -@ stdcall KdDebuggerInitialize1(ptr) -@ stdcall KdReceivePacket(long ptr ptr ptr ptr) -@ stdcall KdRestore(long) -@ stdcall KdSave(long) -@ stdcall KdSendPacket(long ptr ptr ptr) +1 stdcall KdD0Transition() +2 stdcall KdD3Transition() +3 stdcall KdDebuggerInitialize0(ptr) +4 stdcall KdDebuggerInitialize1(ptr) +5 stdcall KdReceivePacket(long ptr ptr ptr ptr) +6 stdcall KdRestore(long) +7 stdcall KdSave(long) +8 stdcall KdSendPacket(long ptr ptr ptr) ; Legacy KD -@ stdcall KdPortGetByteEx(ptr ptr) @ stdcall KdPortInitializeEx(ptr long long) +@ stdcall KdPortGetByteEx(ptr ptr) @ stdcall KdPortPutByteEx(ptr long)