diff options
Diffstat (limited to 'linuxboot.c')
-rw-r--r-- | linuxboot.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/linuxboot.c b/linuxboot.c index fc8b7fa..7ce07bc 100644 --- a/linuxboot.c +++ b/linuxboot.c @@ -64,6 +64,8 @@ bool parse_bzimage(struct linuxboot_args *args) initrd_max = ldl_p(header+0x22c); else initrd_max = 0x37ffffff; + if (initrd_max > lowmem - 1) + initrd_max = lowmem - 1; if (protocol >= 0x202) stl_p(header+0x228, cmdline_addr); |