/[rtmk]/rtmk/ipc-kmsg.c
ViewVC logotype

Diff of /rtmk/ipc-kmsg.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by jrydberg, Mon Dec 17 22:02:16 2001 UTC revision 1.5 by jrydberg, Thu Jan 3 01:32:43 2002 UTC
# Line 237  copyin_body (struct task *task, struct i Line 237  copyin_body (struct task *task, struct i
237            /* Store pointer to port structure in place for port name.  */            /* Store pointer to port structure in place for port name.  */
238    
239            *(struct ipc_port **) (type + 1) = port;            *(struct ipc_port **) (type + 1) = port;
240            start = start + sizeof *type + (vm_offset_t) (type->msgt_length/8);            start = start + sizeof *type + (vm_offset_t) (type->msgt_length);
241          }          }
242                
243        /* Out-of-line memory.  ??? not supported yet, just skip it.  */        /* Out-of-line memory.  ??? not supported yet, just skip it.  */
# Line 251  copyin_body (struct task *task, struct i Line 251  copyin_body (struct task *task, struct i
251        /* For normal inline memory we just step over the chunk.   */        /* For normal inline memory we just step over the chunk.   */
252    
253        else        else
254          start = start + sizeof *type + (type->msgt_length/8);          start = start + sizeof *type + (type->msgt_length);
255    
256        /* Start of message type structure should always be word aligned.  */        /* Start of message type structure should always be word aligned.  */
257    
# Line 302  copyout_body (struct task *task, struct Line 302  copyout_body (struct task *task, struct
302            /* Store pointer to port structure in place for port name.  */            /* Store pointer to port structure in place for port name.  */
303    
304            *(rtmk_port_t *) (type + 1) = port_name;            *(rtmk_port_t *) (type + 1) = port_name;
305            start = start + sizeof *type + (vm_offset_t) (type->msgt_length/8);            start = start + sizeof *type + (vm_offset_t) (type->msgt_length);
306          }          }
307                
308        /* Out-of-line memory.  ??? not supported yet, just skip it.  */        /* Out-of-line memory.  ??? not supported yet, just skip it.  */
# Line 316  copyout_body (struct task *task, struct Line 316  copyout_body (struct task *task, struct
316        /* For normal inline memory we just step over the chunk.   */        /* For normal inline memory we just step over the chunk.   */
317    
318        else        else
319          start = start + sizeof *type + (type->msgt_length/8);          start = start + sizeof *type + (type->msgt_length);
320    
321        /* Start of message type structure should always be word aligned.  */        /* Start of message type structure should always be word aligned.  */
322    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26