Skip to content
Commit a3001422 authored by Oliver Upton's avatar Oliver Upton Committed by Paolo Bonzini
Browse files

x86: Consistently use safe_halt() in place of inline assembly



The safe_halt() library function simply performs an 'sti; hlt'
instruction sequence. There are several places where bare inline
assembly was used instead of this helper. Replace all open-coded
implementations with the helper.

No functional change intended.

Signed-off-by: default avatarOliver Upton <oupton@google.com>
Message-Id: <20211019225351.970397-1-oupton@google.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 5b4855b3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment