summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/KernelKit
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
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')
-rw-r--r--dev/kernel/KernelKit/CoreProcessScheduler.h7
-rw-r--r--dev/kernel/KernelKit/DebugOutput.h10
2 files changed, 13 insertions, 4 deletions
diff --git a/dev/kernel/KernelKit/CoreProcessScheduler.h b/dev/kernel/KernelKit/CoreProcessScheduler.h
index 830f17f9..4fd6321c 100644
--- a/dev/kernel/KernelKit/CoreProcessScheduler.h
+++ b/dev/kernel/KernelKit/CoreProcessScheduler.h
@@ -22,8 +22,15 @@
namespace Kernel {
class USER_PROCESS;
class KERNEL_TASK;
+class UserProcessScheduler;
class UserProcessTeam;
+template <typename T>
+struct PROCESS_HEAP_TREE;
+
+template <typename T>
+struct PROCESS_FILE_TREE;
+
enum {
kInvalidTreeKind = 0U,
kRedTreeKind = 100U,
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) {