[ros-diffs] [fireball] 28257: - Fix DBG=KDBG=0 build

fireball at svn.reactos.org fireball at svn.reactos.org
Thu Aug 9 09:50:31 CEST 2007


Author: fireball
Date: Thu Aug  9 11:50:31 2007
New Revision: 28257

URL: http://svn.reactos.org/svn/reactos?rev=28257&view=rev
Log:
- Fix DBG=KDBG=0 build

Added:
    trunk/reactos/ntoskrnl/kd/wrappers/kdbg.c   (with props)
Modified:
    trunk/reactos/ntoskrnl/kdbg/kdb_symbols.c
    trunk/reactos/ntoskrnl/ntoskrnl.rbuild

Added: trunk/reactos/ntoskrnl/kd/wrappers/kdbg.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/kd/wrappers/kdbg.c?rev=28257&view=auto
==============================================================================
--- trunk/reactos/ntoskrnl/kd/wrappers/kdbg.c (added)
+++ trunk/reactos/ntoskrnl/kd/wrappers/kdbg.c Thu Aug  9 11:50:31 2007
@@ -1,0 +1,30 @@
+/*
+ * COPYRIGHT:       See COPYING in the top level directory
+ * PROJECT:         ReactOS kernel
+ * FILE:            ntoskrnl/kd/wrappers/bochs.c
+ * PURPOSE:         KDBG Wrapper for Kd
+ *
+ * PROGRAMMERS:     Aleksey Bragin (aleksey at reactos.org)
+ */
+
+#include <ntoskrnl.h>
+#define NDEBUG
+#include <internal/debug.h>
+
+VOID NTAPI
+KdbInitialize(PKD_DISPATCH_TABLE DispatchTable, ULONG BootPhase);
+
+/* FUNCTIONS *****************************************************************/
+
+VOID
+NTAPI
+KdpKdbgInit(PKD_DISPATCH_TABLE DispatchTable,
+            ULONG BootPhase)
+{
+#ifdef KDBG
+    /* Forward the call */
+    KdbInitialize(DispatchTable, BootPhase);
+#else
+    /* When KDBG is disabled, it is not used/initialized at all */
+#endif
+}

Propchange: trunk/reactos/ntoskrnl/kd/wrappers/kdbg.c
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: trunk/reactos/ntoskrnl/kdbg/kdb_symbols.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/kdbg/kdb_symbols.c?rev=28257&r1=28256&r2=28257&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/kdbg/kdb_symbols.c (original)
+++ trunk/reactos/ntoskrnl/kdbg/kdb_symbols.c Thu Aug  9 11:50:31 2007
@@ -671,21 +671,22 @@
 }
 
 VOID
-STDCALL
+NTAPI
 KdbDebugPrint(PCH Message, ULONG Length)
 {
+    /* Nothing here */
 }
 
 
 /*! \brief Initializes the KDB symbols implementation.
  *
- * \param NtoskrnlModuleObject  LDR_DATA_TABLE_ENTRY of ntoskrnl.exe
- * \param LdrHalModuleObject    LDR_DATA_TABLE_ENTRY of hal.sys
+ * \param DispatchTable         Pointer to the KD dispatch table
+ * \param BootPhase             Phase of initialization
  */
 VOID
-STDCALL
-KdpKdbgInit(PKD_DISPATCH_TABLE DispatchTable,
-            ULONG BootPhase)
+NTAPI
+KdbInitialize(PKD_DISPATCH_TABLE DispatchTable,
+              ULONG BootPhase)
 {
     PCHAR p1, p2;
     int Found;

Modified: trunk/reactos/ntoskrnl/ntoskrnl.rbuild
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ntoskrnl.rbuild?rev=28257&r1=28256&r2=28257&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/ntoskrnl.rbuild (original)
+++ trunk/reactos/ntoskrnl/ntoskrnl.rbuild Thu Aug  9 11:50:31 2007
@@ -255,6 +255,7 @@
             <directory name="wrappers">
                 <file>bochs.c</file>
                 <file>gdbstub.c</file>
+		<file>kdbg.c</file>
             </directory>
             <file>kdinit.c</file>
             <file>kdio.c</file>




More information about the Ros-diffs mailing list