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