HyperDbg/hyperdbg/hyperkd/code/debugger/communication/KdSerial-linux.c
Max Raulea 2f59ad7c70 Kernel Module now Links and compiles!!
The kernel module now links and compiles, there are still a lot of empty
TODOs left, there are empty stubs for hypertrace, assembly files and
kdserial etc. these can be introduced one by one. My first step will be
loading the kernel module from the userspace cli.

Big step forward! :)
2026-08-24 11:20:24 +02:00

42 lines
1.1 KiB
C

/**
* @file KdSerial-linux.c
* @brief Linux placeholder stubs for the kdserial transport entry points.
*
* @details On Windows the KdHyperDbg* serial routines live in the kdserial KMDF
* driver, which is dropped from the Linux module (Windows-only serial transport;
* a Linux kdserial is planned as separate work). hyperkd's SerialConnection.c
* still references them, so this TU provides no-op stubs purely so the single
* .ko links. This is Kbuild-only; there is no Windows counterpart.
*
* TODO(Linux): implement the serial/remote-debugging transport (8250/16550 UART
* or a virtio/socket channel) and drop this stub.
*/
#include "pch.h"
VOID
KdHyperDbgTest(UINT16 Byte)
{
UNREFERENCED_PARAMETER(Byte);
}
VOID
KdHyperDbgPrepareDebuggeeConnectionPort(UINT32 PortAddress, UINT32 Baudrate)
{
UNREFERENCED_PARAMETER(PortAddress);
UNREFERENCED_PARAMETER(Baudrate);
}
VOID
KdHyperDbgSendByte(UCHAR Byte, BOOLEAN BusyWait)
{
UNREFERENCED_PARAMETER(Byte);
UNREFERENCED_PARAMETER(BusyWait);
}
BOOLEAN
KdHyperDbgRecvByte(PUCHAR RecvByte)
{
UNREFERENCED_PARAMETER(RecvByte);
return FALSE;
}