x86: Use inline assembler instead of global register variable to get sp