Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/i386 Use CR0_PE (enable protected mode) instea...
details: https://anonhg.NetBSD.org/src/rev/f5f2ed3a0b0a
branches: trunk
changeset: 751968:f5f2ed3a0b0a
user: jym <jym%NetBSD.org@localhost>
date: Tue Feb 09 23:09:47 2010 +0000
description:
Use CR0_PE (enable protected mode) instead of hardcoding constant.
diffstat:
sys/arch/i386/i386/mptramp.S | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r b4f4b72009ba -r f5f2ed3a0b0a sys/arch/i386/i386/mptramp.S
--- a/sys/arch/i386/i386/mptramp.S Tue Feb 09 23:07:13 2010 +0000
+++ b/sys/arch/i386/i386/mptramp.S Tue Feb 09 23:09:47 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mptramp.S,v 1.19 2009/11/27 03:23:10 rmind Exp $ */
+/* $NetBSD: mptramp.S,v 1.20 2010/02/09 23:09:47 jym Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -76,7 +76,7 @@
*/
#include <machine/asm.h>
-__KERNEL_RCSID(0, "$NetBSD: mptramp.S,v 1.19 2009/11/27 03:23:10 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mptramp.S,v 1.20 2010/02/09 23:09:47 jym Exp $");
#include "opt_mpbios.h" /* for MPDEBUG */
@@ -125,8 +125,8 @@
movw %ax, %es
movw %ax, %ss
data32 addr32 lgdt (gdt_desc) # load flat descriptor table
- movl %cr0, %eax # get cr0
- orl $0x1, %eax # enable protected mode
+ movl %cr0, %eax # get cr0
+ orl $CR0_PE, %eax # enable protected mode
movl %eax, %cr0 # doit
ljmpl $0x8, $mp_startup
Home |
Main Index |
Thread Index |
Old Index