(CALL_THREAD_FCT): Align stack of called function correctly.
This commit is contained in:
parent
2bf49a0121
commit
f877b33831
@ -356,10 +356,9 @@ union user_desc_init
|
|||||||
#define CALL_THREAD_FCT(descr) \
|
#define CALL_THREAD_FCT(descr) \
|
||||||
({ void *__res; \
|
({ void *__res; \
|
||||||
int __ignore1, __ignore2; \
|
int __ignore1, __ignore2; \
|
||||||
asm volatile ("subl $12, %%esp\n\t" \
|
asm volatile ("pushl %%gs:%P4\n\t" \
|
||||||
"pushl %%gs:%P4\n\t" \
|
|
||||||
"call *%%gs:%P3\n\t" \
|
"call *%%gs:%P3\n\t" \
|
||||||
"addl $16, %%esp" \
|
"addl $4, %%esp" \
|
||||||
: "=a" (__res), "=c" (__ignore1), "=d" (__ignore2) \
|
: "=a" (__res), "=c" (__ignore1), "=d" (__ignore2) \
|
||||||
: "i" (offsetof (struct pthread, start_routine)), \
|
: "i" (offsetof (struct pthread, start_routine)), \
|
||||||
"i" (offsetof (struct pthread, arg))); \
|
"i" (offsetof (struct pthread, arg))); \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user