From fcea594f2df75dcd0f3d4bfeac988b748be89c13 Mon Sep 17 00:00:00 2001 From: Amlal Date: Wed, 30 Apr 2025 12:34:54 +0200 Subject: kernel: keep track of cr3 in AMD HAL/HEL. why? To keep track of it, avoid security issues in the future. Signed-off-by: Amlal --- dev/boot/src/HEL/AMD64/BootAPI.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dev/boot/src/HEL/AMD64/BootAPI.S') diff --git a/dev/boot/src/HEL/AMD64/BootAPI.S b/dev/boot/src/HEL/AMD64/BootAPI.S index 9cc15918..43775fc2 100644 --- a/dev/boot/src/HEL/AMD64/BootAPI.S +++ b/dev/boot/src/HEL/AMD64/BootAPI.S @@ -52,7 +52,7 @@ reset_wait: .global boot_read_cr3 boot_read_cr3: - mov rax, rax + mov rax, cr3 ret boot_write_cr3: -- cgit v1.2.3