2 * Copyright 2014, Michael Ellerman, IBM Corp.
3 * Licensed under GPLv2.
13 * Test basic access to the EBB regs, they should be user accessible with no
14 * kernel interaction required.
18 uint64_t val, expected;
20 SKIP_IF(!ebb_is_supported());
22 expected = 0x8000000100000000ull;
23 mtspr(SPRN_BESCR, expected);
24 val = mfspr(SPRN_BESCR);
26 FAIL_IF(val != expected);
28 expected = 0x0000000001000000ull;
29 mtspr(SPRN_EBBHR, expected);
30 val = mfspr(SPRN_EBBHR);
32 FAIL_IF(val != expected);
39 return test_harness(reg_access, "reg_access");