Lines Matching refs:c

29 common_init (struct cursor *c, unw_word_t sp, unw_word_t bsp)  in common_init()  argument
34 if (c->as->caching_policy != UNW_CACHE_NONE) in common_init()
36 ia64_validate_cache (c->as, c->as_arg); in common_init()
38 c->cfm_loc = IA64_REG_LOC (c, UNW_IA64_CFM); in common_init()
39 c->loc[IA64_REG_BSP] = IA64_NULL_LOC; in common_init()
40 c->loc[IA64_REG_BSPSTORE] = IA64_REG_LOC (c, UNW_IA64_AR_BSPSTORE); in common_init()
41 c->loc[IA64_REG_PFS] = IA64_REG_LOC (c, UNW_IA64_AR_PFS); in common_init()
42 c->loc[IA64_REG_RNAT] = IA64_REG_LOC (c, UNW_IA64_AR_RNAT); in common_init()
43 c->loc[IA64_REG_IP] = IA64_REG_LOC (c, UNW_IA64_IP); in common_init()
44 c->loc[IA64_REG_PRI_UNAT_MEM] = IA64_NULL_LOC; /* no primary UNaT location */ in common_init()
45 c->loc[IA64_REG_UNAT] = IA64_REG_LOC (c, UNW_IA64_AR_UNAT); in common_init()
46 c->loc[IA64_REG_PR] = IA64_REG_LOC (c, UNW_IA64_PR); in common_init()
47 c->loc[IA64_REG_LC] = IA64_REG_LOC (c, UNW_IA64_AR_LC); in common_init()
48 c->loc[IA64_REG_FPSR] = IA64_REG_LOC (c, UNW_IA64_AR_FPSR); in common_init()
50 c->loc[IA64_REG_R4] = IA64_REG_LOC (c, UNW_IA64_GR + 4); in common_init()
51 c->loc[IA64_REG_R5] = IA64_REG_LOC (c, UNW_IA64_GR + 5); in common_init()
52 c->loc[IA64_REG_R6] = IA64_REG_LOC (c, UNW_IA64_GR + 6); in common_init()
53 c->loc[IA64_REG_R7] = IA64_REG_LOC (c, UNW_IA64_GR + 7); in common_init()
55 c->loc[IA64_REG_NAT4] = IA64_REG_NAT_LOC (c, UNW_IA64_NAT + 4, &c->nat_bitnr[0]); in common_init()
56 c->loc[IA64_REG_NAT5] = IA64_REG_NAT_LOC (c, UNW_IA64_NAT + 5, &c->nat_bitnr[1]); in common_init()
57 c->loc[IA64_REG_NAT6] = IA64_REG_NAT_LOC (c, UNW_IA64_NAT + 6, &c->nat_bitnr[2]); in common_init()
58 c->loc[IA64_REG_NAT7] = IA64_REG_NAT_LOC (c, UNW_IA64_NAT + 7, &c->nat_bitnr[3]); in common_init()
60 c->loc[IA64_REG_B1] = IA64_REG_LOC (c, UNW_IA64_BR + 1); in common_init()
61 c->loc[IA64_REG_B2] = IA64_REG_LOC (c, UNW_IA64_BR + 2); in common_init()
62 c->loc[IA64_REG_B3] = IA64_REG_LOC (c, UNW_IA64_BR + 3); in common_init()
63 c->loc[IA64_REG_B4] = IA64_REG_LOC (c, UNW_IA64_BR + 4); in common_init()
64 c->loc[IA64_REG_B5] = IA64_REG_LOC (c, UNW_IA64_BR + 5); in common_init()
66 c->loc[IA64_REG_F2] = IA64_FPREG_LOC (c, UNW_IA64_FR + 2); in common_init()
67 c->loc[IA64_REG_F3] = IA64_FPREG_LOC (c, UNW_IA64_FR + 3); in common_init()
68 c->loc[IA64_REG_F4] = IA64_FPREG_LOC (c, UNW_IA64_FR + 4); in common_init()
69 c->loc[IA64_REG_F5] = IA64_FPREG_LOC (c, UNW_IA64_FR + 5); in common_init()
70 c->loc[IA64_REG_F16] = IA64_FPREG_LOC (c, UNW_IA64_FR + 16); in common_init()
71 c->loc[IA64_REG_F17] = IA64_FPREG_LOC (c, UNW_IA64_FR + 17); in common_init()
72 c->loc[IA64_REG_F18] = IA64_FPREG_LOC (c, UNW_IA64_FR + 18); in common_init()
73 c->loc[IA64_REG_F19] = IA64_FPREG_LOC (c, UNW_IA64_FR + 19); in common_init()
74 c->loc[IA64_REG_F20] = IA64_FPREG_LOC (c, UNW_IA64_FR + 20); in common_init()
75 c->loc[IA64_REG_F21] = IA64_FPREG_LOC (c, UNW_IA64_FR + 21); in common_init()
76 c->loc[IA64_REG_F22] = IA64_FPREG_LOC (c, UNW_IA64_FR + 22); in common_init()
77 c->loc[IA64_REG_F23] = IA64_FPREG_LOC (c, UNW_IA64_FR + 23); in common_init()
78 c->loc[IA64_REG_F24] = IA64_FPREG_LOC (c, UNW_IA64_FR + 24); in common_init()
79 c->loc[IA64_REG_F25] = IA64_FPREG_LOC (c, UNW_IA64_FR + 25); in common_init()
80 c->loc[IA64_REG_F26] = IA64_FPREG_LOC (c, UNW_IA64_FR + 26); in common_init()
81 c->loc[IA64_REG_F27] = IA64_FPREG_LOC (c, UNW_IA64_FR + 27); in common_init()
82 c->loc[IA64_REG_F28] = IA64_FPREG_LOC (c, UNW_IA64_FR + 28); in common_init()
83 c->loc[IA64_REG_F29] = IA64_FPREG_LOC (c, UNW_IA64_FR + 29); in common_init()
84 c->loc[IA64_REG_F30] = IA64_FPREG_LOC (c, UNW_IA64_FR + 30); in common_init()
85 c->loc[IA64_REG_F31] = IA64_FPREG_LOC (c, UNW_IA64_FR + 31); in common_init()
87 ret = ia64_get (c, c->loc[IA64_REG_IP], &c->ip); in common_init()
91 ret = ia64_get (c, c->cfm_loc, &c->cfm); in common_init()
95 ret = ia64_get (c, c->loc[IA64_REG_PR], &c->pr); in common_init()
99 c->sp = c->psp = sp; in common_init()
100 c->bsp = bsp; in common_init()
102 ret = ia64_get (c, c->loc[IA64_REG_BSPSTORE], &bspstore); in common_init()
106 c->rbs_curr = c->rbs_left_edge = 0; in common_init()
111 if ((ret = rbs_get_base (c, bspstore, &rbs_base)) < 0) in common_init()
114 c->rbs_area[0].end = bspstore; in common_init()
115 c->rbs_area[0].size = bspstore - rbs_base; in common_init()
116 c->rbs_area[0].rnat_loc = IA64_REG_LOC (c, UNW_IA64_AR_RNAT); in common_init()
118 (long long) rbs_base, (long long) c->rbs_area[0].end, in common_init()
119 ia64_strloc (c->rbs_area[0].rnat_loc)); in common_init()
121 c->pi.flags = 0; in common_init()
123 c->sigcontext_addr = 0; in common_init()
124 c->abi_marker = 0; in common_init()
125 c->last_abi_marker = 0; in common_init()
127 c->hint = 0; in common_init()
128 c->prev_script = 0; in common_init()
129 c->eh_valid_mask = 0; in common_init()
130 c->pi_valid = 0; in common_init()