Skip to content
Commit 2d9e3a37 authored by Bill Wendling's avatar Bill Wendling Committed by Thomas Huth
Browse files

x86: use inline asm to retrieve stack pointer



According to GCC's documentation, the only supported use for specifying
registers for local variables is "to specify registers for input and
output operands when calling Extended asm." Using it as a shortcut to
get the value in a register isn't guaranteed to work, and clang
complains that the variable is uninitialized.

Signed-off-by: default avatarBill Wendling <morbo@google.com>
Message-Id: <20191030210419.213407-7-morbo@google.com>
Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
parent f3154609
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