Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
gs_seg_helpers.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdint.h>
4#include <setjmp.h>
5#include <string.h>
6
8
9#ifdef __clang__
10 #define GS_PTR __attribute__((address_space(256)))
11#else
12 #define GS_PTR __seg_gs
13#endif
14
15//This is really rather unfortunate, but on the upside it does allow a static assert to know if
16//the values ever slide which would be a PIC breaking event we'd want to know about at compile
17//time.
18#define EOS_VM_OC_CONTROL_BLOCK_OFFSET (-18944)
19#define EOS_VM_OC_MEMORY_STRIDE (UINT64_C(8589963264))
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
26sigjmp_buf* eos_vm_oc_get_jmp_buf();
29
30#ifdef __cplusplus
31}
32#endif
sigjmp_buf * eos_vm_oc_get_jmp_buf()
void * eos_vm_oc_get_exception_ptr()
int32_t eos_vm_oc_grow_memory(int32_t grow, int32_t max)
void * eos_vm_oc_get_bounce_buffer_list()
signed int int32_t
Definition stdint.h:123