aboutsummaryrefslogtreecommitdiffstats
path: root/memdisk
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2011-02-06 23:16:57 -0500
committerGene Cumm <gene.cumm@gmail.com>2011-02-06 23:16:57 -0500
commit9db4955a474ef60e9f405fad37aa3bf9ab358c7f (patch)
treeaeefd1b1d4c770e427bc3c361534ce6ed0c407d0 /memdisk
parent4fb75f3467c0924e0ba9d471dd634e227d1d96d0 (diff)
downloadsyslinux-9db4955a474ef60e9f405fad37aa3bf9ab358c7f.tar.gz
syslinux-9db4955a474ef60e9f405fad37aa3bf9ab358c7f.tar.xz
syslinux-9db4955a474ef60e9f405fad37aa3bf9ab358c7f.zip
memdisk/setup: remove unneeded code associated with int15maxres
Diffstat (limited to 'memdisk')
-rw-r--r--memdisk/setup.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/memdisk/setup.c b/memdisk/setup.c
index 9dad0942..7286210e 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) {