Home | History | Annotate | Download | only in tests

Lines Matching defs:fdesc

61 struct fdesc
66 # define get_fdesc(fdesc,func) (fdesc = *(struct fdesc *) &(func))
67 # define get_funcp(fdesc) ((template_t) &(fdesc))
68 # define get_gp(fdesc) ((fdesc).gp)
70 struct fdesc
76 # define get_fdesc(fdesc,func) ({long tmp = (long) &(func); \
77 (fdesc).code = (long) &(func) & ~0x1; \
78 (fdesc).is_thumb = tmp & 0x1;})
79 /*# define get_fdesc(fdesc,func) ({(fdesc).code = (long) &(func) & ~0x1; \
80 (fdesc).is_thumb = (long) &(func) & 0x1;})*/
81 # define get_funcp(fdesc) ((template_t) ((fdesc).code | (fdesc).is_thumb))
82 # define get_gp(fdesc) (0)
84 struct fdesc
88 # define get_fdesc(fdesc,func) (fdesc.code = (long) &(func))
89 # define get_funcp(fdesc) ((template_t) (fdesc).code)
90 # define get_gp(fdesc) (0)
172 struct fdesc fdesc;
181 get_fdesc (fdesc, template);
184 printf ("old code @ %p, new code @ %p\n", (void *) fdesc.code, mem);
186 memcpy (mem, (void *) fdesc.code, MAX_FUNC_SIZE);
199 _U_dyn_op_alias (&region->op[0], 0, -1, fdesc.code);
205 di.gp = get_gp (fdesc);
213 fdesc.code = (long) mem;
214 funcp = get_funcp (fdesc);