Changeset 7c5a8dd in mainline for kernel/arch/xen32/include/hypercall.h
- Timestamp:
- 2006-08-01T23:34:02Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- adf7f9c
- Parents:
- 5b23a82
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/xen32/include/hypercall.h
r5b23a82 r7c5a8dd 41 41 uint8_t flags; /**< 0-3: privilege level; 4: clear event enable */ 42 42 uint16_t cs; /**< Code selector */ 43 uintptr_t address;/**< Code offset */43 void *address; /**< Code offset */ 44 44 } trap_info_t; 45 46 47 typedef struct { 48 evtchn_t port; 49 } evtchn_send_t; 50 51 typedef struct { 52 uint32_t cmd; 53 union { 54 evtchn_send_t send; 55 }; 56 } evtchn_op_t; 45 57 46 58 … … 49 61 #define XEN_SET_CALLBACKS 4 50 62 #define XEN_UPDATE_VA_MAPPING 14 63 #define XEN_EVENT_CHANNEL_OP 16 51 64 #define XEN_VERSION 17 52 65 #define XEN_CONSOLE_IO 18 … … 79 92 80 93 94 #define EVTCHNOP_SEND 4 95 96 81 97 #define UVMF_NONE 0 /**< No flushing at all */ 82 98 #define UVMF_TLB_FLUSH 1 /**< Flush entire TLB(s) */ … … 227 243 } 228 244 245 static inline int xen_notify_remote(evtchn_t channel) 246 { 247 evtchn_op_t op; 248 249 op.cmd = EVTCHNOP_SEND; 250 op.send.port = channel; 251 return hypercall1(XEN_EVENT_CHANNEL_OP, &op); 252 } 253 229 254 #endif
Note:
See TracChangeset
for help on using the changeset viewer.