gmux
0.1.0
Linux on Cloudflare Workers
Loading...
Searching...
No Matches
src
gmux
core
core.h
1
#ifndef CORE_H
2
#define CORE_H
3
4
#include <stddef.h>
5
#include <stdint.h>
6
7
/* the module's ABI version; a file that adds exports bumps it in core.c */
8
#define CORE_ABI 1
9
10
/* what the host calls; the module has no imports but its memory */
11
#define CORE_EXPORT __attribute__((visibility("default"), used))
12
13
/* the machine's memory, which the module shares with the kernel: a pointer
14
* the host hands over is an address in it */
15
#define CORE_WORD(addr) (*(volatile uint64_t*) (uintptr_t) (addr))
16
17
#endif
Generated by
1.15.0