Previous 15994 Revisions Next

r12054 Saturday 25th June, 2011 at 15:20:36 UTC by Wilbert Pol
Fix link & compile for osx (nw)
[src/lib]lib.mak
[src/lib/cothread]x86.c

src/lib/cothread/x86.c
r12053r12054
6969  size += 256; /* allocate additional space for storage */
7070  size &= ~15; /* align stack to 16-byte boundary */
7171
72  if(handle = (cothread_t)malloc(size)) {
72  if((handle = (cothread_t)malloc(size))) {
7373    long *p = (long*)((char*)handle + size); /* seek to top of stack */
7474    *--p = (long)crash;                      /* crash if entrypoint returns */
7575    *--p = (long)entrypoint;                 /* start of function */
src/lib/lib.mak
r12053r12054
210210
211211$(LIBOBJ)/cothread/%.o: $(LIBSRC)/cothread/%.c | $(OSPREBUILD)
212212   @echo Compiling $<...
213   $(CC) -c -fomit-frame-pointer $< -o $@
213   $(CC) $(CDEFS) $(CCOMFLAGS) -c -fomit-frame-pointer $< -o $@

Previous 15994 Revisions Next


© 1998-2018 The MESS Team