You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
587 B

#ifndef SFRT_RUNTIME_H
#define SFRT_RUNTIME_H
#include <sys/epoll.h> /* for epoll_create1(), epoll_ctl(), struct epoll_event */
#include "types.h"
extern int runtime_epoll_file_descriptor;
void alloc_linear_memory(void);
void expand_memory(void);
INLINE char *get_function_from_table(u32 idx, u32 type_id);
INLINE char *get_memory_ptr_for_runtime(u32 offset, u32 bounds_check);
void runtime_initialize(void);
void listener_thread_initialize(void);
void stub_init(i32 offset);
unsigned long long __getcycles(void);
#endif /* SFRT_RUNTIME_H */