Skip to content

Commit

Permalink
Change mpmc pause implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
prp committed Aug 22, 2020
1 parent e4dd516 commit 1efba83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lkl
4 changes: 3 additions & 1 deletion src/enclave/mpmc_queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
static void _mpmc_pause(void);
static void _mpmc_pause()
{
__asm__ __volatile__("pause" : : : "memory");
#ifdef __x86__
__builtin_ia32_pause()
#endif
}

/* user is responsible for freeing the queue buffer, but it's tied to the
Expand Down

0 comments on commit 1efba83

Please sign in to comment.