Bitdefender Hypervisor Memory Introspection
init.c File Reference
#include "init.h"
#include "../common.h"

Go to the source code of this file.

Macros

#define PAGE_RW   0x02ULL
 
#define PAGE_NX   0x8000000000000000ULL
 

Functions

struct data _data __aligned (1)
 The section used for this agent is .adata'. More...
 
__default_fn_attr void init (void)
 Allocates memory for detours and agents. More...
 
__fn_naked void trampoline (void)
 The trampoline of the agent. More...
 

Macro Definition Documentation

◆ PAGE_NX

#define PAGE_NX   0x8000000000000000ULL

Definition at line 12 of file init.c.

Referenced by init().

◆ PAGE_RW

#define PAGE_RW   0x02ULL

Definition at line 11 of file init.c.

Referenced by init().

Function Documentation

◆ __aligned()

struct data _data __aligned ( )

The section used for this agent is .adata'.

◆ init()

__default_fn_attr void init ( void  )

Allocates memory for detours and agents.

If an error occurs, the Intocore is notified.

Definition at line 15 of file init.c.

Referenced by trampoline().

◆ trampoline()

__fn_naked void trampoline ( void  )

The trampoline of the agent.

Calls the init function and generate 'exit' asm-code.

The section used for this function is '.start'.

Definition at line 50 of file init.c.