RTEMS | Add AArch64 Xen support and dependencies (!535)
Kinsey Moore (@opticron)
gitlab at rtems.org
Wed Jun 25 23:01:36 UTC 2025
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250625/d1891d63/attachment-0001.htm>
More information about the bugs
mailing list