From 9db4955a474ef60e9f405fad37aa3bf9ab358c7f Mon Sep 17 00:00:00 2001 From: Gene Cumm Date: Sun, 6 Feb 2011 23:16:57 -0500 Subject: [PATCH] memdisk/setup: remove unneeded code associated with int15maxres --- memdisk/setup.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/memdisk/setup.c b/memdisk/setup.c index 9dad094..7286210 100644 --- a/memdisk/setup.c +++ b/memdisk/setup.c @@ -705,17 +705,6 @@ static int stack_needed(void) return v; } -uint32_t getramtop(void) -{ - if (high_mem) { - return high_mem + (1<<24); - } else if (low_mem) { - return low_mem + (1<<20); - } else { - return 0; - } -} - /* * Specify max RAM by reservation * Adds a reservation to data in INT15h to prevent access to the top of RAM @@ -723,11 +712,9 @@ uint32_t getramtop(void) */ void int15maxres(uint32_t restop) { - uint32_t ramtop; struct e820range *ep; const int int15restype = 2; - ramtop = getramtop(); for (ep = ranges; ep->type != -1U; ep++) { if (ep->type == 1) { /* Only if available */ if (ep->start >= restop) { -- 2.7.4