Rev 72 | Rev 198 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 72 | Rev 195 | ||
---|---|---|---|
Line 39... | Line 39... | ||
39 | * @param src Origin address to copy from. |
39 | * @param src Origin address to copy from. |
40 | * @param dst Origin address to copy to. |
40 | * @param dst Origin address to copy to. |
41 | * @param cnt Number of bytes to copy. |
41 | * @param cnt Number of bytes to copy. |
42 | * |
42 | * |
43 | */ |
43 | */ |
- | 44 | ||
- | 45 | char * _memcopy(void * dst,const void *src, size_t cnt); |
|
44 | void _memcopy(__address src, __address dst, size_t cnt) |
46 | char * _memcopy(void * dst,const void *src, size_t cnt) |
45 | { |
47 | { |
46 | int i; |
48 | int i; |
47 | 49 | ||
48 | for (i=0; i<cnt; i++) |
50 | for (i=0; i<cnt; i++) |
49 | *((__u8 *) (dst + i)) = *((__u8 *) (src + i)); |
51 | *((__u8 *) (dst + i)) = *((__u8 *) (src + i)); |
- | 52 | ||
- | 53 | return (char *)src; |
|
50 | } |
54 | } |
51 | 55 | ||
52 | 56 | ||
53 | /** Fill block of memory |
57 | /** Fill block of memory |
54 | * |
58 | * |