02fb480217
These produce Mach-o executables for Mac OS X on Intel or PowerPC processors. Our code generator for PowerPC (mach/powerpc) still has bugs. Some examples seem to run, but startrek crashes. Our code generator for Intel (mach/i386) is better. There is a problem with job control. If you run paranoia or startrek, then suspend the job (^Z) and resume it ('fg' in bash), then read(2) might fail with EINTR. The larger files in this commit are - plat/osx/cvmach/cvmach.c - plat/osx/libsys/brk.c - plat/osx386/libsys/sigaction.s - plat/osxppc/libsys/sigaction.s
11 lines
162 B
ArmAsm
11 lines
162 B
ArmAsm
.sect .text
|
|
.define _open
|
|
_open:
|
|
addi r0, r0, 5 ! open
|
|
lwz r3, 0(sp) ! path
|
|
lwz r4, 4(sp) ! flags
|
|
lwz r5, 8(sp) ! mode
|
|
sc 0
|
|
b .set_errno
|
|
bclr 20, 0, 0
|