Skip to content

Commit

Permalink
memdisk/setup: int15maxres: Use 1 const; comment out printf()
Browse files Browse the repository at this point in the history
  • Loading branch information
geneC committed Feb 7, 2011
1 parent e10b3d5 commit 4fb75f3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions memdisk/setup.c
Expand Up @@ -725,16 +725,17 @@ 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) {
printf(" %08x -> 2\n", ep->start);
ep->type = 2;
/* printf(" %08x -> 2\n", ep->start); */
ep->type = int15restype;
} else if (ep[1].start > restop) {
printf(" +%08x =2; cut %08x\n", restop, ep->start);
insertrange(restop, (ep[1].start - restop), 2);
/* printf(" +%08x =2; cut %08x\n", restop, ep->start); */
insertrange(restop, (ep[1].start - restop), int15restype);
}
}
}
Expand Down

0 comments on commit 4fb75f3

Please sign in to comment.