Changeset aecf79f in mainline for kernel/arch/xen32/include/hypercall.h
- Timestamp:
- 2006-07-24T16:07:15Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c59dd1a2
- Parents:
- 7b0599b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/xen32/include/hypercall.h
r7b0599b raecf79f 31 31 32 32 #include <arch/types.h> 33 #include <macros.h> 34 35 36 #define XEN_CONSOLE_IO 18 37 38 39 /* 40 * Commands for XEN_CONSOLE_IO 41 */ 42 #define CONSOLE_IO_WRITE 0 43 #define CONSOLE_IO_READ 1 44 33 45 34 46 #define hypercall0(id) \ … … 83 95 : "1" (p1), \ 84 96 "2" (p2), \ 85 "3" (p3) ,\97 "3" (p3) \ 86 98 : "memory" \ 87 99 ); \ … … 102 114 "2" (p2), \ 103 115 "3" (p3), \ 104 "4" (p4) ,\116 "4" (p4) \ 105 117 : "memory" \ 106 118 ); \ … … 110 122 #define hypercall5(id, p1, p2, p3, p4, p5) \ 111 123 ({ \ 112 unative_t ret, __ign1, __ign2, __ign3, __ign4, __i ng5; \124 unative_t ret, __ign1, __ign2, __ign3, __ign4, __ign5; \ 113 125 asm volatile ( \ 114 126 "call hypercall_page + (" STRING(id) " * 32)\n" \ … … 123 135 "3" (p3), \ 124 136 "4" (p4), \ 125 "5" (p5) ,\137 "5" (p5) \ 126 138 : "memory" \ 127 139 ); \ … … 130 142 131 143 132 static inline int xen_console_io( int cmd, int count,char *str)144 static inline int xen_console_io(const int cmd, const int count, const char *str) 133 145 { 134 146 return hypercall3(XEN_CONSOLE_IO, cmd, count, str);
Note:
See TracChangeset
for help on using the changeset viewer.