Skip to content

Commit

Permalink
linuxkm/module_hooks.c: add proper gating for my_fpregs_[un]lock().
Browse files Browse the repository at this point in the history
  • Loading branch information
douzzer committed Jan 7, 2024
1 parent 0ebf824 commit d722276
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion linuxkm/module_hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,8 @@ static int my_preempt_count(void) {
return preempt_count();
}

#if defined(WOLFSSL_LINUXKM_SIMD_X86) && defined(WOLFSSL_COMMERCIAL_LICENSE)

/* ditto for fpregs_lock/fpregs_unlock */
#ifdef WOLFSSL_LINUXKM_USE_SAVE_VECTOR_REGISTERS
static void my_fpregs_lock(void) {
Expand All @@ -359,7 +361,10 @@ static void my_fpregs_lock(void) {
static void my_fpregs_unlock(void) {
fpregs_unlock();
}
#endif

#endif /* WOLFSSL_LINUXKM_SIMD_X86 && WOLFSSL_COMMERCIAL_LICENSE */

#endif /* USE_WOLFSSL_LINUXKM_PIE_REDIRECT_TABLE */

static int set_up_wolfssl_linuxkm_pie_redirect_table(void) {
memset(
Expand Down

0 comments on commit d722276

Please sign in to comment.