diff options
| author | Amlal <amlal@nekernel.org> | 2025-04-30 12:34:54 +0200 |
|---|---|---|
| committer | Amlal <amlal@nekernel.org> | 2025-04-30 12:34:54 +0200 |
| commit | fcea594f2df75dcd0f3d4bfeac988b748be89c13 (patch) | |
| tree | 0204f5575637644879c89a1a3c00b5848043e89b /dev/boot/src/HEL/AMD64/BootAPI.S | |
| parent | 911bf2d68a4904d8ff838d31e00ef65d4e03063c (diff) | |
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 <amlal@nekernel.org>
Diffstat (limited to 'dev/boot/src/HEL/AMD64/BootAPI.S')
| -rw-r--r-- | dev/boot/src/HEL/AMD64/BootAPI.S | 2 |
1 files changed, 1 insertions, 1 deletions
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: |
