blob: 1ae65c96b258798f0f5cd96b68dd18dac1f3cbab [file] [log] [blame]
Dmitry V. Levind70d1c42015-03-22 22:13:55 +00001unsigned int currpers;
2
3scno = tile_regs.regs[10];
4
5#ifdef __tilepro__
6currpers = 1;
7#else
8# ifndef PT_FLAGS_COMPAT
9# define PT_FLAGS_COMPAT 0x10000 /* from Linux 3.8 on */
10# endif
11if (tile_regs.flags & PT_FLAGS_COMPAT)
12 currpers = 1;
13else
14 currpers = 0;
15#endif
16
17update_personality(tcp, currpers);