Skip to content

Commit

Permalink
pefs: Call fpu_kern_enter in critical section
Browse files Browse the repository at this point in the history
Signed-off-by: Gleb Kurtsou <gleb.kurtsou@gmail.com>
  • Loading branch information
glk committed Jul 19, 2018
1 parent 02788ef commit ab01559
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sys/fs/pefs/pefs_aesni.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,12 @@ pefs_aesni_enter(struct pefs_session *xses)
if (ses->fpu_ctx != NULL) {
ses->td = curthread;
ses->fpu_cpuid = curcpu;
critical_exit();
fpu_kern_enter(ses->td, ses->fpu_ctx, FPU_KERN_NORMAL);
ses->fpu_saved = 1;
} else {
critical_exit();
ses->fpu_saved = -1;
}
critical_exit();
}

static void
Expand Down

0 comments on commit ab01559

Please sign in to comment.