summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/boot/coreboot_tables.h4
-rw-r--r--src/lib/coreboot_table.c2
-rw-r--r--src/vendorcode/google/chromeos/gnvs.c4
-rw-r--r--src/vendorcode/google/chromeos/gnvs.h2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/include/boot/coreboot_tables.h b/src/include/boot/coreboot_tables.h
index a7e4ab0500..ee1c29f4c5 100644
--- a/src/include/boot/coreboot_tables.h
+++ b/src/include/boot/coreboot_tables.h
@@ -218,7 +218,7 @@ struct lb_vdat {
uint32_t tag;
uint32_t size;
- void *vdat_addr;
+ uint64_t vdat_addr;
uint32_t vdat_size;
};
@@ -246,7 +246,7 @@ struct lb_vboot_handoff {
uint32_t tag;
uint32_t size;
- void *vboot_handoff_addr;
+ uint64_t vboot_handoff_addr;
uint32_t vboot_handoff_size;
};
diff --git a/src/lib/coreboot_table.c b/src/lib/coreboot_table.c
index 765c51001e..d25b59d43d 100644
--- a/src/lib/coreboot_table.c
+++ b/src/lib/coreboot_table.c
@@ -232,7 +232,7 @@ static void lb_vboot_handoff(struct lb_header *header)
vbho = (struct lb_vboot_handoff *)lb_new_record(header);
vbho->tag = LB_TAB_VBOOT_HANDOFF;
vbho->size = sizeof(*vbho);
- vbho->vboot_handoff_addr = addr;
+ vbho->vboot_handoff_addr = (intptr_t)addr;
vbho->vboot_handoff_size = size;
}
#else
diff --git a/src/vendorcode/google/chromeos/gnvs.c b/src/vendorcode/google/chromeos/gnvs.c
index 0d4095061d..5ee366598a 100644
--- a/src/vendorcode/google/chromeos/gnvs.c
+++ b/src/vendorcode/google/chromeos/gnvs.c
@@ -79,8 +79,8 @@ void chromeos_set_me_hash(u32 *hash, int len)
memcpy(me_hash_saved, hash, len*sizeof(u32));
}
-void acpi_get_vdat_info(void **vdat_addr, uint32_t *vdat_size)
+void acpi_get_vdat_info(uint64_t *vdat_addr, uint32_t *vdat_size)
{
- *vdat_addr = vboot_data;
+ *vdat_addr = (intptr_t)vboot_data;
*vdat_size = sizeof(*vboot_data);
}
diff --git a/src/vendorcode/google/chromeos/gnvs.h b/src/vendorcode/google/chromeos/gnvs.h
index 40674944fa..00fe443eb2 100644
--- a/src/vendorcode/google/chromeos/gnvs.h
+++ b/src/vendorcode/google/chromeos/gnvs.h
@@ -64,6 +64,6 @@ typedef struct {
extern chromeos_acpi_t *vboot_data;
void chromeos_init_vboot(chromeos_acpi_t *chromeos);
void chromeos_set_me_hash(u32*, int);
-void acpi_get_vdat_info(void **vdat_addr, uint32_t *vdat_size);
+void acpi_get_vdat_info(uint64_t *vdat_addr, uint32_t *vdat_size);
#endif