Kinsey Moore commented on a discussion on cpukit/score/cpu/aarch64/aarch64-exception-default.S: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/535#note_125373 > +#define JUMP_REG(reg_num) x##reg_num > +#endif > + > .macro JUMP_HANDLER > -/* Mask to use in BIC, lower 7 bits */ > - mov x0, #0x7f > -/* LR contains PC, mask off to the base of the current vector */ > - bic x0, lr, x0 > -/* Load address from the last word in the vector */ > - ldr x0, [x0, #0x78] > +/* x0 holds the address of the variable that holds the jump target */ > + ldr JUMP_REG(0), [x0] > /* > * Branch and link to the address in x0. There is no reason to save the > current > - * LR since it has already been saved and the current contents are junk. > + * LR since it has already been saved. I was copying the existing style in the code which was likely my fault in the first place. I'm happy to restyle it if need be, but the formatter has not flagged it. -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/535#note_125373 You're receiving this email because of your account on gitlab.rtems.org.
_______________________________________________ bugs mailing list bugs@rtems.org http://lists.rtems.org/mailman/listinfo/bugs