From e6f74d6f68c400c6fb5760cea9f33a32ad6df87e Mon Sep 17 00:00:00 2001 From: fvdl Date: Tue, 3 Dec 2002 22:01:26 +0000 Subject: [PATCH] Set the CR0_WP bit. --- sys/arch/x86_64/x86_64/locore.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/x86_64/x86_64/locore.S b/sys/arch/x86_64/x86_64/locore.S index 84bd5323d2b8..377e50646431 100644 --- a/sys/arch/x86_64/x86_64/locore.S +++ b/sys/arch/x86_64/x86_64/locore.S @@ -1,4 +1,4 @@ -/* $NetBSD: locore.S,v 1.11 2002/11/29 22:17:18 fvdl Exp $ */ +/* $NetBSD: locore.S,v 1.12 2002/12/03 22:01:26 fvdl Exp $ */ /* * Copyright-o-rama! @@ -569,7 +569,7 @@ start: movw $0x1234,0x472 # warm boot * 4. Enable paging and the rest of it. */ movl %cr0,%eax - orl $(CR0_PE|CR0_PG|CR0_NE|CR0_TS|CR0_MP),%eax + orl $(CR0_PE|CR0_PG|CR0_NE|CR0_TS|CR0_MP|CR0_WP),%eax movl %eax,%cr0 jmp compat compat: