-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try linking the windows wheels against the static C runtime. See #346
Also include updated versions of the two open PRs that attempt to add new platforms. They are untested and unsupported, but fixes #224 and fixes #257
- Loading branch information
Showing
6 changed files
with
97 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#define STACK_REFPLUS 1 | ||
|
||
#ifdef SLP_EVAL | ||
#define STACK_MAGIC 0 | ||
|
||
#define REGS_TO_SAVE "s0", "s1", "s2", "s3", "s4", "s5", \ | ||
"s6", "s7", "s8", "fp", \ | ||
"f24", "f25", "f26", "f27", "f28", "f29", "f30", "f31" | ||
|
||
static int | ||
slp_switch(void) | ||
{ | ||
int ret; | ||
long *stackref, stsizediff; | ||
__asm__ volatile ("" : : : REGS_TO_SAVE); | ||
__asm__ volatile ("move %0, $sp" : "=r" (stackref) : ); | ||
{ | ||
SLP_SAVE_STATE(stackref, stsizediff); | ||
__asm__ volatile ( | ||
"add.d $sp, $sp, %0\n\t" | ||
: /* no outputs */ | ||
: "r" (stsizediff) | ||
); | ||
SLP_RESTORE_STATE(); | ||
} | ||
__asm__ volatile ("" : : : REGS_TO_SAVE); | ||
__asm__ volatile ("move %0, $zero" : "=r" (ret) : ); | ||
return ret; | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters