mirror of
https://github.com/holub/mame
synced 2025-05-28 16:43:04 +03:00
Fixed credit for byuu and warning in lib/cothread/amd64.c compile (no whatsnew)
This commit is contained in:
parent
b78e135db8
commit
650f483d2d
@ -2,7 +2,7 @@
|
||||
|
||||
cothread.c
|
||||
|
||||
Class wrapper around buyy's cothread library.
|
||||
Class wrapper around byuu's cothread library.
|
||||
|
||||
****************************************************************************
|
||||
|
||||
|
@ -80,7 +80,7 @@ cothread_t co_create(unsigned int size, void (*entrypoint)(void)) {
|
||||
size += 512; /* allocate additional space for storage */
|
||||
size &= ~15; /* align stack to 16-byte boundary */
|
||||
|
||||
if(handle = (cothread_t)malloc(size)) {
|
||||
if((handle = (cothread_t)malloc(size))) {
|
||||
long long *p = (long long*)((char*)handle + size); /* seek to top of stack */
|
||||
*--p = (long long)crash; /* crash if entrypoint returns */
|
||||
*--p = (long long)entrypoint; /* start of function */
|
||||
|
Loading…
Reference in New Issue
Block a user