ossrs/state-threads

AppleM1: Support Apple Silicon M1(aarch64).

winlinvip opened this issue · 1 comments

Support Apple M1(aarch64) CPU for MacPro, while the OS is OSX/Darwin.

Instructions

  • BL: Branch with Link branches to a PC-relative offset, setting the register X30 to PC+4. It provides a hint that this is a subroutine call.
  • RET: Return from subroutine, branches unconditionally to an address in a register, with a hint that this is a subroutine return.
  • BR: Branch to register, branches unconditionally to an address in a register, with a hint that this is not a subroutine return.

Note: BL会改变LR(X30)的值为PC+4,也就是函数的返回地址。BR和RET不会改变,返回时调用这个指令。

Links

Fixed.