forked from parallella/pal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
p_memcpy.c
32 lines (30 loc) · 791 Bytes
/
p_memcpy.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <pal.h>
/*
*
* FUNCTION:
* p_copy(): copies an array of bytes from source to destination
*
* ARGUMENTS:
* dst - complete address destination pointer
* src - complete address source pointer
* nb - number of bytes to copy
* flags - independent flags to assert, separate with '|'
* ASYNC : Makes copy call asynchronous (ie non-blocking)
*
* NOTES:
* 0. User space
* 1. Specific to bsb/device/os
* 2. Should be lightning fast
* 3. Add "safety" compile switch for error checking
* 4. Function should not call any
* 5. Need a different call per chip, board, O/S?
*
*/
#include <stddef.h>
#include "pal_base.h"
#include "pal_base_private.h"
ssize_t p_memcpy(void *dst, const void *src, size_t nb, int flags)
{
/*PLACE CODE HERE*/
return (0);
}