Skip to content

Commit

Permalink
Merge pull request wolfSSL#7118 from douzzer/20240107-fix-linuxkm-com…
Browse files Browse the repository at this point in the history
…mercial-POC

20240107-fix-linuxkm-commercial-POC
  • Loading branch information
billphipps authored Jan 7, 2024
2 parents 0ebf824 + d722276 commit 5631bc9
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 5631bc9

Please sign in to comment.