From 8789fa85312e62f8aeb7084db6b4751e31cdf683 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Sat, 31 Oct 2015 13:48:12 +0100 Subject: [PATCH] Use unsigned `mul` instead of signed `imul` --- src/arch/x86_64/boot.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/x86_64/boot.asm b/src/arch/x86_64/boot.asm index d323f4b4..c424e39a 100644 --- a/src/arch/x86_64/boot.asm +++ b/src/arch/x86_64/boot.asm @@ -54,7 +54,7 @@ setup_page_tables: .map_p2_table: ; map ecx-th P2 entry to a huge page that starts at address (2MiB * ecx) mov eax, 0x200000 ; 2MiB - imul eax, ecx ; start address of ecx-th page + mul ecx ; start address of ecx-th page or eax, 0b10000011 ; present + writable + huge mov [p2_table + ecx * 8], eax ; map ecx-th entry