Created
January 25, 2018 14:35
-
-
Save puppykitten/4bec1afa503e1d86cc5e3b1cb1b50138 to your computer and use it in GitHub Desktop.
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
int mc_fc_nsiq(void) | |
{ | |
union mc_fc_generic fc; | |
int ret; | |
memset(&fc, 0, sizeof(fc)); | |
fc.as_in.cmd = MC_SMC_N_SIQ; | |
mc_fastcall(&fc); | |
ret = convert_fc_ret(fc.as_out.ret); | |
if (ret) | |
mc_dev_err("failed: %d\n", ret); | |
return ret; | |
} | |
int mc_fc_yield(void) | |
{ | |
union mc_fc_generic fc; | |
int ret; | |
memset(&fc, 0, sizeof(fc)); | |
fc.as_in.cmd = MC_SMC_N_YIELD; | |
mc_fastcall(&fc); | |
ret = convert_fc_ret(fc.as_out.ret); | |
if (ret) | |
mc_dev_err("failed: %d\n", ret); | |
return ret; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment