From 8e070a8e102ef4985392ec6a52f5578ff3560b3c Mon Sep 17 00:00:00 2001 From: "Zone.N" Date: Mon, 8 Jul 2024 16:34:26 +0800 Subject: [PATCH] bug: found bug Signed-off-by: Zone.N --- src/kernel/arch/x86_64/arch_main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/kernel/arch/x86_64/arch_main.cpp b/src/kernel/arch/x86_64/arch_main.cpp index e2c09eb5b..472501f91 100644 --- a/src/kernel/arch/x86_64/arch_main.cpp +++ b/src/kernel/arch/x86_64/arch_main.cpp @@ -139,5 +139,7 @@ uint32_t ArchInit(uint32_t argc, uint8_t *argv) { Info("Hello x86_64 ArchInit\n"); + /// @bug 返回后 gdtr 会爆炸,导致重启 + return 0; }