#include "util.h" // checksum
#include "biosvar.h" // SET_EBDA
-u16 PirOffset VAR16_32;
+u16 PirOffset VAR16VISIBLE;
struct pir_table {
struct pir_header pir;
extern struct pir_table PIR_TABLE;
#if CONFIG_PIRTABLE && !CONFIG_COREBOOT
-struct pir_table PIR_TABLE __aligned(16) VAR16_32 = {
+struct pir_table PIR_TABLE __aligned(16) VAR16EXPORT = {
.pir = {
.version = 0x0100,
.size = sizeof(struct pir_table),
#endif // CONFIG_PIRTABLE && !CONFIG_COREBOOT
void
-create_pirtable()
+create_pirtable(void)
{
if (! CONFIG_PIRTABLE)
return;
dprintf(3, "init PIR table\n");
PIR_TABLE.pir.signature = PIR_SIGNATURE;
- PIR_TABLE.pir.checksum = -checksum((u8*)&PIR_TABLE, sizeof(PIR_TABLE));
+ PIR_TABLE.pir.checksum -= checksum(&PIR_TABLE, sizeof(PIR_TABLE));
PirOffset = (u32)&PIR_TABLE.pir - BUILD_BIOS_ADDR;
}