Files
linux/arch/riscv/include/asm
Tong Tiangen 78a743cd82 riscv/vdso: Move vdso data page up front
As commit 601255ae3c ("arm64: vdso: move data page before code pages"), the
same issue exists on riscv, testcase is shown below, make sure that vdso.so is
bigger than page size,

  struct timespec tp;
  clock_gettime(5, &tp);
  printf("tv_sec: %ld, tv_nsec: %ld\n", tp.tv_sec, tp.tv_nsec);

without this patch, test result : tv_sec: 0, tv_nsec: 0
   with this patch, test result : tv_sec: 1629271537, tv_nsec: 748000000

Move the vdso data page in front of the VDSO area to fix the issue.

Fixes: ad5d1122b8 ("riscv: use vDSO common flow to reduce the latency of the time-related functions")
Signed-off-by: Tong Tiangen <tongtiangen@huawei.com>
Reviewed-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
2021-10-02 13:42:25 -07:00
..
2017-09-26 15:26:46 -07:00
2021-01-14 15:09:11 -08:00
2019-11-17 15:17:39 -08:00
2020-03-31 11:28:30 -07:00
2021-07-26 09:27:59 +10:00
2020-10-02 14:31:03 -07:00
2021-03-09 20:46:00 -08:00
2021-02-22 18:44:53 -08:00
2020-05-18 11:38:10 -07:00
2021-05-22 22:05:30 -07:00
2021-06-30 20:55:41 -07:00
2021-02-18 23:18:06 -08:00
2021-07-01 11:06:03 -07:00
2021-05-22 10:19:29 -07:00
2021-01-14 15:09:06 -08:00
2020-06-03 20:09:50 -07:00
2021-07-05 20:53:09 -07:00
2021-04-26 08:25:10 -07:00
2021-01-07 19:00:50 -08:00
2021-03-09 18:18:31 -08:00
2021-10-02 13:42:23 -07:00
2021-01-14 15:09:08 -08:00