Hi,

Barry deFreese, le Fri 10 Nov 2006 09:58:20 -0500, a écrit :
> From my extremely limited knowledge of assembler, copyin and          
> copyinmsg look to be exactly the same.                                

They are not the same when using gprof: see asm.h, in that case ENTRY
does a bit more stuff.

Moreover, when looking at the calls to copyin, copyinmsg, copyout and
copyoutmsg, it looks like the prototypes should respectively be

int copyin(const void *from, void *to, size_t size);
int copyinmsg(vm_offset_t from, vm_offset_t to, size_t size);
int copyout(const void *from, void *to, size_t size);
int copyoutmsg(vm_offset_t from, vm_offset_t to, size_t size);

May somebody more experienced with these functions confirm this?

(and btw you may drop the explicit casts in a lot of cases).

Samuel


_______________________________________________
Bug-hurd mailing list
Bug-hurd@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-hurd

Reply via email to