ack/plat/osxppc/libsys/set_errno.s
George Koehler f1304e1a3c Use extended mnemonics and ha16/lo16.
Remove wrong comment: that's a right shift, not a left shift.
2018-01-11 20:04:27 -05:00

8 lines
133 B
ArmAsm

.sect .text
.define .set_errno
.set_errno:
lis r4, ha16[_errno]
stw r3, lo16[_errno](r4) ! set errno
li r3, -1 ! return -1
blr