search for: __res

Displaying 20 results from an estimated 104 matches for "__res".

2006 Jun 07
0
[patch] s390: fix mmap complilation
...0/mmap.c @@ -1,3 +1,4 @@ +#include <errno.h> #include <sys/types.h> #include <linux/unistd.h> @@ -32,7 +33,7 @@ void *__mmap2(void *addr, size_t len, in : "i"(__NR_mmap2), "0"(__arg1) : "1", "cc", "memory"); __res = __svcres; - if (__res >= (unsigned long)-125) { + if (__res >= (unsigned long)-4095) { errno = -__res; __res = -1; } @@ -64,7 +65,7 @@ void * mmap(void * addr, size_t len, int "0" (__arg1) : "1", "cc", "memory"); __res = __svcres; -...
2006 Jun 26
0
[klibc 37/43] x86_64 support for klibc
..._KLIBC_ARCHSYS_H +#define _KLIBC_ARCHSYS_H + +/* The x86-64 syscall headers are needlessly inefficient */ + +#undef _syscall0 +#undef _syscall1 +#undef _syscall2 +#undef _syscall3 +#undef _syscall4 +#undef _syscall5 +#undef _syscall6 + +#define _syscall0(type,name) \ +type name (void) \ +{ \ +long __res; \ +__asm__ volatile (__syscall \ + : "=a" (__res) \ + : "0" (__NR_##name) \ + : __syscall_clobber); \ +__syscall_return(type,__res); \ +} + +#define _syscall1(type,name,type1,arg1) \ +type name (type1 arg1) \ +{ \ +long __res; \ +__asm__ volatile (__syscall...
2006 Jun 26
0
[klibc 33/43] s390 support for klibc
...\ + (unsigned long) arg1, \ + (unsigned long) arg2, \ + (unsigned long) arg3, \ + (unsigned long) arg4, \ + (unsigned long) arg5, \ + (unsigned long) arg6 \ + }; \ + register void *__argp asm("2") = &__arg; \ + long __res; \ + __asm__ __volatile__ ( \ + " svc %b1\n" \ + " la %0,2" \ + : "=d" (__res) \ +...
2007 Sep 24
4
testing hypercall from windows - what''s the most basic call I can make to test
I''m tinkering with some code to be able to talk to the hypervisor from Windows, with the ultimate aim to get a usable xenbus. So far I''ve created a driver for the Xen PCI ''device'', and (hopefully) mapped the hypercall space given by the CPUID call... What is the simplest hypercall I can make to get an answer from the hypervisor to tell me that it''s
2004 Jan 24
2
mmap and getpagesize
...ng from calls INT 113 directly. It would probably be cleaner to do this through a library call that automatically called the x86 emulator on other architectures. I'm able to compile with klibc now. Next I need to make sure everything works. static int vm86_rep(struct vm86_struct *ptr) { int __res; __asm__ __volatile__("int $0x80\n":"=a"(__res):"a"((int) 113), "b"((struct vm86_struct *) ptr)); if ((__res) < 0) { errno = -__res; __res = -1; } else errno = 0; return __res; } ===== Jon Smirl jonsmirl@yahoo.com ___________________________...
2006 May 11
0
[patch] klibc: merge s390 and s390x
...include/arch/s390/klibc/archsys.h b/usr/include/arch/s390/klibc/archsys.h --- a/usr/include/arch/s390/klibc/archsys.h 2006-05-11 08:09:08.000000000 +0200 +++ b/usr/include/arch/s390/klibc/archsys.h 2006-05-11 08:10:07.000000000 +0200 @@ -28,7 +28,7 @@ type name(type1 arg1, type2 arg2, type3 long __res; \ __asm__ __volatile__ ( \ " svc %b1\n" \ - " lr %0,2" \ + " la %0,2" \...
2006 May 24
1
[patch] klibc: merge s390/s390x 2nd try
...include/arch/s390/klibc/archsys.h b/usr/include/arch/s390/klibc/archsys.h --- a/usr/include/arch/s390/klibc/archsys.h 2006-05-24 15:19:12.000000000 +0200 +++ b/usr/include/arch/s390/klibc/archsys.h 2006-05-24 13:02:18.000000000 +0200 @@ -28,7 +28,7 @@ type name(type1 arg1, type2 arg2, type3 long __res; \ __asm__ __volatile__ ( \ " svc %b1\n" \ - " lr %0,2" \ + " la %0,2" \...
2006 Apr 13
0
RE: hypercall_page
...e going to be called when a > HYPERVISOR_xxx is called? > > For instance, when the following asm code is to be executed: > > define _hypercall3(type, sched_op, a1, a2, a3) \ > ({ \ > long __res, __ign1, __ign2, __ign3; \ > asm volatile ( \ > "call hypercall_page + ("STR(__HYPERVISOR_##name)" * > 32)"\ : "=a" (__res), "=b" (__ign1), "=c&...
2013 Dec 10
5
hypercall implementation
I am learning xen's memory management recently. I find most docs is how to use the hypercall related memory management. Can somesome tell me where is the implementation of the them in the xen source. Or some docs explaining it will be ideal. 年少不惧江湖老,放歌四海任逍遥。未解前路多少事,欲与青天试比高。 _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org
2008 May 19
20
[PATCH 00/23] ia64/xen domU take 6
Hi. This patchset implements ia64/xen domU support based on ia64/pv_ops frame work which was sent as another patchest. Changes from take 5 are rebased to Linux 2.6.26-rc3, bug fix ivt.S paravirtualization and multi entry point support. I believe these patches can be applied to the linux ia64 repository. This patchset does the followings. - Some preparation work. Mainly importing header files to
2008 May 19
20
[PATCH 00/23] ia64/xen domU take 6
Hi. This patchset implements ia64/xen domU support based on ia64/pv_ops frame work which was sent as another patchest. Changes from take 5 are rebased to Linux 2.6.26-rc3, bug fix ivt.S paravirtualization and multi entry point support. I believe these patches can be applied to the linux ia64 repository. This patchset does the followings. - Some preparation work. Mainly importing header files to
2013 Jul 31
29
[PATCH 0/9] tools: remove or disable old/useless/unused/unmainted stuff
depends on "autoconf: regenerate configure scripts with 4.4 version" This series removes some of the really old deadwood from the tools build and makes some other things which are on their way out configurable at build time with a default depending on how far down the slope I judge them to be. * nuke in tree copy of libaio * nuke obsolete tools: xsview, miniterm, lomount & sv *
2023 Nov 03
0
9.3p1 Daemon Rejects Client Connections on armv7l-dey-linux-gnueabihf w/ GCC 10/11/12
...cancellation point and therefore not marked with __THROW. */ extern int nanosleep (const struct timespec *__requested_time, struct timespec *__remaining); /* Get resolution of clock CLOCK_ID. */ extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __THROW; /* Get current value of clock CLOCK_ID and store it in TP. */ extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __THROW __nonnull((2)); /* Set clock CLOCK_ID to value TP. */ extern int clock_settime (clockid_t __clock_id, const struct time...
2008 Apr 30
23
[PATCH 00/23] ia64/xen domU take 5
Hi. This patchset implements ia64/xen domU support based on ia64/pv_ops frame work which was sent as another patchest. This patchset does the followings. - Some preparation work. Mainly importing header files to define related structures. - Then, define functions related to hypercall which is the way to communicate with Xen hypervisor. - Add some helper functions which is necessary to
2008 Apr 30
23
[PATCH 00/23] ia64/xen domU take 5
Hi. This patchset implements ia64/xen domU support based on ia64/pv_ops frame work which was sent as another patchest. This patchset does the followings. - Some preparation work. Mainly importing header files to define related structures. - Then, define functions related to hypercall which is the way to communicate with Xen hypervisor. - Add some helper functions which is necessary to
2008 Apr 09
24
[PATCH 00/23] ia64/xen domU take 4
Hi. This patchset implements ia64/xen domU support based on ia64/pv_ops frame work which was sent as another patchest. Please review and comments. This patchset does the followings. - Some preparation work. Mainly importing header files to define related structures. - Then, define functions related to hypercall which is the way to communicate with Xen hypervisor. - Add some helper functions
2008 Apr 09
24
[PATCH 00/23] ia64/xen domU take 4
Hi. This patchset implements ia64/xen domU support based on ia64/pv_ops frame work which was sent as another patchest. Please review and comments. This patchset does the followings. - Some preparation work. Mainly importing header files to define related structures. - Then, define functions related to hypercall which is the way to communicate with Xen hypervisor. - Add some helper functions
2008 Jun 10
31
[PATCH 00/27] ia64/xen domU take 7
Hi. This patchset implements ia64/xen domU support based on ia64/pv_ops frame work which was already merged to linux ia64 test branch. This patch is for linux ia64 test branch. This patchset does the followings. - Some preparation work. Mainly importing header files to define related structures. - Then, define functions related to hypercall which is the way to communicate with Xen hypervisor.
2008 Jun 10
31
[PATCH 00/27] ia64/xen domU take 7
Hi. This patchset implements ia64/xen domU support based on ia64/pv_ops frame work which was already merged to linux ia64 test branch. This patch is for linux ia64 test branch. This patchset does the followings. - Some preparation work. Mainly importing header files to define related structures. - Then, define functions related to hypercall which is the way to communicate with Xen hypervisor.
2008 Jul 03
29
[PATCH 00/29] ia64/xen domU take 8
Hi. This patchset is ia64/xen domU patch take 8 which was updated following Tony's review. (Thank you very much, Tony.) This patchset implements ia64/xen domU support based on ia64/pv_ops frame work which was sent as another patchest. This patchset is for linux ia64 test branch and depends on some patches for xen common part I'll send separately. To compile, the changesets in x86/xen