summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/KernelKit/DebugOutput.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-05-13 23:49:28 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-05-13 23:49:28 +0200
commit38a534c90e682bd4ce3d176127520f0ff513fb11 (patch)
tree40a37cc86947657486cc430c7e7648e42359c817 /dev/kernel/KernelKit/DebugOutput.h
parentf5f62b145d472a2a2c388c385be9d1c4e5b5d84c (diff)
feat(kernel): expand KDBG packet structure, and prefix hexadecimal
numbers with 0x100, instead of 100h. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/KernelKit/DebugOutput.h')
-rw-r--r--dev/kernel/KernelKit/DebugOutput.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/dev/kernel/KernelKit/DebugOutput.h b/dev/kernel/KernelKit/DebugOutput.h
index f6cfa027..cf9378a9 100644
--- a/dev/kernel/KernelKit/DebugOutput.h
+++ b/dev/kernel/KernelKit/DebugOutput.h
@@ -158,8 +158,8 @@ namespace Detail {
inline TerminalDevice hex_number(const Long& x) {
TerminalDevice self = TerminalDevice::The();
+ self << "0x";
Detail::_write_number_hex(x, self);
- self.operator<<("h");
return self;
}
@@ -184,10 +184,12 @@ inline constexpr SizeT kDebugTypeLen = 256U;
typedef Char rt_debug_type[kDebugTypeLen];
-class DebuggerPortHeader final {
+/// @brief KDBG's packet header.
+class KernelDebugHeader final {
public:
- Int16 fPort;
- Int16 fPortBsy;
+ Int16 fPort;
+ Int16 fPortKind;
+ rt_debug_type fPortBlob;
};
inline TerminalDevice& operator<<(TerminalDevice& src, const Long& num) {