17 lines
303 B
C
17 lines
303 B
C
#ifndef HEADER_AMEMCPY_H
|
|
#define HEADER_AMEMCPY_H
|
|
|
|
#include <ihk/cpu.h>
|
|
|
|
static void memcpy_async_wait(unsigned long *notify)
|
|
{
|
|
while (!*notify) {
|
|
cpu_pause();
|
|
}
|
|
}
|
|
|
|
int memcpy_async(unsigned long dest, unsigned long src,
|
|
unsigned long len, int wait, unsigned long *notify);
|
|
|
|
#endif
|