HomeFreeBSD

systm.h: change pause from #define to inline function

Description

systm.h: change pause from #define to inline function

There are drivers are using (*pause)(x, y) function pointers and depending
on how "pause" is used it gets replaced by pause_sbt causing compile time
failures.
Given "pause" is a generic enough name change it from a #define to an
inline function to avoid replacements where it should not.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D36489

(cherry picked from commit 7ea1cac248574ed06c7823ffbfb9a60157240e57)

Details

Provenance
bzAuthored on Sep 8 2022, 12:04 AM
Reviewer
kib
Differential Revision
D36489: systm.h: change pause from #define to inline function
Parents
rG9ecbe62e7e51: bhyve: Make bc_magic unsigned
Branches
Unknown
Tags
Unknown