| 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 |
| r12053 | r12054 | |
|---|---|---|
| 69 | 69 | size += 256; /* allocate additional space for storage */ |
| 70 | 70 | size &= ~15; /* align stack to 16-byte boundary */ |
| 71 | 71 | |
| 72 | if(handle = (cothread_t)malloc(size)) { | |
| 72 | if((handle = (cothread_t)malloc(size))) { | |
| 73 | 73 | long *p = (long*)((char*)handle + size); /* seek to top of stack */ |
| 74 | 74 | *--p = (long)crash; /* crash if entrypoint returns */ |
| 75 | 75 | *--p = (long)entrypoint; /* start of function */ |
| r12053 | r12054 | |
|---|---|---|
| 210 | 210 | |
| 211 | 211 | $(LIBOBJ)/cothread/%.o: $(LIBSRC)/cothread/%.c | $(OSPREBUILD) |
| 212 | 212 | @echo Compiling $<... |
| 213 | $(CC) -c -fomit-frame-pointer $< -o $@ | |
| 213 | $(CC) $(CDEFS) $(CCOMFLAGS) -c -fomit-frame-pointer $< -o $@ |
| Previous | 15994 Revisions | Next |