custom message types for safecopy calls
This commit is contained in:
@@ -358,13 +358,6 @@
|
||||
/* Field names for SYS_INT86 */
|
||||
#define INT86_REG86 m1_p1 /* pointer to registers */
|
||||
|
||||
/* Field names for SYS_SAFECOPY* */
|
||||
#define SCP_FROM_TO m2_i1 /* from/to whom? */
|
||||
#define SCP_GID m2_i3 /* grant id */
|
||||
#define SCP_OFFSET m2_l1 /* offset within grant */
|
||||
#define SCP_ADDRESS m2_p1 /* my own address */
|
||||
#define SCP_BYTES m2_l2 /* bytes from offset */
|
||||
|
||||
/* SYS_SAFEMEMSET */
|
||||
#define SMS_DST m2_i1 /* dst endpoint */
|
||||
#define SMS_GID m2_i3 /* grant id */
|
||||
@@ -372,10 +365,6 @@
|
||||
#define SMS_BYTES m2_l2 /* bytes from offset */
|
||||
#define SMS_PATTERN m2_i2 /* memset() pattern */
|
||||
|
||||
/* Field names for SYS_VSAFECOPY* */
|
||||
#define VSCP_VEC_ADDR m2_p1 /* start of vector */
|
||||
#define VSCP_VEC_SIZE m2_l2 /* elements in vector */
|
||||
|
||||
/* Field names for SYS_SPROF, _CPROF, _PROFBUF. */
|
||||
#define PROF_ACTION m7_i1 /* start/stop/reset/get */
|
||||
#define PROF_MEM_SIZE m7_i2 /* available memory for data */
|
||||
|
||||
@@ -1863,6 +1863,23 @@ typedef struct {
|
||||
} mess_lsys_vm_unmap_phys;
|
||||
_ASSERT_MSG_SIZE(mess_lsys_vm_unmap_phys);
|
||||
|
||||
typedef struct {
|
||||
endpoint_t from_to;
|
||||
cp_grant_id_t gid;
|
||||
size_t offset;
|
||||
void *address;
|
||||
size_t bytes;
|
||||
uint8_t padding[36];
|
||||
} mess_lsys_kern_safecopy;
|
||||
_ASSERT_MSG_SIZE(mess_lsys_kern_safecopy);
|
||||
|
||||
typedef struct {
|
||||
void *vec_addr;
|
||||
int vec_size;
|
||||
uint8_t padding[48];
|
||||
} mess_lsys_kern_vsafecopy;
|
||||
_ASSERT_MSG_SIZE(mess_lsys_kern_vsafecopy);
|
||||
|
||||
typedef struct {
|
||||
endpoint_t m_source; /* who sent the message */
|
||||
int m_type; /* what kind of message is it */
|
||||
@@ -2101,6 +2118,8 @@ typedef struct {
|
||||
mess_lc_vm_brk m_lc_vm_brk;
|
||||
mess_lsys_vm_map_phys m_lsys_vm_map_phys;
|
||||
mess_lsys_vm_unmap_phys m_lsys_vm_unmap_phys;
|
||||
mess_lsys_kern_safecopy m_lsys_kern_safecopy;
|
||||
mess_lsys_kern_vsafecopy m_lsys_kern_vsafecopy;
|
||||
|
||||
mess_vfs_lchardriver_cancel m_vfs_lchardriver_cancel;
|
||||
mess_vfs_lchardriver_openclose m_vfs_lchardriver_openclose;
|
||||
|
||||
Reference in New Issue
Block a user