search for: __d

Displaying 20 results from an estimated 28 matches for "__d".

Did you mean: __d0
2016 Apr 13
0
[PATCH 1/1] x32 support
...t;=a" (__v) : "dN"(__p)); + return __v; +} + +static __inline__ __u32 inl(__u16 __p) +{ + __u32 __v; + asm volatile ("inl %1,%0" : "=a" (__v) : "dN"(__p)); + return __v; +} + +/* String I/O macros */ + +static __inline__ void outsb(__u16 __p, const void *__d, __u64 __n) +{ + asm volatile ("cld; rep; outsb" + : "+S" (__d), "+c"(__n) + : "d"(__p)); +} + +static __inline__ void outsw(__u16 __p, const void *__d, __u64 __n) +{ + asm volatile ("cld; rep; outsw" + : "+S" (__d), "+...
2006 Jun 26
0
[klibc 37/43] x86_64 support for klibc
...uot;(__p)); + return v; +} + +static __inline__ unsigned int inl(unsigned short __p) +{ + unsigned int __v; + asm volatile ("inl %1,%0" : "=a" (__v) : "dN"(__p)); + return v; +} + +/* String I/O macros */ + +static __inline__ void +outsb(unsigned short __p, const void *__d, unsigned long __n) +{ + asm volatile ("cld; rep; outsb" + : "+S" (__d), "+c"(__n) + : "d"(__p)); +} + +static __inline__ void +outsw(unsigned short __p, const void *__d, unsigned long __n) +{ + asm volatile ("cld; rep; outsw" +...
2015 Jul 24
2
[LLVMdev] [lldb-dev] [3.7 Release] We have branched
...; In file included from ..\lib\CORE\perl.h:3060: >>> In file included from .\win32thread.h:4: >>> ./win32.h(284,25) : error: 'selectany' can only be applied to data >>> items with external linkage >>> >> >> That line is: >> extern const __declspec(selectany) union { unsigned __int64 __q; double >> __d; } __PL_nan_u = { 0x7FF8000000000000UI64 }; >> >> If it's written like so, clang-cl accepts it: >> union U { unsigned __int64 __q; double __d; }; >> extern const __declspec(selectany) U __PL_nan_u = { &g...
2007 Apr 18
0
[RFC/PATCH PV_OPS X86_64 02/17] paravirt_ops - msr
...__asm__ __volatile__ ("rdtsc" : "=a" (low) : : "edx") -#define rdtscp(low,high,aux) \ - asm volatile (".byte 0x0f,0x01,0xf9" : "=a" (low), "=d" (high), "=c" (aux)) #define rdtscll(val) do { \ unsigned int __a,__d; \ @@ -75,42 +110,43 @@ (val) = ((unsigned long)__a) | (((unsigned long)__d)<<32); \ } while(0) +#define rdpmc(counter,low,high) \ + __asm__ __volatile__("rdpmc" \ + : "=a" (low), "=d" (high) \ + : "c" (counter)) + +#define rdtscp(l...
2007 Apr 18
0
[RFC/PATCH PV_OPS X86_64 02/17] paravirt_ops - msr
...__asm__ __volatile__ ("rdtsc" : "=a" (low) : : "edx") -#define rdtscp(low,high,aux) \ - asm volatile (".byte 0x0f,0x01,0xf9" : "=a" (low), "=d" (high), "=c" (aux)) #define rdtscll(val) do { \ unsigned int __a,__d; \ @@ -75,42 +110,43 @@ (val) = ((unsigned long)__a) | (((unsigned long)__d)<<32); \ } while(0) +#define rdpmc(counter,low,high) \ + __asm__ __volatile__("rdpmc" \ + : "=a" (low), "=d" (high) \ + : "c" (counter)) + +#define rdtscp(l...
2006 Jun 26
0
[klibc 24/43] i386 support for klibc
...ude/arch/i386/klibc/diverr.h new file mode 100644 index 0000000..fa238ac --- /dev/null +++ b/usr/include/arch/i386/klibc/diverr.h @@ -0,0 +1,15 @@ +/* + * arch/i386/include/klibc/diverr.h + */ + +#ifndef _KLIBC_DIVERR_H +#define _KLIBC_DIVERR_H + +#include <signal.h> + +static __inline__ void __divide_error(void) +{ + asm volatile ("int $0"); +} + +#endif /* _KLIBC_DIVERR_H */ diff --git a/usr/include/arch/i386/sys/io.h b/usr/include/arch/i386/sys/io.h new file mode 100644 index 0000000..cf31b97 --- /dev/null +++ b/usr/include/arch/i386/sys/io.h @@ -0,0 +1,127 @@ +/* ----------...
2015 Jul 16
2
[LLVMdev] [lldb-dev] [3.7 Release] We have branched
...'-GL' > In file included from perllib.c:10: > In file included from ..\lib\CORE\perl.h:3060: > In file included from .\win32thread.h:4: > ./win32.h(284,25) : error: 'selectany' can only be applied to data items > with external linkage > That line is: extern const __declspec(selectany) union { unsigned __int64 __q; double __d; } __PL_nan_u = { 0x7FF8000000000000UI64 }; If it's written like so, clang-cl accepts it: union U { unsigned __int64 __q; double __d; }; extern const __declspec(selectany) U __PL_nan_u = { 0x7FF8000000000000UI64 }; I guess cl.exe appl...
2015 Jul 24
0
[LLVMdev] [lldb-dev] [3.7 Release] We have branched
...d from perllib.c:10: >> In file included from ..\lib\CORE\perl.h:3060: >> In file included from .\win32thread.h:4: >> ./win32.h(284,25) : error: 'selectany' can only be applied to data items >> with external linkage >> > > That line is: > extern const __declspec(selectany) union { unsigned __int64 __q; double > __d; } __PL_nan_u = { 0x7FF8000000000000UI64 }; > > If it's written like so, clang-cl accepts it: > union U { unsigned __int64 __q; double __d; }; > extern const __declspec(selectany) U __PL_nan_u = { 0x7FF8000000000000UI64...
2011 Jul 29
3
[PATCH 1/3] klibc: Add scandir() and alphasort() support.
...+++++++++++++ 3 files changed, 84 insertions(+), 1 deletions(-) create mode 100644 usr/klibc/scandir.c diff --git a/usr/include/dirent.h b/usr/include/dirent.h index e324474..3b1ff59 100644 --- a/usr/include/dirent.h +++ b/usr/include/dirent.h @@ -30,4 +30,11 @@ static __inline__ int dirfd(DIR * __d) return __d->__fd; } +__extern int scandir(const char *dirp, struct dirent ***namelist, + int (*filter)(const struct dirent *), + int (*compar)(const struct dirent **, + const struct dirent **)); + +int alphasort(const struct dirent **a, const struct dirent **b); + #endif...
2013 Sep 10
2
[LLVMdev] [lld] buildbot configuration on using -fsanitize options
...gnu/4.6/../../../../include/c++/4.6/condition_variable:38: /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/chrono:535:6: error: no matching constructor for initialization of 'duration' (aka 'std::chrono::duration<long, std::ratio<1, 1000000> >') : __d(__t.time_since_epoch()) On Tue, Sep 10, 2013 at 1:28 PM, Alexey Samsonov <samsonov at google.com> wrote: > FYI We have an upstream bootstrap bot > (http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-bootstrap) that > does a number of things including running llvm/clang tests u...
2013 Oct 16
3
[LLVMdev] Unable to evaluate clang on linux or windows
...linux-gnu/4.6/../../../../include/c++/4.6/thread:38: /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/chrono:535:6: error: no matching constructor for initialization of 'duration' (aka 'std::chrono::duration<long, std::ratio<1, 1000000> >') : __d(__t.time_since_epoch()) ^ ~~~~~~~~~~~~~~~~~~~~~~ /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/condition_variable:106:42: note: in instantiation of function template specialization 'std::chrono::time_point<std::chrono::system_clock, std::chrono::duration&l...
2013 Sep 12
0
[LLVMdev] [lld] buildbot configuration on using -fsanitize options
...nclude/c++/4.6/condition_variable:38: > /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/chrono:535:6: > error: no matching constructor for initialization of 'duration' (aka > 'std::chrono::duration<long, std::ratio<1, 1000000> >') > : __d(__t.time_since_epoch()) > > On Tue, Sep 10, 2013 at 1:28 PM, Alexey Samsonov <samsonov at google.com> wrote: >> FYI We have an upstream bootstrap bot >> (http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-bootstrap) that >> does a number of things including runni...
2013 Oct 18
0
[LLVMdev] Unable to evaluate clang on linux or windows
...../../include/c++/4.6/thread:38: > /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/chrono:535:6: > error: no matching constructor for initialization of 'duration' (aka > 'std::chrono::duration<long, std::ratio<1, 1000000> >') > : __d(__t.time_since_epoch()) > ^ ~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/condition_variable:106:42: > note: in instantiation of function template specialization > 'std::chrono::time_point<std::chrono::system_clock, &gt...
2007 Apr 18
2
[PATCH] x86_64 paravirt_ops port
...__asm__ __volatile__ ("rdtsc" : "=a" (low) : : "edx") -#define rdtscp(low,high,aux) \ - asm volatile (".byte 0x0f,0x01,0xf9" : "=a" (low), "=d" (high), "=c" (aux)) #define rdtscll(val) do { \ unsigned int __a,__d; \ @@ -75,42 +89,49 @@ (val) = ((unsigned long)__a) | (((unsigned long)__d)<<32); \ } while(0) +#define rdpmc(counter,low,high) \ + __asm__ __volatile__("rdpmc" \ + : "=a" (low), "=d" (high) \ + : "c" (counter)) + +#define rdtscp(lo...
2007 Apr 18
2
[PATCH] x86_64 paravirt_ops port
...__asm__ __volatile__ ("rdtsc" : "=a" (low) : : "edx") -#define rdtscp(low,high,aux) \ - asm volatile (".byte 0x0f,0x01,0xf9" : "=a" (low), "=d" (high), "=c" (aux)) #define rdtscll(val) do { \ unsigned int __a,__d; \ @@ -75,42 +89,49 @@ (val) = ((unsigned long)__a) | (((unsigned long)__d)<<32); \ } while(0) +#define rdpmc(counter,low,high) \ + __asm__ __volatile__("rdpmc" \ + : "=a" (low), "=d" (high) \ + : "c" (counter)) + +#define rdtscp(lo...
2011 Aug 02
6
[PATCH v2 0/4] Support drop directories directly from kinit
This patchset applies to klibc mainline. This patchset introduces the ability to kinit to execute scripts or executable files present in in the initramfs before switching over to the root filesystem. It is implemented by first implementing scandir() and alphasort() as present in POSIX.1-2008 in klibc itself, and then using that as the basis for iterating and executing files via a run_scripts()
2011 Aug 15
0
Problem importing virtual disk
...xen-common/xapi/sm/blktap2.py", line 582, in find found = list(cls.list(**args)) File "/usr/lib/xen-common/xapi/sm/blktap2.py", line 557, in list for row in TapCtl.list(**args): File "/usr/lib/xen-common/xapi/sm/blktap2.py", line 67, in loop return f(*__t, **__d) File "/usr/lib/xen-common/xapi/sm/blktap2.py", line 271, in list return list(cls.__list(**args)) File "/usr/lib/xen-common/xapi/sm/blktap2.py", line 247, in __list key, val = field.split(''='') ValueError: need more than 1 value to unpack ] I haven...
2011 Aug 10
1
[PATCH v2] dirent.h add fdopendir()
...644 --- a/usr/include/dirent.h +++ b/usr/include/dirent.h @@ -23,6 +23,7 @@ struct _IO_dir { typedef struct _IO_dir DIR; __extern DIR *opendir(const char *); +__extern DIR *fdopendir(int); __extern struct dirent *readdir(DIR *); __extern int closedir(DIR *); static __inline__ int dirfd(DIR * __d) diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild index c4f9ae2..48575a5 100644 --- a/usr/klibc/Kbuild +++ b/usr/klibc/Kbuild @@ -42,7 +42,8 @@ klib-y := vsnprintf.o snprintf.o vsprintf.o sprintf.o \ seteuid.o setegid.o \ getenv.o setenv.o putenv.o __put_env.o unsetenv.o \ clearenv.o nu...
2013 Sep 10
0
[LLVMdev] [lld] buildbot configuration on using -fsanitize options
FYI We have an upstream bootstrap bot ( http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-bootstrap) that does a number of things including running llvm/clang tests under ASan/MSan. Probably we can add a couple of steps that would checkout lld and run check-lld in ASan-ified/MSan-ified build trees. On Mon, Sep 9, 2013 at 9:00 AM, Shankar Easwaran <shankare at codeaurora.org>wrote:
2013 Oct 16
0
[LLVMdev] Unable to evaluate clang on linux or windows
On 15/10/13 22:22, C K Kashyap wrote: > Hi, > I'd like to try out the new c++11 features using clang. However, I am > running into some issue or the other on both Windows and Linux. In both > cases, it looks like the problem is due to headers from VC/g++. > I was wondering if someone can point me to some steps on setting up a > Windows or Linux(ubuntu 12.04 LTS) box for