gcc -O2 cleanup. tested for a long time.
Reviewed by: deischen
This commit is contained in:
parent
1c11957446
commit
519296b456
@ -91,7 +91,7 @@ struct tcb {
|
||||
__asm __volatile("movq %%fs:%1, %0" \
|
||||
: "=r" (__i) \
|
||||
: "m" (*(u_long *)(__kcb_offset(name)))); \
|
||||
__result = *(__kcb_type(name) *)&__i; \
|
||||
__result = (__kcb_type(name))__i; \
|
||||
\
|
||||
__result; \
|
||||
})
|
||||
@ -103,7 +103,7 @@ struct tcb {
|
||||
__kcb_type(name) __val = (val); \
|
||||
\
|
||||
u_long __i; \
|
||||
__i = *(u_long *)&__val; \
|
||||
__i = (u_long)__val; \
|
||||
__asm __volatile("movq %1,%%fs:%0" \
|
||||
: "=m" (*(u_long *)(__kcb_offset(name))) \
|
||||
: "r" (__i)); \
|
||||
|
@ -89,7 +89,7 @@ struct tcb {
|
||||
__asm __volatile("movl %%gs:%1, %0" \
|
||||
: "=r" (__i) \
|
||||
: "m" (*(u_int *)(__kcb_offset(name)))); \
|
||||
__result = *(__kcb_type(name) *)&__i; \
|
||||
__result = __kcb_type(name)__i; \
|
||||
\
|
||||
__result; \
|
||||
})
|
||||
@ -101,7 +101,7 @@ struct tcb {
|
||||
__kcb_type(name) __val = (val); \
|
||||
\
|
||||
u_int __i; \
|
||||
__i = *(u_int *)&__val; \
|
||||
__i = (u_int)__val; \
|
||||
__asm __volatile("movl %1,%%gs:%0" \
|
||||
: "=m" (*(u_int *)(__kcb_offset(name))) \
|
||||
: "r" (__i)); \
|
||||
|
@ -91,7 +91,7 @@ struct tcb {
|
||||
__asm __volatile("movq %%fs:%1, %0" \
|
||||
: "=r" (__i) \
|
||||
: "m" (*(u_long *)(__kcb_offset(name)))); \
|
||||
__result = *(__kcb_type(name) *)&__i; \
|
||||
__result = (__kcb_type(name))__i; \
|
||||
\
|
||||
__result; \
|
||||
})
|
||||
@ -103,7 +103,7 @@ struct tcb {
|
||||
__kcb_type(name) __val = (val); \
|
||||
\
|
||||
u_long __i; \
|
||||
__i = *(u_long *)&__val; \
|
||||
__i = (u_long)__val; \
|
||||
__asm __volatile("movq %1,%%fs:%0" \
|
||||
: "=m" (*(u_long *)(__kcb_offset(name))) \
|
||||
: "r" (__i)); \
|
||||
|
@ -89,7 +89,7 @@ struct tcb {
|
||||
__asm __volatile("movl %%gs:%1, %0" \
|
||||
: "=r" (__i) \
|
||||
: "m" (*(u_int *)(__kcb_offset(name)))); \
|
||||
__result = *(__kcb_type(name) *)&__i; \
|
||||
__result = __kcb_type(name)__i; \
|
||||
\
|
||||
__result; \
|
||||
})
|
||||
@ -101,7 +101,7 @@ struct tcb {
|
||||
__kcb_type(name) __val = (val); \
|
||||
\
|
||||
u_int __i; \
|
||||
__i = *(u_int *)&__val; \
|
||||
__i = (u_int)__val; \
|
||||
__asm __volatile("movl %1,%%gs:%0" \
|
||||
: "=m" (*(u_int *)(__kcb_offset(name))) \
|
||||
: "r" (__i)); \
|
||||
|
Loading…
Reference in New Issue
Block a user