Prototype mnemonics in padlock_verify_context for better portability

[read support for Solaris assembler].
This commit is contained in:
Andy Polyakov 2005-04-14 07:47:10 +00:00
parent 026bb0b96a
commit 2b85e23d2e

View File

@ -391,14 +391,14 @@ padlock_verify_context(struct padlock_cipher_data *cdata)
{ {
asm volatile ( asm volatile (
"pushfl\n" "pushfl\n"
" bt $30,(%%esp)\n" " btl $30,(%%esp)\n"
" jnc 1f\n" " jnc 1f\n"
" cmp %2,%1\n" " cmpl %2,%1\n"
" je 1f\n" " je 1f\n"
" popfl\n" " popfl\n"
" sub $4,%%esp\n" " subl $4,%%esp\n"
"1: add $4,%%esp\n" "1: addl $4,%%esp\n"
" mov %2,%0" " movl %2,%0"
:"+m"(padlock_saved_context) :"+m"(padlock_saved_context)
: "r"(padlock_saved_context), "r"(cdata) : "cc"); : "r"(padlock_saved_context), "r"(cdata) : "cc");
} }