tm.h (9095bf25ea08135a5b74875dd0e3eeaddc4218a0) tm.h (77fad8bfb1d2f8225b05e4ea34457875fcfae37e)
1/*
2 * Copyright 2015, Michael Ellerman, IBM Corp.
3 * Licensed under GPLv2.
4 */
5
6#ifndef _SELFTESTS_POWERPC_TM_TM_H
7#define _SELFTESTS_POWERPC_TM_TM_H
8

--- 33 unchanged lines hidden (view full) ---

42 return (failure_code() & TM_CAUSE_PERSISTENT) == TM_CAUSE_PERSISTENT;
43}
44
45static inline bool failure_is_syscall(void)
46{
47 return (failure_code() & TM_CAUSE_SYSCALL) == TM_CAUSE_SYSCALL;
48}
49
1/*
2 * Copyright 2015, Michael Ellerman, IBM Corp.
3 * Licensed under GPLv2.
4 */
5
6#ifndef _SELFTESTS_POWERPC_TM_TM_H
7#define _SELFTESTS_POWERPC_TM_TM_H
8

--- 33 unchanged lines hidden (view full) ---

42 return (failure_code() & TM_CAUSE_PERSISTENT) == TM_CAUSE_PERSISTENT;
43}
44
45static inline bool failure_is_syscall(void)
46{
47 return (failure_code() & TM_CAUSE_SYSCALL) == TM_CAUSE_SYSCALL;
48}
49
50static inline bool failure_is_unavailable(void)
51{
52 return (failure_code() & TM_CAUSE_FAC_UNAV) == TM_CAUSE_FAC_UNAV;
53}
54
50static inline bool failure_is_nesting(void)
51{
52 return (__builtin_get_texasru() & 0x400000);
53}
54
55static inline int tcheck(void)
56{
57 long cr;

--- 25 unchanged lines hidden ---
55static inline bool failure_is_nesting(void)
56{
57 return (__builtin_get_texasru() & 0x400000);
58}
59
60static inline int tcheck(void)
61{
62 long cr;

--- 25 unchanged lines hidden ---