Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Commit

Permalink
Make kernel<->user passed structs packed
Browse files Browse the repository at this point in the history
  • Loading branch information
mkow committed Nov 26, 2019
1 parent 3324430 commit 30d4b94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions graphene-sgx.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

struct gsgx_enclave_create {
uint64_t src;
};
} __packed;

#define GSGX_ENCLAVE_ADD_PAGES_SKIP_EEXTEND 0x1
#define GSGX_ENCLAVE_ADD_PAGES_REPEAT_SRC 0x2
Expand All @@ -61,13 +61,13 @@ struct gsgx_enclave_add_pages {
uint64_t user_addr;
uint64_t size;
uint64_t secinfo;
};
} __packed;

struct gsgx_enclave_init {
uint64_t addr;
uint64_t sigstruct;
uint64_t einittoken;
};
} __packed;

#endif /* SDK_DRIVER_VERSION < KERNEL_VERSION(1, 8, 0) */

Expand Down

0 comments on commit 30d4b94

Please sign in to comment.