Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sizes and order of SLRT fields #21

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions include/slrt.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#include <types.h>

struct slr_entry_hdr {
u16 tag;
u16 size;
u32 tag;
u32 size;
} __packed;

#define SLR_ENTRY_INVALID 0x0000
Expand All @@ -32,29 +32,29 @@ struct slr_table {

struct slr_bl_context {
u16 bootloader;
u16 reserved;
u16 reserved[3];
u64 context;
} __packed;

#define SLR_BOOTLOADER_GRUB 1

struct slr_entry_dl_info {
struct slr_entry_hdr hdr;
struct slr_bl_context bl_context;
u64 dl_handler;
u64 dce_size;
u64 dce_base;
u32 dce_size;
u64 dlme_size;
u64 dlme_base;
u32 dlme_size;
u32 dlme_entry; /* Offset from dlme_base */
u64 dlme_entry; /* Offset from dlme_base */
struct slr_bl_context bl_context;
u64 dl_handler;
} __packed;

struct slr_entry_log_info {
struct slr_entry_hdr hdr;
u16 format;
u16 reserved;
u64 addr;
u32 size;
u64 addr;
} __packed;

#define SLR_LOG_FORMAT_TPM12_TXT 1
Expand All @@ -67,8 +67,8 @@ struct slr_policy_entry {
u16 entity_type;
u16 flags;
u16 reserved;
u64 entity;
u64 size;
u64 entity;
char evt_info[TPM_EVENT_INFO_LENGTH];
} __packed;

Expand All @@ -93,6 +93,7 @@ struct slr_policy_entry {

struct slr_entry_policy {
struct slr_entry_hdr hdr;
u16 reserved[2];
u16 revision;
u16 nr_entries;
struct slr_policy_entry policy_entries[];
Expand Down
Loading