Navigation Menu

Skip to content

Commit

Permalink
memdisk/setup: remove unneeded code associated with int15maxres
Browse files Browse the repository at this point in the history
  • Loading branch information
geneC committed Feb 7, 2011
1 parent 4fb75f3 commit 9db4955
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions memdisk/setup.c
Expand Up @@ -705,29 +705,16 @@ 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
* if there's any above the point specified.
*/
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) {
Expand Down

0 comments on commit 9db4955

Please sign in to comment.