From 4dacff5be4fa547cd26748e6af03f79cb039f700 Mon Sep 17 00:00:00 2001 From: "hongwen.chw" <785427346@qq.com> Date: Sun, 21 Jul 2024 17:02:54 +0800 Subject: [PATCH] Fix a typo when assign 'dst.rbx' at `copy_gp_regs` --- kernel/aster-nix/src/arch/x86/cpu.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/aster-nix/src/arch/x86/cpu.rs b/kernel/aster-nix/src/arch/x86/cpu.rs index 3bb49ce1b..4eda6f996 100644 --- a/kernel/aster-nix/src/arch/x86/cpu.rs +++ b/kernel/aster-nix/src/arch/x86/cpu.rs @@ -69,7 +69,7 @@ pub struct GpRegs { macro_rules! copy_gp_regs { ($src: ident, $dst: ident) => { $dst.rax = $src.rax; - $dst.rbx = $src.rax; + $dst.rbx = $src.rbx; $dst.rcx = $src.rcx; $dst.rdx = $src.rdx; $dst.rsi = $src.rsi;