From 955815007ea745f0bd1e5c6b505ad021aced6887 Mon Sep 17 00:00:00 2001
From: Erin <erin@hashbang.sh>
Date: Mon, 5 Jun 2017 11:18:08 -0500
Subject: [PATCH] boot.asm: fix typo that made p3[0] -> p2 PRESENT but not
 WRITABLE

This caused major issues when switching on the WRPROT flag
---
 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 2881b75..19371f8 100644
--- a/src/arch/x86_64/boot.asm
+++ b/src/arch/x86_64/boot.asm
@@ -101,7 +101,7 @@ setup_ptables:
 
 	; p3[0] -> p2
 	mov eax, p2_table
-	or eax, 0b1 ; present + writable
+	or eax, 0b11 ; present + writable
 	mov [p3_table], eax
 
 	; map each p2 entry to a 2mib hugepage