2 * Copyright 2014, Michael Ellerman, IBM Corp.
3 * Licensed under GPLv2.
14 * Test basic access to the EBB regs, they should be user accessible with no
15 * kernel interaction required.
19 uint64_t val, expected;
21 SKIP_IF(!ebb_is_supported());
23 expected = 0x8000000100000000ull;
24 mtspr(SPRN_BESCR, expected);
25 val = mfspr(SPRN_BESCR);
27 FAIL_IF(val != expected);
29 expected = 0x0000000001000000ull;
30 mtspr(SPRN_EBBHR, expected);
31 val = mfspr(SPRN_EBBHR);
33 FAIL_IF(val != expected);
40 return test_harness(reg_access, "reg_access");