summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/KernelKit/DebugOutput.h
diff options
context:
space:
mode:
Diffstat (limited to 'dev/kernel/KernelKit/DebugOutput.h')
-rw-r--r--dev/kernel/KernelKit/DebugOutput.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/dev/kernel/KernelKit/DebugOutput.h b/dev/kernel/KernelKit/DebugOutput.h
index de3bc997..992d1ca7 100644
--- a/dev/kernel/KernelKit/DebugOutput.h
+++ b/dev/kernel/KernelKit/DebugOutput.h
@@ -12,7 +12,7 @@
#include <NeKit/Stream.h>
#include <NeKit/Utils.h>
-#define kDebugUnboundPort 0x0FEED
+#define kDebugPort (51820U)
#define kDebugMag0 'K'
#define kDebugMag1 'D'
@@ -27,7 +27,7 @@
namespace Kernel {
class TerminalDevice;
class DTraceDevice;
-class DebugDevice;
+class NeDebugDevice;
class Utf8TerminalDevice;
inline TerminalDevice end_line();
@@ -180,17 +180,9 @@ inline TerminalDevice get_console_in(Char* buf) {
return self;
}
-inline constexpr SizeT kDebugTypeLen = 256U;
+inline constexpr SizeT kDebugCmdLen = 256U;
-typedef Char rt_debug_type[kDebugTypeLen];
-
-/// @brief KDBG's packet header.
-class KernelDebugHeader final {
- public:
- Int16 fPort;
- Int16 fPortKind;
- rt_debug_type fPortBlob;
-};
+typedef Char rt_debug_cmd[kDebugCmdLen];
inline TerminalDevice& operator<<(TerminalDevice& src, const Long& num) {
src = number(num);