aboutsummaryrefslogtreecommitdiff
path: root/src/biosvar.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2009-09-24 20:51:55 -0400
committerKevin O'Connor <kevin@koconnor.net>2009-09-24 20:51:55 -0400
commitf416fe97ae885e97a4c9678813a6005aa83fb4b6 (patch)
tree1f2ff3388802e8329cf30e9ba0f9c05e3ec94972 /src/biosvar.h
parent34ec7b0a5ab55399653cfef4e50570bda2b9ffb2 (diff)
downloadseabios-hppa-f416fe97ae885e97a4c9678813a6005aa83fb4b6.zip
seabios-hppa-f416fe97ae885e97a4c9678813a6005aa83fb4b6.tar.gz
seabios-hppa-f416fe97ae885e97a4c9678813a6005aa83fb4b6.tar.bz2
Add support for permanent low memory allocations.
Support pmm style permanent low-memory allocations. When used, relocate ebda and store permanent memory at top of 640K.
Diffstat (limited to 'src/biosvar.h')
-rw-r--r--src/biosvar.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/biosvar.h b/src/biosvar.h
index 9ed02a3..983d28f 100644
--- a/src/biosvar.h
+++ b/src/biosvar.h
@@ -228,9 +228,7 @@ struct extended_bios_data_area_s {
#define EBDA_SIZE_START \
DIV_ROUND_UP(sizeof(struct extended_bios_data_area_s), 1024)
#define EBDA_SEGMENT_START \
- FLATPTR_TO_SEG((640 - EBDA_SIZE_START) * 1024)
-#define EBDA_SEGMENT_MINIMUM \
- FLATPTR_TO_SEG((640 - 256) * 1024)
+ FLATPTR_TO_SEG(BUILD_LOWRAM_END - EBDA_SIZE_START*1024)
// Accessor functions
static inline u16 get_ebda_seg() {