Navigation Menu

Skip to content

Commit

Permalink
bios: fix initrd end pointer
Browse files Browse the repository at this point in the history
initrd_end points just past the last byte of the initrd. This way initramfs
images works.
  • Loading branch information
mwalle authored and Sebastien Bourdeauducq committed Nov 21, 2011
1 parent 327bdc7 commit eec01e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions software/bios/boot.c
Expand Up @@ -266,7 +266,7 @@ void netboot()
initrdstart_adr = 0;
initrdend_adr = 0;
} else
initrdend_adr = initrdstart_adr + size - 1;
initrdend_adr = initrdstart_adr + size;

printf("I: Booting...\n");
boot(cmdline_adr, initrdstart_adr, initrdend_adr, rescue, SDRAM_BASE);
Expand Down Expand Up @@ -320,7 +320,7 @@ void fsboot(int devnr)
initrdstart_adr = 0;
initrdend_adr = 0;
} else
initrdend_adr = initrdstart_adr + size - 1;
initrdend_adr = initrdstart_adr + size;

fatfs_done();
printf("I: Booting...\n");
Expand Down

0 comments on commit eec01e6

Please sign in to comment.