search for: __put_user_x

Displaying 6 results from an estimated 6 matches for "__put_user_x".

2009 Jan 24
1
[LLVMdev] inline asm semantics: output constraint width smaller than input
...work in that case? > It would fail at compile time, with an error message that you can't cast aggregates to ints, so my patch is not good. > We'll fall into this branch in that case: > > default: \ > __put_user_x(X, __pu_val, ptr, __ret_pu); \ > break; \ > > and __ret_pu has a nonsensical type in that case. > That branch is a call to a non-existent function __put_user_X, and should give error at link time, right? In the new patch...
2009 Jan 24
0
[LLVMdev] inline asm semantics: output constraint width smaller than input
...d(void); > break; \ > } \ > (x) = (__typeof__(*(ptr)))__val_gu; \ > - __ret_gu; \ > + (int)__ret_gu; \ > }) > > #define __put_user_x(size, x, ptr, __ret_pu) \ > @@ -239,11 +239,13 @@ extern void __put_user_8(void); > */ > #define put_user(x, ptr) \ > ({ \ > - int __ret_pu; \ > + __typeof__(*(ptr)) __ret_pu;...
2009 Jan 24
5
[LLVMdev] inline asm semantics: output constraint width smaller than input
...176,7 +176,7 @@ extern int __get_user_bad(void); break; \ } \ (x) = (__typeof__(*(ptr)))__val_gu; \ - __ret_gu; \ + (int)__ret_gu; \ }) #define __put_user_x(size, x, ptr, __ret_pu) \ @@ -239,11 +239,13 @@ extern void __put_user_8(void); */ #define put_user(x, ptr) \ ({ \ - int __ret_pu; \ + __typeof__(*(ptr)) __ret_pu; \ __typeof__(*(ptr))...
2009 Jan 27
0
[LLVMdev] inline asm semantics: output constraint width smaller than input
...al, %ax, %eax, %rax/ (%eax:%edx) as input parameter, and the output parameter is always an int (%eax). (hope I explained this right) But if I got it right, the input can also be a struct (who's size is 1, 2, 4, 8-byte) that fits in a register. Not sure if this ever occurs in practice. #define __put_user_x(size, x, ptr, __ret_pu) \ asm volatile("call __put_user_" #size : "=a" (__ret_pu) \ :"0" ((typeof(*(ptr)))(x)), "c" (ptr) : "ebx") #define put_user(x, ptr) \ ({ \...
2009 Jan 27
3
[LLVMdev] inline asm semantics: output constraint width smaller than input
On Tuesday 27 January 2009 20:56:30 Mike Stump wrote: > On Jan 27, 2009, at 8:42 PM, Duncan Sands wrote: > > one thing that seems to be clear to everyone except me is... what > > are the > > semantics supposed to be? > > I don't know of any other semantic other than, if they are supposed to > be in the same register, then they have to be in the same register.
2006 Jul 26
5
linux-2.6-xen.hg
Hi, Is the http://xenbits.xensource.com/linux-2.6-xen.hg tree still being updated? if not, what''s the preferred Linux tree to track that has all of the Xen bits? Thanks, Muli _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel