__per_cpu_start has a different address on each architecture. Instead,
use a arch-unique symbol for the test.
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
static void _test_ksym(const char *sym, uint64_t addr, void *_) {
if (!strcmp(sym, "startup_64")) {
REQUIRE(addr == 0xffffffff81000000ull);
- } else if (!strcmp(sym, "__per_cpu_start"))
- REQUIRE(addr == 0x0);
+ } else if (!strcmp(sym, "system_reset_pSeries"))
+ REQUIRE(addr == 0xc000000000000100ull);
}
TEST_CASE("list all kernel symbols", "[c_api]") {