Grab Giant around trap_pfault() for now.

This commit is contained in:
jhb 2001-06-29 04:18:10 +00:00
parent ac6b9aa8ec
commit cc8833dfe9
3 changed files with 12 additions and 0 deletions

View File

@ -337,7 +337,9 @@ restart:
*/
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 @@ restart:
*/
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 @@ restart:
*/
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 @@ restart:
*/
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 @@ restart:
*/
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 @@ restart:
*/
eva = rcr2();
enable_intr();
mtx_lock(&Giant);
(void) trap_pfault(&frame, FALSE, eva);
mtx_unlock(&Giant);
goto out;
case T_DNA: