Lines Matching full:gp
25 uintptr_t gp_val = reg_read(gp); in rogue_user_fn()
28 /* Make sure that `gp` is as expected */ in rogue_user_fn()
35 /* Corrupt `gp` reg */ in rogue_user_fn()
36 reg_write(gp, 0xbad); in rogue_user_fn()
38 /* Make sure that `gp` is corrupted */ in rogue_user_fn()
40 zassert_equal(reg_read(gp), 0xbad); in rogue_user_fn()
45 /* Sleep to force a context switch, which will sanitize `gp` */ in rogue_user_fn()
48 /* Make sure that `gp` is sane again */ in rogue_user_fn()
60 uintptr_t gp_val = reg_read(gp); in ZTEST_USER()
71 /* Create and run a rogue thread to corrupt the `gp` */ in ZTEST_USER()
76 /* Make sure that `gp` is the same as before a rogue thread was executed */ in ZTEST_USER()
77 zassert_equal(reg_read(gp), gp_val, "`gp` corrupted by user thread"); in ZTEST_USER()