Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Set the CR0_AM bit so processes can enable alignmen...
details: https://anonhg.NetBSD.org/src/rev/4f0586737559
branches: trunk
changeset: 778906:4f0586737559
user: jym <jym%NetBSD.org@localhost>
date: Thu Apr 19 18:00:34 2012 +0000
description:
Set the CR0_AM bit so processes can enable alignment check errors under
x86 through PSL_AC bit.
ATF test incoming shortly.
diffstat:
sys/arch/amd64/acpi/acpi_wakecode.S | 4 ++--
sys/arch/amd64/amd64/locore.S | 4 ++--
sys/arch/amd64/amd64/mptramp.S | 4 ++--
sys/arch/i386/acpi/acpi_wakecode.S | 4 ++--
sys/arch/i386/i386/locore.S | 6 +++---
sys/arch/i386/i386/mptramp.S | 6 +++---
6 files changed, 14 insertions(+), 14 deletions(-)
diffs (126 lines):
diff -r cb1115a71822 -r 4f0586737559 sys/arch/amd64/acpi/acpi_wakecode.S
--- a/sys/arch/amd64/acpi/acpi_wakecode.S Thu Apr 19 17:52:39 2012 +0000
+++ b/sys/arch/amd64/acpi/acpi_wakecode.S Thu Apr 19 18:00:34 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_wakecode.S,v 1.10 2009/08/24 22:06:50 jmcneill Exp $ */
+/* $NetBSD: acpi_wakecode.S,v 1.11 2012/04/19 18:00:34 jym Exp $ */
/*-
* Copyright (c) 2007 Joerg Sonnenberger <joerg%netbsd.org@localhost>
@@ -198,7 +198,7 @@
/* Enable paging */
movl %cr0,%eax
- orl $(CR0_PE|CR0_PG|CR0_NE|CR0_TS|CR0_MP|CR0_WP),%eax
+ orl $(CR0_PE|CR0_PG|CR0_NE|CR0_TS|CR0_MP|CR0_WP|CR0_AM),%eax
movl %eax,%cr0
/* Flush prefetch queue */
jmp 1f
diff -r cb1115a71822 -r 4f0586737559 sys/arch/amd64/amd64/locore.S
--- a/sys/arch/amd64/amd64/locore.S Thu Apr 19 17:52:39 2012 +0000
+++ b/sys/arch/amd64/amd64/locore.S Thu Apr 19 18:00:34 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.S,v 1.67 2012/02/24 08:06:07 cherry Exp $ */
+/* $NetBSD: locore.S,v 1.68 2012/04/19 18:00:34 jym Exp $ */
/*
* Copyright-o-rama!
@@ -626,7 +626,7 @@
* 4. Enable paging and the rest of it.
*/
movl %cr0,%eax
- orl $(CR0_PE|CR0_PG|CR0_NE|CR0_TS|CR0_MP|CR0_WP),%eax
+ orl $(CR0_PE|CR0_PG|CR0_NE|CR0_TS|CR0_MP|CR0_WP|CR0_AM),%eax
movl %eax,%cr0
jmp compat
compat:
diff -r cb1115a71822 -r 4f0586737559 sys/arch/amd64/amd64/mptramp.S
--- a/sys/arch/amd64/amd64/mptramp.S Thu Apr 19 17:52:39 2012 +0000
+++ b/sys/arch/amd64/amd64/mptramp.S Thu Apr 19 18:00:34 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mptramp.S,v 1.12 2010/04/20 15:42:21 jym Exp $ */
+/* $NetBSD: mptramp.S,v 1.13 2012/04/19 18:00:34 jym Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -173,7 +173,7 @@
movl %ecx,%cr3 # load ptd addr into mmu
movl %cr0,%eax # get control word
- orl $(CR0_PE|CR0_PG|CR0_NE|CR0_TS|CR0_MP|CR0_WP),%eax
+ orl $(CR0_PE|CR0_PG|CR0_NE|CR0_TS|CR0_MP|CR0_WP|CR0_AM),%eax
movl %eax,%cr0
jmp mptramp_compat
mptramp_compat:
diff -r cb1115a71822 -r 4f0586737559 sys/arch/i386/acpi/acpi_wakecode.S
--- a/sys/arch/i386/acpi/acpi_wakecode.S Thu Apr 19 17:52:39 2012 +0000
+++ b/sys/arch/i386/acpi/acpi_wakecode.S Thu Apr 19 18:00:34 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_wakecode.S,v 1.14 2009/08/24 10:16:12 jmcneill Exp $ */
+/* $NetBSD: acpi_wakecode.S,v 1.15 2012/04/19 18:00:34 jym Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -165,7 +165,7 @@
movl WAKEUP_r_cr3 + ACPI_WAKEUP_ADDR,%eax
movl %eax,%cr3
movl %cr0,%eax
- orl $(CR0_PE|CR0_PG|CR0_NE|CR0_TS|CR0_EM|CR0_MP|CR0_WP),%eax
+ orl $(CR0_PE|CR0_PG|CR0_NE|CR0_TS|CR0_EM|CR0_MP|CR0_WP|CR0_AM),%eax
movl %eax,%cr0
/* Flush the prefetch queue */
diff -r cb1115a71822 -r 4f0586737559 sys/arch/i386/i386/locore.S
--- a/sys/arch/i386/i386/locore.S Thu Apr 19 17:52:39 2012 +0000
+++ b/sys/arch/i386/i386/locore.S Thu Apr 19 18:00:34 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.S,v 1.97 2012/03/02 16:43:31 bouyer Exp $ */
+/* $NetBSD: locore.S,v 1.98 2012/04/19 18:00:35 jym Exp $ */
/*
* Copyright-o-rama!
@@ -129,7 +129,7 @@
*/
#include <machine/asm.h>
-__KERNEL_RCSID(0, "$NetBSD: locore.S,v 1.97 2012/03/02 16:43:31 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: locore.S,v 1.98 2012/04/19 18:00:35 jym Exp $");
#include "opt_compat_oldboot.h"
#include "opt_ddb.h"
@@ -682,7 +682,7 @@
*/
movl %cr0,%eax # get control word
# enable paging & NPX emulation
- orl $(CR0_PE|CR0_PG|CR0_NE|CR0_TS|CR0_EM|CR0_MP),%eax
+ orl $(CR0_PE|CR0_PG|CR0_NE|CR0_TS|CR0_EM|CR0_MP|CR0_AM),%eax
movl %eax,%cr0 # and page NOW!
pushl $begin # jump to high mem
diff -r cb1115a71822 -r 4f0586737559 sys/arch/i386/i386/mptramp.S
--- a/sys/arch/i386/i386/mptramp.S Thu Apr 19 17:52:39 2012 +0000
+++ b/sys/arch/i386/i386/mptramp.S Thu Apr 19 18:00:34 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mptramp.S,v 1.22 2010/07/28 17:05:51 jym Exp $ */
+/* $NetBSD: mptramp.S,v 1.23 2012/04/19 18:00:35 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.22 2010/07/28 17:05:51 jym Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mptramp.S,v 1.23 2012/04/19 18:00:35 jym Exp $");
#include "opt_mpbios.h" /* for MPDEBUG */
@@ -174,7 +174,7 @@
movl %ecx,%cr3 # load ptd addr into mmu
movl %cr0,%eax # get control word
# enable paging & NPX emulation
- orl $(CR0_PE|CR0_PG|CR0_NE|CR0_TS|CR0_EM|CR0_MP|CR0_WP),%eax
+ orl $(CR0_PE|CR0_PG|CR0_NE|CR0_TS|CR0_EM|CR0_MP|CR0_WP|CR0_AM),%eax
movl %eax,%cr0 # and page NOW!
#ifdef MPDEBUG
Home |
Main Index |
Thread Index |
Old Index