You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
424 B
23 lines
424 B
/* Return codes: 1 - ok, 0 - ignore, other - error. */
|
|
static int
|
|
arch_get_scno(struct tcb *tcp)
|
|
{
|
|
unsigned int currpers;
|
|
|
|
#ifdef __tilepro__
|
|
currpers = 1;
|
|
#else
|
|
# ifndef PT_FLAGS_COMPAT
|
|
# define PT_FLAGS_COMPAT 0x10000 /* from Linux 3.8 on */
|
|
# endif
|
|
if (tile_regs.flags & PT_FLAGS_COMPAT)
|
|
currpers = 1;
|
|
else
|
|
currpers = 0;
|
|
#endif
|
|
update_personality(tcp, currpers);
|
|
tcp->scno = tile_regs.regs[10];
|
|
|
|
return 1;
|
|
}
|