bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gnumach: locore.S copyin vs. copyinmsg


From: Samuel Thibault
Subject: Re: Gnumach: locore.S copyin vs. copyinmsg
Date: Fri, 10 Nov 2006 16:07:09 +0100
User-agent: Mutt/1.5.11

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]