uti: futex: cache remote va to remote pa result

Change-Id: Idbbb3f2981b76a0235615fceaa6281d2c7134ca2
This commit is contained in:
Masamichi Takagi
2021-02-04 09:25:32 +09:00
parent 5d16ce9dcc
commit adc5b7102f
9 changed files with 138 additions and 23 deletions

View File

@@ -40,8 +40,8 @@ void *util_thread(void *arg)
FUTEX_WAKE, 1, NULL, NULL, 0);
if (rc != 1) {
fprintf(stderr,
"CT13101 FUTEX_WAKE NG (%d,%s)\n",
rc, strerror(errno));
"CT13101 FUTEX_WAKE NG (%d,%d)\n",
rc, errno);
}
else {
fprintf(stderr, "CT13101 FUTEX_WAKE OK\n");

View File

@@ -20,11 +20,11 @@
static inline void FIXED_SIZE_WORK(unsigned long *ptr)
{
asm volatile("mov %x0, x20\n"
"add x20, x20, #1\n"
"mov x20, %x0\n"
: "+rm" (*ptr)
:
: "x20", "cc", "memory");
"add x20, x20, #1\n"
"mov x20, %x0\n"
: "+rm" (*ptr)
:
: "x20", "cc", "memory");
}
static inline void BULK_FSW(unsigned long n,