Grab Giant around trap_pfault() for now.

This commit is contained in:
John Baldwin 2001-06-29 04:18:10 +00:00
parent 84241bd0dc
commit 92809bc001
3 changed files with 12 additions and 0 deletions

View File

@ -337,7 +337,9 @@ trap(frame)
*/
eva = rcr2();
enable_intr();
mtx_lock(&Giant);
i = trap_pfault(&frame, TRUE, eva);
mtx_unlock(&Giant);
#if defined(I586_CPU) && !defined(NO_F00F_HACK)
if (i == -2) {
/*
@ -448,7 +450,9 @@ trap(frame)
*/
eva = rcr2();
enable_intr();
mtx_lock(&Giant);
(void) trap_pfault(&frame, FALSE, eva);
mtx_unlock(&Giant);
goto out;
case T_DNA:

View File

@ -337,7 +337,9 @@ trap(frame)
*/
eva = rcr2();
enable_intr();
mtx_lock(&Giant);
i = trap_pfault(&frame, TRUE, eva);
mtx_unlock(&Giant);
#if defined(I586_CPU) && !defined(NO_F00F_HACK)
if (i == -2) {
/*
@ -448,7 +450,9 @@ trap(frame)
*/
eva = rcr2();
enable_intr();
mtx_lock(&Giant);
(void) trap_pfault(&frame, FALSE, eva);
mtx_unlock(&Giant);
goto out;
case T_DNA:

View File

@ -337,7 +337,9 @@ trap(frame)
*/
eva = rcr2();
enable_intr();
mtx_lock(&Giant);
i = trap_pfault(&frame, TRUE, eva);
mtx_unlock(&Giant);
#if defined(I586_CPU) && !defined(NO_F00F_HACK)
if (i == -2) {
/*
@ -448,7 +450,9 @@ trap(frame)
*/
eva = rcr2();
enable_intr();
mtx_lock(&Giant);
(void) trap_pfault(&frame, FALSE, eva);
mtx_unlock(&Giant);
goto out;
case T_DNA: