Add wormhole.[ch]

This commit is contained in:
László Monda
2017-05-01 17:02:18 +02:00
parent 151925337e
commit 8675effabc
5 changed files with 61 additions and 36 deletions

24
right/src/wormhole.h Normal file
View File

@@ -0,0 +1,24 @@
#ifndef __WORMHOLE_H__
#define __WORMHOLE_H__
// Includes:
#include <stdint.h>
// Macros:
#define WORMHOLE_MAGIC_NUMBER 0x3b04cd9e94521f9a
#define NO_INIT_GCC __attribute__ ((section (".noinit")))
// Typedefs:
typedef struct {
uint64_t magicNumber;
uint8_t enumerationMode;
} wormhole_t;
// Variables:
extern wormhole_t *Wormhole NO_INIT_GCC;
#endif