forked from xt-sys/exectos
Implement KD subsystem, add serial & framebuffer debug providers
This commit is contained in:
@@ -36,8 +36,24 @@ EXTERN HL_SCROLL_REGION_DATA HlpScrollRegionData;
|
||||
/* System information */
|
||||
EXTERN ACPI_SYSTEM_INFO HlpSystemInfo;
|
||||
|
||||
/* Pointer to boot loader provided DbgPrint() routine */
|
||||
EXTERN VOID (*KeDbgPrint)(IN PCWSTR Format, IN ...);
|
||||
/* Pointer to DbgPrint() routine */
|
||||
EXTERN PKD_PRINT_ROUTINE KdPrint;
|
||||
|
||||
/* Kernel Debugger mode */
|
||||
EXTERN KD_DEBUG_MODE KdpDebugMode;
|
||||
|
||||
/* Debugger I/O providers initialization routines */
|
||||
EXTERN PKD_INIT_ROUTINE KdpIoProvidersInitRoutines[KDBG_PROVIDERS_COUNT];
|
||||
|
||||
/* List of active I/O providers */
|
||||
EXTERN LIST_ENTRY KdpProviders;
|
||||
|
||||
/* Debugger's serial port handle */
|
||||
EXTERN CPPORT KdpSerialPort;
|
||||
|
||||
/* Pre-defined serial port addresses */
|
||||
EXTERN ULONG KdpSerialPortList[COMPORT_COUNT];
|
||||
|
||||
|
||||
/* Kernel initialization block passed by boot loader */
|
||||
EXTERN PKERNEL_INITIALIZATION_BLOCK KeInitializationBlock;
|
||||
|
44
xtoskrnl/includes/kdi.h
Normal file
44
xtoskrnl/includes/kdi.h
Normal file
@@ -0,0 +1,44 @@
|
||||
/**
|
||||
* PROJECT: ExectOS
|
||||
* COPYRIGHT: See COPYING.md in the top level directory
|
||||
* FILE: xtoskrnl/includes/kdi.h
|
||||
* DESCRIPTION: Kernel Debugger routines
|
||||
* DEVELOPERS: Aiken Harris <harraiken91@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef __XTOSKRNL_KDI_H
|
||||
#define __XTOSKRNL_KDI_H
|
||||
|
||||
#include <xtos.h>
|
||||
|
||||
|
||||
/* Kernel Debugger routines forward references */
|
||||
XTAPI
|
||||
XTSTATUS
|
||||
KdInitializeDebugIoProviders(VOID);
|
||||
|
||||
XTAPI
|
||||
VOID
|
||||
KdSetPrintRoutine(PVOID DebugPrintRoutine);
|
||||
|
||||
XTCDECL
|
||||
VOID
|
||||
KdpDebugPrint(PCWSTR Format, ...);
|
||||
|
||||
XTAPI
|
||||
XTSTATUS
|
||||
KdpDetectDebugPorts(VOID);
|
||||
|
||||
XTAPI
|
||||
XTSTATUS
|
||||
KdpInitializeFrameBufferProvider(VOID);
|
||||
|
||||
XTAPI
|
||||
XTSTATUS
|
||||
KdpInitializeSerialPortProvider(VOID);
|
||||
|
||||
XTCDECL
|
||||
XTSTATUS
|
||||
KdpSerialWriteCharacter(WCHAR Character);
|
||||
|
||||
#endif /* __XTOSKRNL_KDI_H */
|
@@ -15,6 +15,7 @@
|
||||
/* Kernel specific headers */
|
||||
#include "globals.h"
|
||||
#include "hli.h"
|
||||
#include "kdi.h"
|
||||
#include "kei.h"
|
||||
#include "mmi.h"
|
||||
#include "poi.h"
|
||||
|
Reference in New Issue
Block a user