mirror of
https://github.com/AsahiLinux/m1n1
synced 2025-02-16 13:48:29 +00:00
proxy: Export smp_set_wfe_mode
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
a2944fa123
commit
adb1cb943e
3 changed files with 7 additions and 0 deletions
|
@ -530,6 +530,7 @@ class M1N1Proxy(Reloadable):
|
|||
P_SMP_CALL = 0x501
|
||||
P_SMP_CALL_SYNC = 0x502
|
||||
P_SMP_WAIT = 0x503
|
||||
P_SMP_SET_WFE_MODE = 0x504
|
||||
|
||||
P_HEAPBLOCK_ALLOC = 0x600
|
||||
P_MALLOC = 0x601
|
||||
|
@ -905,6 +906,8 @@ class M1N1Proxy(Reloadable):
|
|||
return self.request(self.P_SMP_CALL_SYNC, cpu, addr, *args)
|
||||
def smp_wait(self, cpu):
|
||||
return self.request(self.P_SMP_WAIT, cpu)
|
||||
def smp_set_wfe_mode(self, mode):
|
||||
return self.request(self.P_SMP_SET_WFE_MODE, mode)
|
||||
|
||||
def heapblock_alloc(self, size):
|
||||
return self.request(self.P_HEAPBLOCK_ALLOC, size)
|
||||
|
|
|
@ -334,6 +334,9 @@ int proxy_process(ProxyRequest *request, ProxyReply *reply)
|
|||
case P_SMP_WAIT:
|
||||
reply->retval = smp_wait(request->args[0]);
|
||||
break;
|
||||
case P_SMP_SET_WFE_MODE:
|
||||
smp_set_wfe_mode(request->args[0]);
|
||||
break;
|
||||
|
||||
case P_HEAPBLOCK_ALLOC:
|
||||
reply->retval = (u64)heapblock_alloc(request->args[0]);
|
||||
|
|
|
@ -82,6 +82,7 @@ typedef enum {
|
|||
P_SMP_CALL,
|
||||
P_SMP_CALL_SYNC,
|
||||
P_SMP_WAIT,
|
||||
P_SMP_SET_WFE_MODE,
|
||||
|
||||
P_HEAPBLOCK_ALLOC = 0x600, // Heap and memory management ops
|
||||
P_MALLOC,
|
||||
|
|
Loading…
Add table
Reference in a new issue