mirror of
https://github.com/daeken/Zookeeper.git
synced 2025-04-02 10:52:54 -04:00
12 lines
257 B
C++
12 lines
257 B
C++
#pragma once
|
|
|
|
typedef void (*thread_ep_t)(uint32_t, uint32_t);
|
|
|
|
static inline uint32_t vmcall(const int call, volatile const uint32_t addr) {
|
|
uint32_t output;
|
|
__asm__ volatile(
|
|
"vmcall\n"
|
|
: "=a"(output) : "a"(call), "d"(addr) :
|
|
);
|
|
return output;
|
|
}
|