aboutsummaryrefslogtreecommitdiff
path: root/src/biosvar.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-05-18 00:03:32 -0400
committerKevin O'Connor <kevin@koconnor.net>2008-05-18 00:03:32 -0400
commit9dd0dd1e4e2401bc2931f2e1e3417c8ef5dc42b5 (patch)
tree9bf64653d5fa93c347264ae97f2848142b7bd44d /src/biosvar.h
parent9571ac21e511c7e04d9589797e0d123d2798e2f6 (diff)
downloadseabios-hppa-9dd0dd1e4e2401bc2931f2e1e3417c8ef5dc42b5.zip
seabios-hppa-9dd0dd1e4e2401bc2931f2e1e3417c8ef5dc42b5.tar.gz
seabios-hppa-9dd0dd1e4e2401bc2931f2e1e3417c8ef5dc42b5.tar.bz2
Auto detect EBDA_SIZE from size of data structure.
Diffstat (limited to 'src/biosvar.h')
-rw-r--r--src/biosvar.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/biosvar.h b/src/biosvar.h
index 0c68a2e..d2d7b9f 100644
--- a/src/biosvar.h
+++ b/src/biosvar.h
@@ -337,7 +337,7 @@ extern struct bios_config_table_s BIOS_CONFIG_TABLE;
#define SEG_EBDA 0x9fc0
#define SEG_BDA 0x0000
-#define EBDA_SIZE 1 // In KiB
-#define BASE_MEM_IN_K (640 - EBDA_SIZE)
+#define EBDA_SIZE DIV_ROUND_UP(sizeof(struct extended_bios_data_area_s), 1024)
+#define BASE_MEM_IN_K (640 - EBDA_SIZE)
#endif // __BIOSVAR_H