diff options
author | Dave Watson <davejwatson@fb.com> | 2018-04-10 10:55:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-10 10:55:45 -0700 |
commit | 729772149fcd72379e8118361c43e4632ffa3f01 (patch) | |
tree | d6c3020d8d8253a723965f2da77e3dd4a7b59e32 /src/aarch64 | |
parent | b5cbcaee13233ddbc2e6a3fffe85374031f51000 (diff) | |
download | libunwind-729772149fcd72379e8118361c43e4632ffa3f01.tar.gz |
aarch64: tune down size of unw_context_t and unw_cursor_t (#71)
aarch64 defines a huge __reserved field in sigcontext. Cut it down
to only the used FP fields.
unw_cursor_t can also be cut down a bit, while still maintaining some reserved space.
Diffstat (limited to 'src/aarch64')
-rw-r--r-- | src/aarch64/Ginit.c | 8 | ||||
-rw-r--r-- | src/aarch64/Ginit_local.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/aarch64/Ginit.c b/src/aarch64/Ginit.c index 9c4eae82..dec235c8 100644 --- a/src/aarch64/Ginit.c +++ b/src/aarch64/Ginit.c @@ -41,7 +41,7 @@ static struct unw_addr_space local_addr_space; unw_addr_space_t unw_local_addr_space = &local_addr_space; static inline void * -uc_addr (ucontext_t *uc, int reg) +uc_addr (unw_tdep_context_t *uc, int reg) { if (reg >= UNW_AARCH64_X0 && reg < UNW_AARCH64_V0) return &uc->uc_mcontext.regs[reg]; @@ -54,7 +54,7 @@ uc_addr (ucontext_t *uc, int reg) # ifdef UNW_LOCAL_ONLY HIDDEN void * -tdep_uc_addr (ucontext_t *uc, int reg) +tdep_uc_addr (unw_tdep_context_t *uc, int reg) { return uc_addr (uc, reg); } @@ -104,7 +104,7 @@ access_reg (unw_addr_space_t as, unw_regnum_t reg, unw_word_t *val, int write, void *arg) { unw_word_t *addr; - ucontext_t *uc = arg; + unw_tdep_context_t *uc = arg; if (unw_is_fpreg (reg)) goto badreg; @@ -133,7 +133,7 @@ static int access_fpreg (unw_addr_space_t as, unw_regnum_t reg, unw_fpreg_t *val, int write, void *arg) { - ucontext_t *uc = arg; + unw_tdep_context_t *uc = arg; unw_fpreg_t *addr; if (!unw_is_fpreg (reg)) diff --git a/src/aarch64/Ginit_local.c b/src/aarch64/Ginit_local.c index cd60ca84..69d4ed38 100644 --- a/src/aarch64/Ginit_local.c +++ b/src/aarch64/Ginit_local.c @@ -59,7 +59,7 @@ unw_init_local (unw_cursor_t *cursor, unw_context_t *uc) } int -unw_init_local2 (unw_cursor_t *cursor, ucontext_t *uc, int flag) +unw_init_local2 (unw_cursor_t *cursor, unw_tdep_context_t *uc, int flag) { if (!flag) { |