selftests/sgx: Use getauxval() to simplify test code
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>
Sun, 14 Mar 2021 11:16:21 +0000 (19:16 +0800)
committerBorislav Petkov <bp@suse.de>
Wed, 24 Mar 2021 09:59:09 +0000 (10:59 +0100)
commitf33dece70e11ce82a09cb1ea2d7c32347b82c67e
tree7092f2e6ff65b2b5a4f292526d5d1714c0fb86a1
parent4284f7acb78bfb0e0c26a2b78e2b2c3d68fccd6f
selftests/sgx: Use getauxval() to simplify test code

Use the library function getauxval() instead of a custom function to get
the base address of the vDSO.

 [ bp: Massage commit message. ]

Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lkml.kernel.org/r/20210314111621.68428-1-tianjia.zhang@linux.alibaba.com
tools/testing/selftests/sgx/main.c