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 expected = 0x8000000100000000ull;
22 mtspr(SPRN_BESCR, expected);
23 val = mfspr(SPRN_BESCR);
25 FAIL_IF(val != expected);
27 expected = 0x0000000001000000ull;
28 mtspr(SPRN_EBBHR, expected);
29 val = mfspr(SPRN_EBBHR);
31 FAIL_IF(val != expected);
38 return test_harness(reg_access, "reg_access");