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

View File

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

View File

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