summaryrefslogtreecommitdiffhomepage
path: root/HALKit/AMD64/DebugManager.asm
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-06 09:14:11 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-06 09:14:11 +0100
commit5339d016c07bf717ee388f4feb73544087324af0 (patch)
tree94be6f67ed626091f24aee24ec3b3be03d01e4e7 /HALKit/AMD64/DebugManager.asm
git: port from mercurial repo.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'HALKit/AMD64/DebugManager.asm')
-rw-r--r--HALKit/AMD64/DebugManager.asm31
1 files changed, 31 insertions, 0 deletions
diff --git a/HALKit/AMD64/DebugManager.asm b/HALKit/AMD64/DebugManager.asm
new file mode 100644
index 00000000..bbdb76f7
--- /dev/null
+++ b/HALKit/AMD64/DebugManager.asm
@@ -0,0 +1,31 @@
+;; /*
+;; * ========================================================
+;; *
+;; * hCore
+;; * Copyright Mahrouss Logic, all rights reserved.
+;; *
+;; * ========================================================
+;; */
+
+[global rt_debug_fence]
+[global rt_debug_fence_end]
+[global __rt_debug_int_3]
+
+;; //////////////////////////////////////////////////// ;;
+
+__rt_debug_record_table:
+ db "DebugMgr/hCore", 0xa, 0xd, 0
+ resb 16
+ dw 0x5566
+__rt_debug_int_3:
+ push 0x6677 ;; Debug check error
+L0:
+ hlt
+ jmp $
+
+rt_debug_fence:
+ push __rt_debug_record_table
+ jmp [rbx]
+rt_debug_fence_end:
+
+;; //////////////////////////////////////////////////// ;; \ No newline at end of file